@civitai/client 0.2.0-beta.17 → 0.2.0-beta.18
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.
- package/dist/generated/schemas.gen.d.ts +2083 -2028
- package/dist/generated/schemas.gen.js +2093 -2031
- package/dist/generated/services.gen.d.ts +88 -90
- package/dist/generated/services.gen.js +100 -147
- package/dist/generated/types.gen.d.ts +79 -22
- package/dist/generated/types.gen.js +20 -4
- package/dist/utils/types.d.ts +3 -0
- package/dist/utils/types.js +1 -0
- package/package.json +2 -2
|
@@ -1,23 +1,20 @@
|
|
|
1
1
|
import { type Options } from '@hey-api/client-fetch';
|
|
2
2
|
import type {
|
|
3
|
-
PutV2ProvidersBlobsByBlobKeyData,
|
|
4
3
|
GetBlobData,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
HeadBlobData,
|
|
5
|
+
InvokeAgeClassificationStepTemplateData,
|
|
6
|
+
InvokeComfyStepTemplateData,
|
|
7
|
+
InvokeEchoStepTemplateData,
|
|
8
|
+
InvokeImageGenStepTemplateData,
|
|
9
|
+
InvokeImageResourceTrainingStepTemplateData,
|
|
10
|
+
InvokeImageUploadStepTemplateData,
|
|
11
|
+
InvokeTextToImageStepTemplateData,
|
|
12
|
+
InvokeVideoEnhancementStepTemplateData,
|
|
13
|
+
InvokeVideoGenStepTemplateData,
|
|
8
14
|
GetResourceData,
|
|
9
15
|
InvalidateResourceData,
|
|
10
|
-
GetJobsData,
|
|
11
|
-
GetJobsResponse,
|
|
12
|
-
DownloadResourceData,
|
|
13
|
-
CreateWorkerData,
|
|
14
|
-
QueryWorkersResponse,
|
|
15
|
-
GetWorkerData,
|
|
16
|
-
DeleteWorkerData,
|
|
17
|
-
GetRegistrationData,
|
|
18
|
-
UpdateWorkerRegistrationData,
|
|
19
|
-
PatchWorkerResourcesData,
|
|
20
16
|
SubmitWorkflowData,
|
|
17
|
+
SubmitWorkflowError,
|
|
21
18
|
QueryWorkflowsData,
|
|
22
19
|
GetWorkflowData,
|
|
23
20
|
UpdateWorkflowData,
|
|
@@ -33,140 +30,134 @@ import type {
|
|
|
33
30
|
UpdateWorkflowStepData,
|
|
34
31
|
PatchWorkflowStepData,
|
|
35
32
|
} from './types.gen';
|
|
36
|
-
export declare const putV2ProvidersBlobsByBlobKey: (
|
|
37
|
-
options: Options<PutV2ProvidersBlobsByBlobKeyData>
|
|
38
|
-
) => import('@hey-api/client-fetch').RequestResult<unknown, import('./types.gen').ProblemDetails>;
|
|
39
33
|
/**
|
|
40
|
-
* Get blob by ID.
|
|
34
|
+
* Get blob by ID. This will return the blob as a binary stream.
|
|
41
35
|
*/
|
|
42
36
|
export declare const getBlob: (
|
|
43
37
|
options: Options<GetBlobData>
|
|
44
38
|
) => import('@hey-api/client-fetch').RequestResult<void, unknown>;
|
|
45
39
|
/**
|
|
46
|
-
*
|
|
40
|
+
* Handles HTTP HEAD requests for a specific blob, checking its existence and NSFW level.
|
|
47
41
|
*/
|
|
48
|
-
export declare const
|
|
49
|
-
options
|
|
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>
|
|
50
51
|
) => import('@hey-api/client-fetch').RequestResult<
|
|
51
|
-
import('./types.gen').
|
|
52
|
+
import('./types.gen').AgeClassificationOutput,
|
|
52
53
|
import('./types.gen').ProblemDetails
|
|
53
54
|
>;
|
|
54
55
|
/**
|
|
55
|
-
*
|
|
56
|
+
* Comfy workflows
|
|
57
|
+
* Runs a comfy workflow. Currently there are limited nodes available. Contact support for more information.
|
|
56
58
|
*/
|
|
57
|
-
export declare const
|
|
58
|
-
options?: Options
|
|
59
|
+
export declare const invokeComfyStepTemplate: (
|
|
60
|
+
options?: Options<InvokeComfyStepTemplateData>
|
|
59
61
|
) => import('@hey-api/client-fetch').RequestResult<
|
|
60
|
-
import('./types.gen').
|
|
62
|
+
import('./types.gen').ComfyOutput,
|
|
61
63
|
import('./types.gen').ProblemDetails
|
|
62
64
|
>;
|
|
63
65
|
/**
|
|
64
|
-
*
|
|
66
|
+
* Echo
|
|
67
|
+
* A workflow step that takes a message string and retuns it.
|
|
68
|
+
* /// This step is intended for testing purposes.
|
|
65
69
|
*/
|
|
66
|
-
export declare const
|
|
67
|
-
options
|
|
70
|
+
export declare const invokeEchoStepTemplate: (
|
|
71
|
+
options?: Options<InvokeEchoStepTemplateData>
|
|
68
72
|
) => import('@hey-api/client-fetch').RequestResult<
|
|
69
|
-
import('./types.gen').
|
|
73
|
+
import('./types.gen').EchoOutput,
|
|
70
74
|
import('./types.gen').ProblemDetails
|
|
71
75
|
>;
|
|
72
76
|
/**
|
|
73
|
-
*
|
|
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.
|
|
77
|
+
* Image Generation
|
|
78
|
+
* Generate images through text/image inputs using any of our supported engines
|
|
80
79
|
*/
|
|
81
|
-
export declare const
|
|
82
|
-
options
|
|
80
|
+
export declare const invokeImageGenStepTemplate: (
|
|
81
|
+
options?: Options<InvokeImageGenStepTemplateData>
|
|
83
82
|
) => import('@hey-api/client-fetch').RequestResult<
|
|
84
|
-
import('./types.gen').
|
|
83
|
+
import('./types.gen').ImageGenOutput,
|
|
85
84
|
import('./types.gen').ProblemDetails
|
|
86
85
|
>;
|
|
87
86
|
/**
|
|
88
|
-
*
|
|
87
|
+
* LORA Training
|
|
88
|
+
* Train LORA's
|
|
89
89
|
*/
|
|
90
|
-
export declare const
|
|
91
|
-
options
|
|
92
|
-
) => import('@hey-api/client-fetch').RequestResult<void, import('./types.gen').ProblemDetails>;
|
|
93
|
-
export declare const getJobs: (
|
|
94
|
-
options: Options<GetJobsData>
|
|
90
|
+
export declare const invokeImageResourceTrainingStepTemplate: (
|
|
91
|
+
options?: Options<InvokeImageResourceTrainingStepTemplateData>
|
|
95
92
|
) => import('@hey-api/client-fetch').RequestResult<
|
|
96
|
-
|
|
93
|
+
import('./types.gen').ImageResourceTrainingOutput,
|
|
97
94
|
import('./types.gen').ProblemDetails
|
|
98
95
|
>;
|
|
99
|
-
|
|
100
|
-
|
|
96
|
+
/**
|
|
97
|
+
* Image upload
|
|
98
|
+
* Uploads an image to be used in a workflow
|
|
99
|
+
*/
|
|
100
|
+
export declare const invokeImageUploadStepTemplate: (
|
|
101
|
+
options?: Options<InvokeImageUploadStepTemplateData>
|
|
101
102
|
) => import('@hey-api/client-fetch').RequestResult<
|
|
102
|
-
import('./types.gen').
|
|
103
|
+
import('./types.gen').ImageUploadOutput,
|
|
103
104
|
import('./types.gen').ProblemDetails
|
|
104
105
|
>;
|
|
105
106
|
/**
|
|
106
|
-
*
|
|
107
|
+
* TextToImage
|
|
108
|
+
* Generate images using text as input
|
|
107
109
|
*/
|
|
108
|
-
export declare const
|
|
109
|
-
options?: Options<
|
|
110
|
+
export declare const invokeTextToImageStepTemplate: (
|
|
111
|
+
options?: Options<InvokeTextToImageStepTemplateData>
|
|
110
112
|
) => import('@hey-api/client-fetch').RequestResult<
|
|
111
|
-
import('./types.gen').
|
|
113
|
+
import('./types.gen').TextToImageOutput,
|
|
112
114
|
import('./types.gen').ProblemDetails
|
|
113
115
|
>;
|
|
114
116
|
/**
|
|
115
|
-
*
|
|
117
|
+
* Upscale videos and/or interpolate frames
|
|
116
118
|
*/
|
|
117
|
-
export declare const
|
|
118
|
-
options?: Options
|
|
119
|
+
export declare const invokeVideoEnhancementStepTemplate: (
|
|
120
|
+
options?: Options<InvokeVideoEnhancementStepTemplateData>
|
|
119
121
|
) => import('@hey-api/client-fetch').RequestResult<
|
|
120
|
-
|
|
122
|
+
import('./types.gen').VideoEnhancementOutput,
|
|
121
123
|
import('./types.gen').ProblemDetails
|
|
122
124
|
>;
|
|
123
125
|
/**
|
|
124
|
-
*
|
|
126
|
+
* Video generation
|
|
127
|
+
* Generate videos through text/image inputs using any of our supported engines
|
|
125
128
|
*/
|
|
126
|
-
export declare const
|
|
127
|
-
options
|
|
129
|
+
export declare const invokeVideoGenStepTemplate: (
|
|
130
|
+
options?: Options<InvokeVideoGenStepTemplateData>
|
|
128
131
|
) => import('@hey-api/client-fetch').RequestResult<
|
|
129
|
-
import('./types.gen').
|
|
132
|
+
import('./types.gen').VideoGenOutput,
|
|
130
133
|
import('./types.gen').ProblemDetails
|
|
131
134
|
>;
|
|
132
135
|
/**
|
|
133
|
-
*
|
|
134
|
-
*/
|
|
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.
|
|
136
|
+
* Get an existing resource.
|
|
140
137
|
*/
|
|
141
|
-
export declare const
|
|
142
|
-
options: Options<
|
|
138
|
+
export declare const getResource: (
|
|
139
|
+
options: Options<GetResourceData>
|
|
143
140
|
) => import('@hey-api/client-fetch').RequestResult<
|
|
144
|
-
import('./types.gen').
|
|
141
|
+
import('./types.gen').ResourceInfo,
|
|
145
142
|
import('./types.gen').ProblemDetails
|
|
146
143
|
>;
|
|
147
144
|
/**
|
|
148
|
-
*
|
|
149
|
-
*/
|
|
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
|
|
145
|
+
* Invalidates the cache of a specific resource.
|
|
155
146
|
*/
|
|
156
|
-
export declare const
|
|
157
|
-
options: Options<
|
|
147
|
+
export declare const invalidateResource: (
|
|
148
|
+
options: Options<InvalidateResourceData>
|
|
158
149
|
) => import('@hey-api/client-fetch').RequestResult<void, import('./types.gen').ProblemDetails>;
|
|
159
150
|
/**
|
|
160
|
-
* Submit
|
|
151
|
+
* Submit workflow
|
|
161
152
|
*/
|
|
162
153
|
export declare const submitWorkflow: (
|
|
163
154
|
options?: Options<SubmitWorkflowData>
|
|
164
155
|
) => import('@hey-api/client-fetch').RequestResult<
|
|
165
156
|
import('./types.gen').Workflow,
|
|
166
|
-
|
|
157
|
+
SubmitWorkflowError
|
|
167
158
|
>;
|
|
168
159
|
/**
|
|
169
|
-
* Query
|
|
160
|
+
* Query workflows
|
|
170
161
|
*/
|
|
171
162
|
export declare const queryWorkflows: (
|
|
172
163
|
options?: Options<QueryWorkflowsData>
|
|
@@ -175,7 +166,7 @@ export declare const queryWorkflows: (
|
|
|
175
166
|
import('./types.gen').ProblemDetails
|
|
176
167
|
>;
|
|
177
168
|
/**
|
|
178
|
-
* Get
|
|
169
|
+
* Get workflow
|
|
179
170
|
*/
|
|
180
171
|
export declare const getWorkflow: (
|
|
181
172
|
options: Options<GetWorkflowData>
|
|
@@ -184,34 +175,41 @@ export declare const getWorkflow: (
|
|
|
184
175
|
import('./types.gen').ProblemDetails
|
|
185
176
|
>;
|
|
186
177
|
/**
|
|
187
|
-
*
|
|
178
|
+
* Update workflow
|
|
179
|
+
* Updates a worfklow. This can currently be used to cancel a worfklow or override metadata and/or tags
|
|
188
180
|
*/
|
|
189
181
|
export declare const updateWorkflow: (
|
|
190
182
|
options: Options<UpdateWorkflowData>
|
|
191
183
|
) => 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
|
+
*/
|
|
192
188
|
export declare const patchWorkflow: (
|
|
193
189
|
options: Options<PatchWorkflowData>
|
|
194
190
|
) => import('@hey-api/client-fetch').RequestResult<void, import('./types.gen').ProblemDetails>;
|
|
195
191
|
/**
|
|
196
|
-
*
|
|
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
|
|
197
194
|
*/
|
|
198
195
|
export declare const deleteWorkflow: (
|
|
199
196
|
options: Options<DeleteWorkflowData>
|
|
200
197
|
) => import('@hey-api/client-fetch').RequestResult<void, import('./types.gen').ProblemDetails>;
|
|
201
198
|
/**
|
|
202
|
-
*
|
|
199
|
+
* Add workflow tag
|
|
200
|
+
* Adds a tag to a workflow
|
|
203
201
|
*/
|
|
204
202
|
export declare const addWorkflowTag: (
|
|
205
203
|
options: Options<AddWorkflowTagData>
|
|
206
204
|
) => import('@hey-api/client-fetch').RequestResult<void, AddWorkflowTagError>;
|
|
207
205
|
/**
|
|
208
|
-
* Delete all tags
|
|
206
|
+
* Delete all workflow tags
|
|
209
207
|
*/
|
|
210
208
|
export declare const removeAllWorkflowTags: (
|
|
211
209
|
options: Options<RemoveAllWorkflowTagsData>
|
|
212
210
|
) => import('@hey-api/client-fetch').RequestResult<void, RemoveAllWorkflowTagsError>;
|
|
213
211
|
/**
|
|
214
|
-
*
|
|
212
|
+
* Delete workflow tag
|
|
215
213
|
*/
|
|
216
214
|
export declare const removeWorkflowTag: (
|
|
217
215
|
options: Options<RemoveWorkflowTagData>
|