diff --git a/packages/foundry.security/src/public/Group.ts b/packages/foundry.security/src/public/Group.ts index a05e73deb..e40ff2567 100644 --- a/packages/foundry.security/src/public/Group.ts +++ b/packages/foundry.security/src/public/Group.ts @@ -41,13 +41,13 @@ const _createGroup: $FoundryPlatformMethod< $body: CreateGroupRequest, $queryParams?: { preview?: PreviewMode | undefined }, ) => Promise -> = [1, "/v2/security/groups", 3]; +> = [1, "/v2/admin/groups", 3]; /** * Creates a new Group * * Required Scopes: [api:security-write] - * URL: /v2/security/groups + * URL: /v2/admin/groups */ export function createGroup( $ctx: $Client | $ClientContext, @@ -64,13 +64,13 @@ const _deleteGroup: $FoundryPlatformMethod< groupId: PrincipalId, $queryParams?: { preview?: PreviewMode | undefined }, ) => Promise -> = [3, "/v2/security/groups/{0}", 2]; +> = [3, "/v2/admin/groups/{0}", 2]; /** * Deletes the given Group * * Required Scopes: [api:security-write] - * URL: /v2/security/groups/{groupId} + * URL: /v2/admin/groups/{groupId} */ export function deleteGroup( $ctx: $Client | $ClientContext, @@ -89,13 +89,13 @@ const _listGroups: $FoundryPlatformMethod< pageToken?: PageToken | undefined; preview?: PreviewMode | undefined; }) => Promise -> = [0, "/v2/security/groups", 2]; +> = [0, "/v2/admin/groups", 2]; /** * Lists all Groups * * Required Scopes: [api:security-read] - * URL: /v2/security/groups + * URL: /v2/admin/groups */ export function listGroups( $ctx: $Client | $ClientContext, @@ -115,13 +115,13 @@ const _getGroup: $FoundryPlatformMethod< groupId: PrincipalId, $queryParams?: { preview?: PreviewMode | undefined }, ) => Promise -> = [0, "/v2/security/groups/{0}", 2]; +> = [0, "/v2/admin/groups/{0}", 2]; /** * Get the Group * * Required Scopes: [api:security-read] - * URL: /v2/security/groups/{groupId} + * URL: /v2/admin/groups/{groupId} */ export function getGroup( $ctx: $Client | $ClientContext, @@ -139,11 +139,11 @@ const _searchGroups: $FoundryPlatformMethod< $body: SearchGroupsRequest, $queryParams?: { preview?: PreviewMode | undefined }, ) => Promise -> = [1, "/v2/security/groups/search", 3]; +> = [1, "/v2/admin/groups/search", 3]; /** * Required Scopes: [] - * URL: /v2/security/groups/search + * URL: /v2/admin/groups/search */ export function searchGroups( $ctx: $Client | $ClientContext, diff --git a/packages/foundry.security/src/public/GroupMember.ts b/packages/foundry.security/src/public/GroupMember.ts index e69652002..548f0c2b1 100644 --- a/packages/foundry.security/src/public/GroupMember.ts +++ b/packages/foundry.security/src/public/GroupMember.ts @@ -44,13 +44,13 @@ const _listGroupMembers: $FoundryPlatformMethod< preview?: PreviewMode | undefined; }, ) => Promise -> = [0, "/v2/security/groups/{0}/groupMembers", 2]; +> = [0, "/v2/admin/groups/{0}/groupMembers", 2]; /** * Lists all GroupMembers * * Required Scopes: [api:security-read] - * URL: /v2/security/groups/{groupId}/groupMembers + * URL: /v2/admin/groups/{groupId}/groupMembers */ export function listGroupMembers( $ctx: $Client | $ClientContext, @@ -74,11 +74,11 @@ const _addGroupMembers: $FoundryPlatformMethod< $body: AddGroupMembersRequest, $queryParams?: { preview?: PreviewMode | undefined }, ) => Promise -> = [1, "/v2/security/groups/{0}/groupMembers/add", 3]; +> = [1, "/v2/admin/groups/{0}/groupMembers/add", 3]; /** * Required Scopes: [api:security-write] - * URL: /v2/security/groups/{groupId}/groupMembers/add + * URL: /v2/admin/groups/{groupId}/groupMembers/add */ export function addGroupMembers( $ctx: $Client | $ClientContext, @@ -97,11 +97,11 @@ const _removeGroupMembers: $FoundryPlatformMethod< $body: RemoveGroupMembersRequest, $queryParams?: { preview?: PreviewMode | undefined }, ) => Promise -> = [1, "/v2/security/groups/{0}/groupMembers/remove", 3]; +> = [1, "/v2/admin/groups/{0}/groupMembers/remove", 3]; /** * Required Scopes: [api:security-write] - * URL: /v2/security/groups/{groupId}/groupMembers/remove + * URL: /v2/admin/groups/{groupId}/groupMembers/remove */ export function removeGroupMembers( $ctx: $Client | $ClientContext, diff --git a/packages/foundry.security/src/public/GroupMembership.ts b/packages/foundry.security/src/public/GroupMembership.ts index 2433e5188..ac1b4abae 100644 --- a/packages/foundry.security/src/public/GroupMembership.ts +++ b/packages/foundry.security/src/public/GroupMembership.ts @@ -40,13 +40,13 @@ const _listGroupMemberships: $FoundryPlatformMethod< preview?: PreviewMode | undefined; }, ) => Promise -> = [0, "/v2/security/users/{0}/groupMemberships", 2]; +> = [0, "/v2/admin/users/{0}/groupMemberships", 2]; /** * Lists all GroupMemberships * * Required Scopes: [api:security-read] - * URL: /v2/security/users/{userId}/groupMemberships + * URL: /v2/admin/users/{userId}/groupMemberships */ export function listGroupMemberships( $ctx: $Client | $ClientContext, diff --git a/packages/foundry.security/src/public/User.ts b/packages/foundry.security/src/public/User.ts index 1db5d8f5e..d52ea82ef 100644 --- a/packages/foundry.security/src/public/User.ts +++ b/packages/foundry.security/src/public/User.ts @@ -37,13 +37,13 @@ const _deleteUser: $FoundryPlatformMethod< userId: PrincipalId, $queryParams?: { preview?: PreviewMode | undefined }, ) => Promise -> = [3, "/v2/security/users/{0}", 2]; +> = [3, "/v2/admin/users/{0}", 2]; /** * Deletes the given User * * Required Scopes: [api:security-read] - * URL: /v2/security/users/{userId} + * URL: /v2/admin/users/{userId} */ export function deleteUser( $ctx: $Client | $ClientContext, @@ -62,13 +62,13 @@ const _listUsers: $FoundryPlatformMethod< pageToken?: PageToken | undefined; preview?: PreviewMode | undefined; }) => Promise -> = [0, "/v2/security/users", 2]; +> = [0, "/v2/admin/users", 2]; /** * Lists all Users * * Required Scopes: [api:security-read] - * URL: /v2/security/users + * URL: /v2/admin/users */ export function listUsers( $ctx: $Client | $ClientContext, @@ -88,13 +88,13 @@ const _getUser: $FoundryPlatformMethod< userId: PrincipalId, $queryParams?: { preview?: PreviewMode | undefined }, ) => Promise -> = [0, "/v2/security/users/{0}", 2]; +> = [0, "/v2/admin/users/{0}", 2]; /** * Get the User * * Required Scopes: [api:security-read] - * URL: /v2/security/users/{userId} + * URL: /v2/admin/users/{userId} */ export function getUser( $ctx: $Client | $ClientContext, @@ -109,11 +109,11 @@ export function getUser( const _getCurrentUser: $FoundryPlatformMethod< ($queryParams?: { preview?: PreviewMode | undefined }) => Promise -> = [0, "/v2/security/users/getCurrent", 2]; +> = [0, "/v2/admin/users/getCurrent", 2]; /** * Required Scopes: [] - * URL: /v2/security/users/getCurrent + * URL: /v2/admin/users/getCurrent */ export function getCurrentUser( $ctx: $Client | $ClientContext, @@ -129,7 +129,7 @@ const _profilePictureUser: $FoundryPlatformMethod< ) => Promise > = [ 0, - "/v2/security/users/{0}/profilePicture", + "/v2/admin/users/{0}/profilePicture", 2, , "application/octet-stream", @@ -137,7 +137,7 @@ const _profilePictureUser: $FoundryPlatformMethod< /** * Required Scopes: [] - * URL: /v2/security/users/{userId}/profilePicture + * URL: /v2/admin/users/{userId}/profilePicture */ export function profilePictureUser( $ctx: $Client | $ClientContext, @@ -155,11 +155,11 @@ const _searchUsers: $FoundryPlatformMethod< $body: SearchUsersRequest, $queryParams?: { preview?: PreviewMode | undefined }, ) => Promise -> = [1, "/v2/security/users/search", 3]; +> = [1, "/v2/admin/users/search", 3]; /** * Required Scopes: [] - * URL: /v2/security/users/search + * URL: /v2/admin/users/search */ export function searchUsers( $ctx: $Client | $ClientContext,