Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace instances of /v2/security/ with /v2/admin/ #509

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions packages/foundry.security/src/public/Group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ const _createGroup: $FoundryPlatformMethod<
$body: CreateGroupRequest,
$queryParams?: { preview?: PreviewMode | undefined },
) => Promise<Group>
> = [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,
Expand All @@ -64,13 +64,13 @@ const _deleteGroup: $FoundryPlatformMethod<
groupId: PrincipalId,
$queryParams?: { preview?: PreviewMode | undefined },
) => Promise<void>
> = [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,
Expand All @@ -89,13 +89,13 @@ const _listGroups: $FoundryPlatformMethod<
pageToken?: PageToken | undefined;
preview?: PreviewMode | undefined;
}) => Promise<ListGroupsResponse>
> = [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,
Expand All @@ -115,13 +115,13 @@ const _getGroup: $FoundryPlatformMethod<
groupId: PrincipalId,
$queryParams?: { preview?: PreviewMode | undefined },
) => Promise<Group>
> = [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,
Expand All @@ -139,11 +139,11 @@ const _searchGroups: $FoundryPlatformMethod<
$body: SearchGroupsRequest,
$queryParams?: { preview?: PreviewMode | undefined },
) => Promise<SearchGroupsResponse>
> = [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,
Expand Down
12 changes: 6 additions & 6 deletions packages/foundry.security/src/public/GroupMember.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ const _listGroupMembers: $FoundryPlatformMethod<
preview?: PreviewMode | undefined;
},
) => Promise<ListGroupMembersResponse>
> = [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,
Expand All @@ -74,11 +74,11 @@ const _addGroupMembers: $FoundryPlatformMethod<
$body: AddGroupMembersRequest,
$queryParams?: { preview?: PreviewMode | undefined },
) => Promise<void>
> = [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,
Expand All @@ -97,11 +97,11 @@ const _removeGroupMembers: $FoundryPlatformMethod<
$body: RemoveGroupMembersRequest,
$queryParams?: { preview?: PreviewMode | undefined },
) => Promise<void>
> = [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,
Expand Down
4 changes: 2 additions & 2 deletions packages/foundry.security/src/public/GroupMembership.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ const _listGroupMemberships: $FoundryPlatformMethod<
preview?: PreviewMode | undefined;
},
) => Promise<ListGroupMembershipsResponse>
> = [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,
Expand Down
24 changes: 12 additions & 12 deletions packages/foundry.security/src/public/User.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ const _deleteUser: $FoundryPlatformMethod<
userId: PrincipalId,
$queryParams?: { preview?: PreviewMode | undefined },
) => Promise<void>
> = [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,
Expand All @@ -62,13 +62,13 @@ const _listUsers: $FoundryPlatformMethod<
pageToken?: PageToken | undefined;
preview?: PreviewMode | undefined;
}) => Promise<ListUsersResponse>
> = [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,
Expand All @@ -88,13 +88,13 @@ const _getUser: $FoundryPlatformMethod<
userId: PrincipalId,
$queryParams?: { preview?: PreviewMode | undefined },
) => Promise<User>
> = [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,
Expand All @@ -109,11 +109,11 @@ export function getUser(

const _getCurrentUser: $FoundryPlatformMethod<
($queryParams?: { preview?: PreviewMode | undefined }) => Promise<User>
> = [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,
Expand All @@ -129,15 +129,15 @@ const _profilePictureUser: $FoundryPlatformMethod<
) => Promise<Blob>
> = [
0,
"/v2/security/users/{0}/profilePicture",
"/v2/admin/users/{0}/profilePicture",
2,
,
"application/octet-stream",
];

/**
* Required Scopes: []
* URL: /v2/security/users/{userId}/profilePicture
* URL: /v2/admin/users/{userId}/profilePicture
*/
export function profilePictureUser(
$ctx: $Client | $ClientContext,
Expand All @@ -155,11 +155,11 @@ const _searchUsers: $FoundryPlatformMethod<
$body: SearchUsersRequest,
$queryParams?: { preview?: PreviewMode | undefined },
) => Promise<SearchUsersResponse>
> = [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,
Expand Down
Loading