mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
regenerate api schema
This commit is contained in:
parent
748016bdab
commit
c009f46b00
@ -98,6 +98,7 @@ export type { MultiplyInvocation } from './models/MultiplyInvocation';
|
||||
export type { NoiseInvocation } from './models/NoiseInvocation';
|
||||
export type { NoiseOutput } from './models/NoiseOutput';
|
||||
export type { NormalbaeImageProcessorInvocation } from './models/NormalbaeImageProcessorInvocation';
|
||||
export type { OffsetPaginatedResults_BoardRecord_ } from './models/OffsetPaginatedResults_BoardRecord_';
|
||||
export type { OffsetPaginatedResults_ImageDTO_ } from './models/OffsetPaginatedResults_ImageDTO_';
|
||||
export type { OpenposeImageProcessorInvocation } from './models/OpenposeImageProcessorInvocation';
|
||||
export type { PaginatedResults_GraphExecutionState_ } from './models/PaginatedResults_GraphExecutionState_';
|
||||
@ -129,6 +130,7 @@ export type { VaeRepo } from './models/VaeRepo';
|
||||
export type { ValidationError } from './models/ValidationError';
|
||||
export type { ZoeDepthImageProcessorInvocation } from './models/ZoeDepthImageProcessorInvocation';
|
||||
|
||||
export { BoardsService } from './services/BoardsService';
|
||||
export { ImagesService } from './services/ImagesService';
|
||||
export { ModelsService } from './services/ModelsService';
|
||||
export { SessionsService } from './services/SessionsService';
|
||||
|
@ -0,0 +1,15 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type BoardChanges = {
|
||||
/**
|
||||
* The board's new name.
|
||||
*/
|
||||
board_name?: string;
|
||||
/**
|
||||
* The name of the board's new cover image.
|
||||
*/
|
||||
cover_image_name?: string;
|
||||
};
|
||||
|
30
invokeai/frontend/web/src/services/api/models/BoardRecord.ts
Normal file
30
invokeai/frontend/web/src/services/api/models/BoardRecord.ts
Normal file
@ -0,0 +1,30 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
/**
|
||||
* Deserialized board record.
|
||||
*/
|
||||
export type BoardRecord = {
|
||||
/**
|
||||
* The unique ID of the board.
|
||||
*/
|
||||
board_id: string;
|
||||
/**
|
||||
* The name of the board.
|
||||
*/
|
||||
board_name: string;
|
||||
/**
|
||||
* The created timestamp of the board.
|
||||
*/
|
||||
created_at: string;
|
||||
/**
|
||||
* The updated timestamp of the board.
|
||||
*/
|
||||
updated_at: string;
|
||||
/**
|
||||
* The name of the cover image of the board.
|
||||
*/
|
||||
cover_image_name?: string;
|
||||
};
|
||||
|
@ -0,0 +1,15 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type Body_create_board_image = {
|
||||
/**
|
||||
* The id of the board to add to
|
||||
*/
|
||||
board_id: string;
|
||||
/**
|
||||
* The name of the image to add
|
||||
*/
|
||||
image_name: string;
|
||||
};
|
||||
|
@ -0,0 +1,15 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type Body_remove_board_image = {
|
||||
/**
|
||||
* The id of the board
|
||||
*/
|
||||
board_id: string;
|
||||
/**
|
||||
* The name of the image to remove
|
||||
*/
|
||||
image_name: string;
|
||||
};
|
||||
|
@ -0,0 +1,28 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { BoardRecord } from './BoardRecord';
|
||||
|
||||
/**
|
||||
* Offset-paginated results
|
||||
*/
|
||||
export type OffsetPaginatedResults_BoardRecord_ = {
|
||||
/**
|
||||
* Items
|
||||
*/
|
||||
items: Array<BoardRecord>;
|
||||
/**
|
||||
* Offset from which to retrieve items
|
||||
*/
|
||||
offset: number;
|
||||
/**
|
||||
* Limit of items to get
|
||||
*/
|
||||
limit: number;
|
||||
/**
|
||||
* Total number of items in result
|
||||
*/
|
||||
total: number;
|
||||
};
|
||||
|
210
invokeai/frontend/web/src/services/api/services/BoardsService.ts
Normal file
210
invokeai/frontend/web/src/services/api/services/BoardsService.ts
Normal file
@ -0,0 +1,210 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { BoardChanges } from '../models/BoardChanges';
|
||||
import type { Body_create_board_image } from '../models/Body_create_board_image';
|
||||
import type { Body_remove_board_image } from '../models/Body_remove_board_image';
|
||||
import type { OffsetPaginatedResults_BoardRecord_ } from '../models/OffsetPaginatedResults_BoardRecord_';
|
||||
import type { OffsetPaginatedResults_ImageDTO_ } from '../models/OffsetPaginatedResults_ImageDTO_';
|
||||
|
||||
import type { CancelablePromise } from '../core/CancelablePromise';
|
||||
import { OpenAPI } from '../core/OpenAPI';
|
||||
import { request as __request } from '../core/request';
|
||||
|
||||
export class BoardsService {
|
||||
|
||||
/**
|
||||
* List Boards
|
||||
* Gets a list of boards
|
||||
* @returns OffsetPaginatedResults_BoardRecord_ Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static listBoards({
|
||||
offset,
|
||||
limit = 10,
|
||||
}: {
|
||||
/**
|
||||
* The page offset
|
||||
*/
|
||||
offset?: number,
|
||||
/**
|
||||
* The number of boards per page
|
||||
*/
|
||||
limit?: number,
|
||||
}): CancelablePromise<OffsetPaginatedResults_BoardRecord_> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/api/v1/boards/',
|
||||
query: {
|
||||
'offset': offset,
|
||||
'limit': limit,
|
||||
},
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Create Board
|
||||
* Creates a board
|
||||
* @returns any The board was created successfully
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static createBoard({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: string,
|
||||
}): CancelablePromise<any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/api/v1/boards/',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete Board
|
||||
* Deletes a board
|
||||
* @returns any Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static deleteBoard({
|
||||
boardId,
|
||||
}: {
|
||||
/**
|
||||
* The id of board to delete
|
||||
*/
|
||||
boardId: string,
|
||||
}): CancelablePromise<any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'DELETE',
|
||||
url: '/api/v1/boards/{board_id}',
|
||||
path: {
|
||||
'board_id': boardId,
|
||||
},
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Update Board
|
||||
* Creates a board
|
||||
* @returns any The board was updated successfully
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static updateBoard({
|
||||
boardId,
|
||||
requestBody,
|
||||
}: {
|
||||
/**
|
||||
* The id of board to update
|
||||
*/
|
||||
boardId: string,
|
||||
requestBody: BoardChanges,
|
||||
}): CancelablePromise<any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'PATCH',
|
||||
url: '/api/v1/boards/{board_id}',
|
||||
path: {
|
||||
'board_id': boardId,
|
||||
},
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Create Board Image
|
||||
* Creates a board_image
|
||||
* @returns any The image was added to a board successfully
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static createBoardImage({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: Body_create_board_image,
|
||||
}): CancelablePromise<any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/api/v1/board_images/',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove Board Image
|
||||
* Deletes a board_image
|
||||
* @returns any The image was removed from the board successfully
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static removeBoardImage({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: Body_remove_board_image,
|
||||
}): CancelablePromise<any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'DELETE',
|
||||
url: '/api/v1/board_images/',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* List Board Images
|
||||
* Gets a list of images for a board
|
||||
* @returns OffsetPaginatedResults_ImageDTO_ Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static listBoardImages({
|
||||
boardId,
|
||||
offset,
|
||||
limit = 10,
|
||||
}: {
|
||||
/**
|
||||
* The id of the board
|
||||
*/
|
||||
boardId: string,
|
||||
/**
|
||||
* The page offset
|
||||
*/
|
||||
offset?: number,
|
||||
/**
|
||||
* The number of boards per page
|
||||
*/
|
||||
limit?: number,
|
||||
}): CancelablePromise<OffsetPaginatedResults_ImageDTO_> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/api/v1/board_images/{board_id}',
|
||||
path: {
|
||||
'board_id': boardId,
|
||||
},
|
||||
query: {
|
||||
'offset': offset,
|
||||
'limit': limit,
|
||||
},
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user