@civitai/client 0.2.0-beta.2 → 0.2.0-beta.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,20 +1,23 @@
1
1
  import { type Options } from '@hey-api/client-fetch';
2
2
  import type {
3
+ PutV2ProvidersBlobsByBlobKeyData,
3
4
  GetBlobData,
4
- HeadBlobData,
5
- InvokeAgeClassificationStepTemplateData,
6
- InvokeComfyStepTemplateData,
7
- InvokeEchoStepTemplateData,
8
- InvokeImageGenStepTemplateData,
9
- InvokeImageResourceTrainingStepTemplateData,
10
- InvokeImageUploadStepTemplateData,
11
- InvokeTextToImageStepTemplateData,
12
- InvokeVideoEnhancementStepTemplateData,
13
- InvokeVideoGenStepTemplateData,
5
+ CreateConfigurationData,
6
+ GetConfigurationData,
7
+ DeleteConfigurationData,
14
8
  GetResourceData,
15
9
  InvalidateResourceData,
10
+ GetJobsData,
11
+ GetJobsResponse,
12
+ DownloadResourceData,
13
+ CreateWorkerData,
14
+ QueryWorkersResponse,
15
+ GetWorkerData,
16
+ DeleteWorkerData,
17
+ GetRegistrationData,
18
+ UpdateWorkerRegistrationData,
19
+ PatchWorkerResourcesData,
16
20
  SubmitWorkflowData,
17
- SubmitWorkflowError,
18
21
  QueryWorkflowsData,
19
22
  GetWorkflowData,
20
23
  UpdateWorkflowData,
@@ -30,134 +33,140 @@ import type {
30
33
  UpdateWorkflowStepData,
31
34
  PatchWorkflowStepData,
32
35
  } from './types.gen';
36
+ export declare const putV2ProvidersBlobsByBlobKey: (
37
+ options: Options<PutV2ProvidersBlobsByBlobKeyData>
38
+ ) => import('@hey-api/client-fetch').RequestResult<unknown, import('./types.gen').ProblemDetails>;
33
39
  /**
34
- * Get blob by ID. This will return the blob as a binary stream.
40
+ * Get blob by ID.
35
41
  */
36
42
  export declare const getBlob: (
37
43
  options: Options<GetBlobData>
38
44
  ) => import('@hey-api/client-fetch').RequestResult<void, unknown>;
39
45
  /**
40
- * Handles HTTP HEAD requests for a specific blob, checking its existence and NSFW level.
46
+ * Create a new configuration.
41
47
  */
42
- export declare const headBlob: (
43
- options: Options<HeadBlobData>
44
- ) => import('@hey-api/client-fetch').RequestResult<void, import('./types.gen').ProblemDetails>;
45
- /**
46
- * Age classification
47
- * Detects minors in media content. Returns a boolean value indicating whether the content contains minors as well as details on where minors are detected.
48
- */
49
- export declare const invokeAgeClassificationStepTemplate: (
50
- options?: Options<InvokeAgeClassificationStepTemplateData>
48
+ export declare const createConfiguration: (
49
+ options?: Options<CreateConfigurationData>
51
50
  ) => import('@hey-api/client-fetch').RequestResult<
52
- import('./types.gen').AgeClassificationOutput,
51
+ import('./types.gen').CreateConfigurationResult,
53
52
  import('./types.gen').ProblemDetails
54
53
  >;
55
54
  /**
56
- * Comfy workflows
57
- * Runs a comfy workflow. Currently there are limited nodes available. Contact support for more information.
55
+ * Query for existing configurations.
58
56
  */
59
- export declare const invokeComfyStepTemplate: (
60
- options?: Options<InvokeComfyStepTemplateData>
57
+ export declare const queryConfigurations: (
58
+ options?: Options
61
59
  ) => import('@hey-api/client-fetch').RequestResult<
62
- import('./types.gen').ComfyOutput,
60
+ import('./types.gen').ConfigurationStatus,
63
61
  import('./types.gen').ProblemDetails
64
62
  >;
65
63
  /**
66
- * Echo
67
- * A workflow step that takes a message string and retuns it.
68
- * /// This step is intended for testing purposes.
64
+ * Get options for a configuration.
69
65
  */
70
- export declare const invokeEchoStepTemplate: (
71
- options?: Options<InvokeEchoStepTemplateData>
66
+ export declare const getConfiguration: (
67
+ options: Options<GetConfigurationData>
72
68
  ) => import('@hey-api/client-fetch').RequestResult<
73
- import('./types.gen').EchoOutput,
69
+ import('./types.gen').ConfigurationOptions,
74
70
  import('./types.gen').ProblemDetails
75
71
  >;
76
72
  /**
77
- * Image Generation
78
- * Generate images through text/image inputs using any of our supported engines
73
+ * Delete a configuration.
74
+ */
75
+ export declare const deleteConfiguration: (
76
+ options: Options<DeleteConfigurationData>
77
+ ) => import('@hey-api/client-fetch').RequestResult<unknown, import('./types.gen').ProblemDetails>;
78
+ /**
79
+ * Get an existing resource.
79
80
  */
80
- export declare const invokeImageGenStepTemplate: (
81
- options?: Options<InvokeImageGenStepTemplateData>
81
+ export declare const getResource: (
82
+ options: Options<GetResourceData>
82
83
  ) => import('@hey-api/client-fetch').RequestResult<
83
- import('./types.gen').ImageGenOutput,
84
+ import('./types.gen').ResourceInfo,
84
85
  import('./types.gen').ProblemDetails
85
86
  >;
86
87
  /**
87
- * LORA Training
88
- * Train LORA's
88
+ * Invalidates the cache of a specific resource.
89
89
  */
90
- export declare const invokeImageResourceTrainingStepTemplate: (
91
- options?: Options<InvokeImageResourceTrainingStepTemplateData>
90
+ export declare const invalidateResource: (
91
+ options: Options<InvalidateResourceData>
92
+ ) => import('@hey-api/client-fetch').RequestResult<void, import('./types.gen').ProblemDetails>;
93
+ export declare const getJobs: (
94
+ options: Options<GetJobsData>
92
95
  ) => import('@hey-api/client-fetch').RequestResult<
93
- import('./types.gen').ImageResourceTrainingOutput,
96
+ GetJobsResponse,
94
97
  import('./types.gen').ProblemDetails
95
98
  >;
96
- /**
97
- * Image upload
98
- * Uploads an image to be used in a workflow
99
- */
100
- export declare const invokeImageUploadStepTemplate: (
101
- options?: Options<InvokeImageUploadStepTemplateData>
99
+ export declare const downloadResource: (
100
+ options: Options<DownloadResourceData>
102
101
  ) => import('@hey-api/client-fetch').RequestResult<
103
- import('./types.gen').ImageUploadOutput,
102
+ import('./types.gen').ProblemDetails,
104
103
  import('./types.gen').ProblemDetails
105
104
  >;
106
105
  /**
107
- * TextToImage
108
- * Generate images using text as input
106
+ * Create a worker with a given registration.
109
107
  */
110
- export declare const invokeTextToImageStepTemplate: (
111
- options?: Options<InvokeTextToImageStepTemplateData>
108
+ export declare const createWorker: (
109
+ options?: Options<CreateWorkerData>
112
110
  ) => import('@hey-api/client-fetch').RequestResult<
113
- import('./types.gen').TextToImageOutput,
111
+ import('./types.gen').CreateWorkerResult,
114
112
  import('./types.gen').ProblemDetails
115
113
  >;
116
114
  /**
117
- * Upscale videos and/or interpolate frames
115
+ * Query existing workers.
118
116
  */
119
- export declare const invokeVideoEnhancementStepTemplate: (
120
- options?: Options<InvokeVideoEnhancementStepTemplateData>
117
+ export declare const queryWorkers: (
118
+ options?: Options
121
119
  ) => import('@hey-api/client-fetch').RequestResult<
122
- import('./types.gen').VideoEnhancementOutput,
120
+ QueryWorkersResponse,
123
121
  import('./types.gen').ProblemDetails
124
122
  >;
125
123
  /**
126
- * Video generation
127
- * Generate videos through text/image inputs using any of our supported engines
124
+ * Gets the worker for the provided ID.
128
125
  */
129
- export declare const invokeVideoGenStepTemplate: (
130
- options?: Options<InvokeVideoGenStepTemplateData>
126
+ export declare const getWorker: (
127
+ options: Options<GetWorkerData>
131
128
  ) => import('@hey-api/client-fetch').RequestResult<
132
- import('./types.gen').VideoGenOutput,
129
+ import('./types.gen').WorkerDetails,
133
130
  import('./types.gen').ProblemDetails
134
131
  >;
135
132
  /**
136
- * Get an existing resource.
133
+ * Delete a worker.
137
134
  */
138
- export declare const getResource: (
139
- options: Options<GetResourceData>
135
+ export declare const deleteWorker: (
136
+ options: Options<DeleteWorkerData>
137
+ ) => import('@hey-api/client-fetch').RequestResult<void, import('./types.gen').ProblemDetails>;
138
+ /**
139
+ * Gets the registration details for the specified worker.
140
+ */
141
+ export declare const getRegistration: (
142
+ options: Options<GetRegistrationData>
140
143
  ) => import('@hey-api/client-fetch').RequestResult<
141
- import('./types.gen').ResourceInfo,
144
+ import('./types.gen').WorkerRegistration,
142
145
  import('./types.gen').ProblemDetails
143
146
  >;
144
147
  /**
145
- * Invalidates the cache of a specific resource.
148
+ * Update the registration details of the specified worker.
146
149
  */
147
- export declare const invalidateResource: (
148
- options: Options<InvalidateResourceData>
150
+ export declare const updateWorkerRegistration: (
151
+ options: Options<UpdateWorkerRegistrationData>
152
+ ) => import('@hey-api/client-fetch').RequestResult<void, import('./types.gen').ProblemDetails>;
153
+ /**
154
+ * Patch a worker's registration resources
155
+ */
156
+ export declare const patchWorkerResources: (
157
+ options: Options<PatchWorkerResourcesData>
149
158
  ) => import('@hey-api/client-fetch').RequestResult<void, import('./types.gen').ProblemDetails>;
150
159
  /**
151
- * Submit workflow
160
+ * Submit a workflow for processing
152
161
  */
153
162
  export declare const submitWorkflow: (
154
163
  options?: Options<SubmitWorkflowData>
155
164
  ) => import('@hey-api/client-fetch').RequestResult<
156
165
  import('./types.gen').Workflow,
157
- SubmitWorkflowError
166
+ import('./types.gen').ProblemDetails
158
167
  >;
159
168
  /**
160
- * Query workflows
169
+ * Query for workflows made by the user.
161
170
  */
162
171
  export declare const queryWorkflows: (
163
172
  options?: Options<QueryWorkflowsData>
@@ -166,7 +175,7 @@ export declare const queryWorkflows: (
166
175
  import('./types.gen').ProblemDetails
167
176
  >;
168
177
  /**
169
- * Get workflow
178
+ * Get the status of a workflow
170
179
  */
171
180
  export declare const getWorkflow: (
172
181
  options: Options<GetWorkflowData>
@@ -175,41 +184,34 @@ export declare const getWorkflow: (
175
184
  import('./types.gen').ProblemDetails
176
185
  >;
177
186
  /**
178
- * Update workflow
179
- * Updates a worfklow. This can currently be used to cancel a worfklow or override metadata and/or tags
187
+ * Updates a worfklow. This can currently be used to cancel a worfklow.
180
188
  */
181
189
  export declare const updateWorkflow: (
182
190
  options: Options<UpdateWorkflowData>
183
191
  ) => import('@hey-api/client-fetch').RequestResult<void, import('./types.gen').ProblemDetails>;
184
- /**
185
- * Patch workflow
186
- * Patches a worfklow using JSON Patch. This can currently be used to cancel a worfklow, update metadata and add additional tags
187
- */
188
192
  export declare const patchWorkflow: (
189
193
  options: Options<PatchWorkflowData>
190
194
  ) => import('@hey-api/client-fetch').RequestResult<void, import('./types.gen').ProblemDetails>;
191
195
  /**
192
- * Delete workflow
193
- * This will delete a workflow. This may trigger a refund if the work requested with this workflow has not yet started
196
+ * Deletes a workflow and all its jobs.
194
197
  */
195
198
  export declare const deleteWorkflow: (
196
199
  options: Options<DeleteWorkflowData>
197
200
  ) => import('@hey-api/client-fetch').RequestResult<void, import('./types.gen').ProblemDetails>;
198
201
  /**
199
- * Add workflow tag
200
- * Adds a tag to a workflow
202
+ * Submit a tag to be added to a workflow.
201
203
  */
202
204
  export declare const addWorkflowTag: (
203
205
  options: Options<AddWorkflowTagData>
204
206
  ) => import('@hey-api/client-fetch').RequestResult<void, AddWorkflowTagError>;
205
207
  /**
206
- * Delete all workflow tags
208
+ * Delete all tags for a workflow.
207
209
  */
208
210
  export declare const removeAllWorkflowTags: (
209
211
  options: Options<RemoveAllWorkflowTagsData>
210
212
  ) => import('@hey-api/client-fetch').RequestResult<void, RemoveAllWorkflowTagsError>;
211
213
  /**
212
- * Delete workflow tag
214
+ * Submit a tag to be removed from a workflow.
213
215
  */
214
216
  export declare const removeWorkflowTag: (
215
217
  options: Options<RemoveWorkflowTagData>