From 84a30a2ea8ee299ef23aa92dd89652804979162a Mon Sep 17 00:00:00 2001 From: John Davis Date: Wed, 9 Oct 2024 16:35:34 -0400 Subject: [PATCH] Rebuild client schema --- client/src/api/schema/schema.ts | 70 ++++++++++++++++++++++++++++++--- 1 file changed, 65 insertions(+), 5 deletions(-) diff --git a/client/src/api/schema/schema.ts b/client/src/api/schema/schema.ts index 51148bebc8d7..73bb0a38d2a0 100644 --- a/client/src/api/schema/schema.ts +++ b/client/src/api/schema/schema.ts @@ -4646,6 +4646,26 @@ export interface paths { patch?: never; trace?: never; }; + "/api/users/{user_id}/roles": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get User Roles + * @description Return a collection of roles associated with this user. Only admins can see user roles. + */ + get: operations["get_user_roles_api_users__user_id__roles_get"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; "/api/users/{user_id}/send_activation_email": { parameters: { query?: never; @@ -13041,7 +13061,7 @@ export interface components { page_limit: number; /** * Roles - * @description A list available roles that can be assigned to a particular permission. + * @description A list containing available roles that can be assigned to a particular permission. */ roles: components["schemas"]["BasicRoleModel"][]; /** @@ -21262,8 +21282,6 @@ export interface operations { page?: number; /** @description The maximum number of permissions per page when paginating. */ page_limit?: number; - /** @description Optional search text to retrieve only the roles matching this query. */ - q?: string | null; }; header?: { /** @description The user ID that will be used to effectively make this API call. Only admins and designated users can make API calls on behalf of other users. */ @@ -28096,8 +28114,6 @@ export interface operations { page?: number; /** @description The maximum number of permissions per page when paginating. */ page_limit?: number; - /** @description Optional search text to retrieve only the roles matching this query. */ - q?: string | null; }; header?: { /** @description The user ID that will be used to effectively make this API call. Only admins and designated users can make API calls on behalf of other users. */ @@ -33297,6 +33313,50 @@ export interface operations { }; }; }; + get_user_roles_api_users__user_id__roles_get: { + parameters: { + query?: never; + header?: { + /** @description The user ID that will be used to effectively make this API call. Only admins and designated users can make API calls on behalf of other users. */ + "run-as"?: string | null; + }; + path: { + /** @description The ID of the user. */ + user_id: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Successful Response */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["RoleListResponse"]; + }; + }; + /** @description Request Error */ + "4XX": { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["MessageExceptionModel"]; + }; + }; + /** @description Server Error */ + "5XX": { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["MessageExceptionModel"]; + }; + }; + }; + }; send_activation_email_api_users__user_id__send_activation_email_post: { parameters: { query?: never;