Skip to content

Commit

Permalink
Regenerate the client schema
Browse files Browse the repository at this point in the history
  • Loading branch information
heisner-tillman committed Jul 13, 2023
1 parent a5e173b commit 0316e8c
Showing 1 changed file with 168 additions and 30 deletions.
198 changes: 168 additions & 30 deletions client/src/schema/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1431,6 +1431,16 @@ export interface paths {
*/
post: operations["set_beacon_settings_api_users__user_id__beacon_post"];
};
"/api/users/{user_id}/custom_builds": {
/** Returns collection of custom builds. */
get: operations["get_custom_builds_api_users__user_id__custom_builds_get"];
};
"/api/users/{user_id}/custom_builds/{key}": {
/** Add new custom build. */
put: operations["add_custom_builds_api_users__user_id__custom_builds__key__put"];
/** Delete a custom build */
delete: operations["delete_custom_build_api_users__user_id__custom_builds__key__delete"];
};
"/api/users/{user_id}/favorites/{object_type}": {
/** Add the object to user's favorites */
put: operations["set_favorite_api_users__user_id__favorites__object_type__put"];
Expand Down Expand Up @@ -2839,6 +2849,27 @@ export interface components {
*/
url: string;
};
/**
* CustomBuildCreationPayload
* @description Base model definition with common configuration used by all derived models.
*/
CustomBuildCreationPayload: {
/**
* ?
* @description ?
*/
"len|type": string;
/**
* ?
* @description ?
*/
"len|value": string;
/**
* Name
* @description The name of the custom build.
*/
name: string;
};
/**
* CustomBuildsMetadataResponse
* @description Base model definition with common configuration used by all derived models.
Expand Down Expand Up @@ -3530,6 +3561,17 @@ export interface components {
*/
purge?: boolean;
};
/**
* DeletedCustomBuild
* @description Base model definition with common configuration used by all derived models.
*/
DeletedCustomBuild: {
/**
* Deletion message
* @description Confirmation of the custom build deletion.
*/
message: string;
};
/**
* DetailedUserModel
* @description Base model definition with common configuration used by all derived models.
Expand Down Expand Up @@ -3810,10 +3852,27 @@ export interface components {
src: components["schemas"]["Src"];
};
/**
* FavoriteModel
* FavoriteObject
* @description Base model definition with common configuration used by all derived models.
*/
FavoriteModel: {
FavoriteObject: {
/**
* Object ID
* @description The id of an object the user wants to favorite.
*/
object_id: string;
};
/**
* FavoriteObjectType
* @description An enumeration.
* @enum {string}
*/
FavoriteObjectType: "tools";
/**
* FavoriteObjectsSummary
* @description Base model definition with common configuration used by all derived models.
*/
FavoriteObjectsSummary: {
/**
* Favorite tools
* @description The name of the tools the user favored.
Expand Down Expand Up @@ -7381,17 +7440,6 @@ export interface components {
*/
model_store_format?: components["schemas"]["ModelStoreFormat"];
};
/**
* PurgeUserPayload
* @description Base model definition with common configuration used by all derived models.
*/
PurgeUserPayload: {
/**
* Purge user
* @description Purge the user
*/
purge: boolean;
};
/**
* QuotaDetails
* @description Base model containing common fields for Quotas.
Expand Down Expand Up @@ -7774,17 +7822,6 @@ export interface components {
*/
version: string;
};
/**
* SetFavoritePayload
* @description Base model definition with common configuration used by all derived models.
*/
SetFavoritePayload: {
/**
* Object ID
* @description The id of an object the user wants to favorite.
*/
object_id: string;
};
/**
* SetSlugPayload
* @description Base model definition with common configuration used by all derived models.
Expand Down Expand Up @@ -8599,6 +8636,17 @@ export interface components {
*/
enabled: boolean;
};
/**
* UserDeletionPayload
* @description Base model definition with common configuration used by all derived models.
*/
UserDeletionPayload: {
/**
* Purge user
* @description Purge the user
*/
purge: boolean;
};
/**
* UserEmail
* @description Base model definition with common configuration used by all derived models.
Expand Down Expand Up @@ -16601,7 +16649,7 @@ export interface operations {
};
requestBody?: {
content: {
"application/json": components["schemas"]["PurgeUserPayload"];
"application/json": components["schemas"]["UserDeletionPayload"];
};
};
responses: {
Expand Down Expand Up @@ -16790,6 +16838,96 @@ export interface operations {
};
};
};
get_custom_builds_api_users__user_id__custom_builds_get: {
/** Returns collection of custom builds. */
parameters: {
/** @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. */
header?: {
"run-as"?: string;
};
/** @description The ID of the user to get. */
path: {
user_id: string;
};
};
responses: {
/** @description Successful Response */
200: {
content: {
"application/json": Record<string, never>;
};
};
/** @description Validation Error */
422: {
content: {
"application/json": components["schemas"]["HTTPValidationError"];
};
};
};
};
add_custom_builds_api_users__user_id__custom_builds__key__put: {
/** Add new custom build. */
parameters: {
/** @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. */
header?: {
"run-as"?: string;
};
/** @description The key of the custom build to be deleted. */
/** @description The ID of the user to get. */
path: {
key: string;
user_id: string;
};
};
requestBody: {
content: {
"application/json": components["schemas"]["CustomBuildCreationPayload"];
};
};
responses: {
/** @description Successful Response */
200: {
content: {
"application/json": Record<string, never>;
};
};
/** @description Validation Error */
422: {
content: {
"application/json": components["schemas"]["HTTPValidationError"];
};
};
};
};
delete_custom_build_api_users__user_id__custom_builds__key__delete: {
/** Delete a custom build */
parameters: {
/** @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. */
header?: {
"run-as"?: string;
};
/** @description The key of the custom build to be deleted. */
/** @description The ID of the user to get. */
path: {
key: string;
user_id: string;
};
};
responses: {
/** @description Successful Response */
200: {
content: {
"application/json": components["schemas"]["DeletedCustomBuild"];
};
};
/** @description Validation Error */
422: {
content: {
"application/json": components["schemas"]["HTTPValidationError"];
};
};
};
};
set_favorite_api_users__user_id__favorites__object_type__put: {
/** Add the object to user's favorites */
parameters: {
Expand All @@ -16801,19 +16939,19 @@ export interface operations {
/** @description The object type the user wants to favorite */
path: {
user_id: string;
object_type: string;
object_type: components["schemas"]["FavoriteObjectType"];
};
};
requestBody: {
content: {
"application/json": components["schemas"]["SetFavoritePayload"];
"application/json": components["schemas"]["FavoriteObject"];
};
};
responses: {
/** @description Successful Response */
200: {
content: {
"application/json": components["schemas"]["FavoriteModel"];
"application/json": components["schemas"]["FavoriteObjectsSummary"];
};
};
/** @description Validation Error */
Expand All @@ -16836,15 +16974,15 @@ export interface operations {
/** @description The ID of an object the user wants to remove from favorites */
path: {
user_id: string;
object_type: string;
object_type: components["schemas"]["FavoriteObjectType"];
object_id: string;
};
};
responses: {
/** @description Successful Response */
200: {
content: {
"application/json": components["schemas"]["FavoriteModel"];
"application/json": components["schemas"]["FavoriteObjectsSummary"];
};
};
/** @description Validation Error */
Expand Down

0 comments on commit 0316e8c

Please sign in to comment.