import type { CancelablePromise } from './core/CancelablePromise'; import type { BaseHttpRequest } from './core/BaseHttpRequest'; import type { $OpenApiTs } from './types.gen'; export declare class BlobsService { readonly httpRequest: BaseHttpRequest; constructor(httpRequest: BaseHttpRequest); /** * Get blob by ID. * @param data The data for the request. * @param data.blobId The blob ID to retrieve. * @throws ApiError */ getBlob(data: $OpenApiTs['/v2/consumer/blobs/{blobId}']['get']['req']): CancelablePromise; } export declare class ConfigurationsService { readonly httpRequest: BaseHttpRequest; constructor(httpRequest: BaseHttpRequest); /** * Create a new configuration. * @param data The data for the request. * @param data.requestBody The details of the configuration being created. * @returns CreateConfigurationResult Success * @throws ApiError */ createConfiguration( data?: $OpenApiTs['/v2/providers/configurations']['post']['req'] ): CancelablePromise<$OpenApiTs['/v2/providers/configurations']['post']['res'][200]>; /** * Query for existing configurations. * @returns ConfigurationStatus Success * @throws ApiError */ queryConfigurations(): CancelablePromise< $OpenApiTs['/v2/providers/configurations']['get']['res'][200] >; /** * Get options for a configuration. * @param data The data for the request. * @param data.configurationId The ID of the configuration whose options are being requested. * @returns ConfigurationOptions Success * @throws ApiError */ getConfiguration( data: $OpenApiTs['/v2/providers/configurations/{configurationId}/options']['get']['req'] ): CancelablePromise< $OpenApiTs['/v2/providers/configurations/{configurationId}/options']['get']['res'][200] >; /** * Delete a configuration. * @param data The data for the request. * @param data.configurationId The ID of the configuration to delete. * @returns unknown Success * @throws ApiError */ deleteConfiguration( data: $OpenApiTs['/v2/providers/configurations/{configurationId}']['delete']['req'] ): CancelablePromise< $OpenApiTs['/v2/providers/configurations/{configurationId}']['delete']['res'][200] >; } export declare class ModelsService { readonly httpRequest: BaseHttpRequest; constructor(httpRequest: BaseHttpRequest); /** * Get an existing model. * @param data The data for the request. * @param data.air A unique ID for the model being requested. See https://developer.civitai.com/docs/getting-started/ai-resource-identifier for more info on AIRs. * @returns ModelInfo Success * @throws ApiError */ getModel( data: $OpenApiTs['/v2/models/{air}']['get']['req'] ): CancelablePromise<$OpenApiTs['/v2/models/{air}']['get']['res'][200]>; /** * Delete an existing model. * @param data The data for the request. * @param data.air A unique ID for the model being requested. See https://developer.civitai.com/docs/getting-started/ai-resource-identifier for more info on AIRs. * @returns void No Content * @throws ApiError */ deleteModel( data: $OpenApiTs['/v2/models/{air}']['delete']['req'] ): CancelablePromise<$OpenApiTs['/v2/models/{air}']['delete']['res'][204]>; } export declare class WorkerJobsService { readonly httpRequest: BaseHttpRequest; constructor(httpRequest: BaseHttpRequest); /** * @param data The data for the request. * @param data.workerId * @param data.wait * @param data.take * @param data.claim * @returns Job Success * @throws ApiError */ getJobs( data: $OpenApiTs['/v2/providers/workers/{workerId}/jobs']['get']['req'] ): CancelablePromise<$OpenApiTs['/v2/providers/workers/{workerId}/jobs']['get']['res'][200]>; } export declare class WorkersService { readonly httpRequest: BaseHttpRequest; constructor(httpRequest: BaseHttpRequest); /** * Create a worker with a given registration. * @param data The data for the request. * @param data.requestBody The registration specifying the details of the worker to be created. * @returns CreateWorkerResult Created * @throws ApiError */ createWorker( data?: $OpenApiTs['/v2/providers/workers']['post']['req'] ): CancelablePromise<$OpenApiTs['/v2/providers/workers']['post']['res'][201]>; /** * Query existing workers. * @returns WorkerDetails Success * @throws ApiError */ queryWorkers(): CancelablePromise<$OpenApiTs['/v2/providers/workers']['get']['res'][200]>; /** * Gets the worker for the provided ID. * @param data The data for the request. * @param data.workerId The ID for the requested worker. * @returns WorkerDetails Success * @throws ApiError */ getWorker( data: $OpenApiTs['/v2/providers/workers/{workerId}']['get']['req'] ): CancelablePromise<$OpenApiTs['/v2/providers/workers/{workerId}']['get']['res'][200]>; /** * Delete a worker. * @param data The data for the request. * @param data.workerId The ID for the worker to be deleted. * @returns void No Content * @throws ApiError */ deleteWorker( data: $OpenApiTs['/v2/providers/workers/{workerId}']['delete']['req'] ): CancelablePromise<$OpenApiTs['/v2/providers/workers/{workerId}']['delete']['res'][204]>; /** * Gets the registration details for the specified worker. * @param data The data for the request. * @param data.workerId The ID of the worker whose registration is being requested. * @returns WorkerRegistration Success * @throws ApiError */ getRegistration( data: $OpenApiTs['/v2/providers/workers/{workerId}/registration']['get']['req'] ): CancelablePromise< $OpenApiTs['/v2/providers/workers/{workerId}/registration']['get']['res'][200] >; /** * Update the registration details of the specified worker. * @param data The data for the request. * @param data.workerId The ID for the worker whose registration is being updated. * @param data.requestBody The registration details to update on the worker's registration. * @returns void No Content * @throws ApiError */ updateWorkerRegistration( data: $OpenApiTs['/v2/providers/workers/{workerId}/registration']['put']['req'] ): CancelablePromise< $OpenApiTs['/v2/providers/workers/{workerId}/registration']['put']['res'][204] >; /** * Patch a worker's registration models * @param data The data for the request. * @param data.workerId The ID for the worker whose registration models are being patched. * @param data.requestBody A dictionary of model AIRs and their corresponding status for on that worker. * @returns void No Content * @throws ApiError */ pathWorkerModels( data: $OpenApiTs['/v2/providers/workers/{workerId}/registration/models']['patch']['req'] ): CancelablePromise< $OpenApiTs['/v2/providers/workers/{workerId}/registration/models']['patch']['res'][204] >; } export declare class WorkflowsService { readonly httpRequest: BaseHttpRequest; constructor(httpRequest: BaseHttpRequest); /** * Submit a workflow for processing * @param data The data for the request. * @param data.wait Whether to wait for the workflow to complete before returning or to return immediately * The request may return a 202 if the clients waits for the workflow to complete and the workflow does not complete within the requested timeout. * In which case the client should use the token to query the status of the workflow. * @param data.whatif Whether to actually submit the workflow or return an estimate on what would happen upon submission * @param data.requestBody * @returns Workflow Success * @throws ApiError */ submitWorkflow( data?: $OpenApiTs['/v2/consumer/workflows']['post']['req'] ): CancelablePromise<$OpenApiTs['/v2/consumer/workflows']['post']['res'][200]>; /** * Query for workflows made by the user. * @param data The data for the request. * @param data.cursor An optional cursor to continue querying workflows from a previous query. * @param data.take How many workflows to return * @param data.jobType The type of job to filter on. * @returns CursedArrayOfTelemetryCursorAndWorkflow Success * @throws ApiError */ queryWorkflows( data?: $OpenApiTs['/v2/consumer/workflows']['get']['req'] ): CancelablePromise<$OpenApiTs['/v2/consumer/workflows']['get']['res'][200]>; /** * Get the status of a workflow * @param data The data for the request. * @param data.workflowId The id of the workflow to get status for * @param data.wait Whether to wait for the workflow to complete before returning or to return immediately * The request may return a 202 if the clients waits for the workflow to complete and the workflow does not complete within the requested timeout. * In which case the client should use the token to query the status of the workflow. * @returns Workflow Success * @throws ApiError */ getWorkflow( data: $OpenApiTs['/v2/consumer/workflows/{workflowId}']['get']['req'] ): CancelablePromise<$OpenApiTs['/v2/consumer/workflows/{workflowId}']['get']['res'][200]>; /** * Updates a request. This can currently be used to cancel a request. * @param data The data for the request. * @param data.workflowId The id of the request to update. * @param data.requestBody The details to update on the workflow. * @returns void No Content * @throws ApiError */ updateWorkflow( data: $OpenApiTs['/v2/consumer/workflows/{workflowId}']['put']['req'] ): CancelablePromise<$OpenApiTs['/v2/consumer/workflows/{workflowId}']['put']['res'][204]>; /** * Deletes a workflow and all its jobs. * @param data The data for the request. * @param data.workflowId The id of the workflow to delete. * @returns void No Content * @throws ApiError */ deleteWorkflow( data: $OpenApiTs['/v2/consumer/workflows/{workflowId}']['delete']['req'] ): CancelablePromise<$OpenApiTs['/v2/consumer/workflows/{workflowId}']['delete']['res'][204]>; }