@civitai/client 0.2.0-beta.5 → 0.2.0-beta.51
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/client/CivitaiClient.js +3 -1
- package/dist/generated/client/client.gen.d.ts +2 -0
- package/dist/generated/client/client.gen.js +237 -0
- package/dist/generated/client/index.d.ts +9 -8
- package/dist/generated/client/index.js +6 -4
- package/dist/generated/client/types.d.ts +4 -5
- package/dist/generated/client/types.gen.d.ts +195 -0
- package/dist/generated/client/types.gen.js +2 -0
- package/dist/generated/client/utils.gen.d.ts +58 -0
- package/dist/generated/client/utils.gen.js +234 -0
- package/dist/generated/client.gen.d.ts +5 -5
- package/dist/generated/client.gen.js +1 -1
- package/dist/generated/core/auth.gen.d.ts +21 -0
- package/dist/generated/core/auth.gen.js +14 -0
- package/dist/generated/core/bodySerializer.gen.d.ts +25 -0
- package/dist/generated/core/bodySerializer.gen.js +57 -0
- package/dist/generated/core/params.gen.d.ts +49 -0
- package/dist/generated/core/params.gen.js +100 -0
- package/dist/generated/core/pathSerializer.gen.d.ts +49 -0
- package/dist/generated/core/pathSerializer.gen.js +106 -0
- package/dist/generated/core/queryKeySerializer.gen.d.ts +24 -0
- package/dist/generated/core/queryKeySerializer.gen.js +92 -0
- package/dist/generated/core/serverSentEvents.gen.d.ts +88 -0
- package/dist/generated/core/serverSentEvents.gen.js +134 -0
- package/dist/generated/core/types.gen.d.ts +106 -0
- package/dist/generated/core/types.gen.js +2 -0
- package/dist/generated/core/utils.gen.d.ts +25 -0
- package/dist/generated/core/utils.gen.js +87 -0
- package/dist/generated/index.d.ts +913 -2
- package/dist/generated/index.js +2 -2
- package/dist/generated/sdk.gen.d.ts +486 -47
- package/dist/generated/sdk.gen.js +433 -186
- package/dist/generated/types.gen.d.ts +7284 -1575
- package/dist/generated/types.gen.js +201 -53
- package/dist/utils/TimeSpan.d.ts +1 -1
- package/dist/utils/TimeSpan.js +6 -6
- package/package.json +3 -3
package/dist/generated/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export { addWorkflowTag, deleteWorkflow, getBlob, getBlobContent, getBlockedContent, getConsumerBlobUploadUrl, getResource, getStreamingBlob, getWorkflow, getWorkflowStep, headBlob, invalidateResource, invalidateUserCache, invokeAceStepAudioStepTemplate, invokeAgeClassificationStepTemplate, invokeBatchOcrSafetyClassificationStepTemplate, invokeChatCompletionStepTemplate, invokeComfyStepTemplate, invokeConvertImageStepTemplate, invokeEchoStepTemplate, invokeHumanoidImageMaskStepTemplate, invokeImageGenStepTemplate, invokeImageResourceTrainingStepTemplate, invokeImageUploadStepTemplate, invokeImageUpscalerStepTemplate, invokeMediaCaptioningStepTemplate, invokeMediaHashStepTemplate, invokeMediaRatingStepTemplate, invokePreprocessImageStepTemplate, invokePromptEnhancementStepTemplate, invokeRepeatStepTemplate, invokeTextToImageStepTemplate, invokeTextToSpeechStepTemplate, invokeTrainingStepTemplate, invokeTranscodeStepTemplate, invokeTranscriptionStepTemplate, invokeTryOnUStepTemplate, invokeVideoEnhancementStepTemplate, invokeVideoFrameExtractionStepTemplate, invokeVideoGenStepTemplate, invokeVideoInterpolationStepTemplate, invokeVideoMetadataStepTemplate, invokeVideoUpscalerStepTemplate, invokeWdTaggingStepTemplate, invokeXGuardModerationStepTemplate, patchWorkflow, patchWorkflowStep, queryWorkflows, refreshBlob, removeAllWorkflowTags, removeWorkflowTag, submitWorkflow, updateWorkflow, updateWorkflowStep, uploadConsumerBlob, } from './sdk.gen';
|
|
3
|
+
export { AnimalPoseBboxDetector, AnimalPoseEstimator, AnylineMergeWith, BlurRegionMode, BuzzClientAccount, CoarseMode, ComfySampler, ComfyScheduler, ContainerFormat, DensePoseColormap, DensePoseModel, DepthAnythingCheckpoint, DepthAnythingV2Checkpoint, DwPoseBboxDetector, DwPoseEstimator, FileFormat, HaiperVideoGenAspectRatio, HaiperVideoGenCameraMovement, HaiperVideoGenModel, HumanoidImageMaskCategory, ImageGenOutputFormat, ImageResouceTrainingModerationStatus, ImageTransformer, JobSupport, KlingMode, KlingModel, KlingV3Operation, KlingVideoGenAspectRatio, KlingVideoGenDuration, LeresBoost, LightricksAspectRatio, MediaHashType, Metric3dBackbone, MiniMaxVideoGenModel, NsfwLevel, OutputFormat, Priority, SafeMode, Scheduler, SdCppSampleMethod, SdCppSchedule, SdCppUCacheMode, SeedreamVersion, TrainingModerationStatus, TransactionType, UpdateWorkflowStatus, Veo3AspectRatio, Veo3GenerationMode, Veo3Version, ViduVideoGenModel, ViduVideoGenStyle, WorkflowStatus, WorkflowUpgradeMode, ZoeDepthEnvironment, } from './types.gen';
|
|
@@ -1,84 +1,173 @@
|
|
|
1
|
-
import type { Options as
|
|
1
|
+
import type { Client, Options as Options2, TDataShape } from './client';
|
|
2
2
|
import type {
|
|
3
|
+
AddWorkflowTagData,
|
|
4
|
+
AddWorkflowTagErrors,
|
|
5
|
+
AddWorkflowTagResponses,
|
|
6
|
+
DeleteWorkflowData,
|
|
7
|
+
DeleteWorkflowErrors,
|
|
8
|
+
DeleteWorkflowResponses,
|
|
9
|
+
GetBlobContentData,
|
|
10
|
+
GetBlobContentErrors,
|
|
11
|
+
GetBlobContentResponses,
|
|
3
12
|
GetBlobData,
|
|
4
13
|
GetBlobErrors,
|
|
14
|
+
GetBlockedContentData,
|
|
15
|
+
GetBlockedContentErrors,
|
|
16
|
+
GetConsumerBlobUploadUrlData,
|
|
17
|
+
GetConsumerBlobUploadUrlErrors,
|
|
18
|
+
GetConsumerBlobUploadUrlResponses,
|
|
19
|
+
GetResourceData,
|
|
20
|
+
GetResourceErrors,
|
|
21
|
+
GetResourceResponses,
|
|
22
|
+
GetStreamingBlobData,
|
|
23
|
+
GetStreamingBlobErrors,
|
|
24
|
+
GetStreamingBlobResponses,
|
|
25
|
+
GetWorkflowData,
|
|
26
|
+
GetWorkflowErrors,
|
|
27
|
+
GetWorkflowResponses,
|
|
28
|
+
GetWorkflowStepData,
|
|
29
|
+
GetWorkflowStepErrors,
|
|
30
|
+
GetWorkflowStepResponses,
|
|
5
31
|
HeadBlobData,
|
|
6
|
-
HeadBlobResponses,
|
|
7
32
|
HeadBlobErrors,
|
|
33
|
+
HeadBlobResponses,
|
|
34
|
+
InvalidateResourceData,
|
|
35
|
+
InvalidateResourceErrors,
|
|
36
|
+
InvalidateResourceResponses,
|
|
37
|
+
InvalidateUserCacheData,
|
|
38
|
+
InvalidateUserCacheErrors,
|
|
39
|
+
InvalidateUserCacheResponses,
|
|
40
|
+
InvokeAceStepAudioStepTemplateData,
|
|
41
|
+
InvokeAceStepAudioStepTemplateErrors,
|
|
42
|
+
InvokeAceStepAudioStepTemplateResponses,
|
|
8
43
|
InvokeAgeClassificationStepTemplateData,
|
|
9
|
-
InvokeAgeClassificationStepTemplateResponses,
|
|
10
44
|
InvokeAgeClassificationStepTemplateErrors,
|
|
45
|
+
InvokeAgeClassificationStepTemplateResponses,
|
|
46
|
+
InvokeBatchOcrSafetyClassificationStepTemplateData,
|
|
47
|
+
InvokeBatchOcrSafetyClassificationStepTemplateErrors,
|
|
48
|
+
InvokeBatchOcrSafetyClassificationStepTemplateResponses,
|
|
49
|
+
InvokeChatCompletionStepTemplateData,
|
|
50
|
+
InvokeChatCompletionStepTemplateErrors,
|
|
51
|
+
InvokeChatCompletionStepTemplateResponses,
|
|
11
52
|
InvokeComfyStepTemplateData,
|
|
12
|
-
InvokeComfyStepTemplateResponses,
|
|
13
53
|
InvokeComfyStepTemplateErrors,
|
|
54
|
+
InvokeComfyStepTemplateResponses,
|
|
55
|
+
InvokeConvertImageStepTemplateData,
|
|
56
|
+
InvokeConvertImageStepTemplateErrors,
|
|
57
|
+
InvokeConvertImageStepTemplateResponses,
|
|
14
58
|
InvokeEchoStepTemplateData,
|
|
15
|
-
InvokeEchoStepTemplateResponses,
|
|
16
59
|
InvokeEchoStepTemplateErrors,
|
|
60
|
+
InvokeEchoStepTemplateResponses,
|
|
61
|
+
InvokeHumanoidImageMaskStepTemplateData,
|
|
62
|
+
InvokeHumanoidImageMaskStepTemplateErrors,
|
|
63
|
+
InvokeHumanoidImageMaskStepTemplateResponses,
|
|
17
64
|
InvokeImageGenStepTemplateData,
|
|
18
|
-
InvokeImageGenStepTemplateResponses,
|
|
19
65
|
InvokeImageGenStepTemplateErrors,
|
|
66
|
+
InvokeImageGenStepTemplateResponses,
|
|
20
67
|
InvokeImageResourceTrainingStepTemplateData,
|
|
21
|
-
InvokeImageResourceTrainingStepTemplateResponses,
|
|
22
68
|
InvokeImageResourceTrainingStepTemplateErrors,
|
|
69
|
+
InvokeImageResourceTrainingStepTemplateResponses,
|
|
23
70
|
InvokeImageUploadStepTemplateData,
|
|
24
|
-
InvokeImageUploadStepTemplateResponses,
|
|
25
71
|
InvokeImageUploadStepTemplateErrors,
|
|
72
|
+
InvokeImageUploadStepTemplateResponses,
|
|
73
|
+
InvokeImageUpscalerStepTemplateData,
|
|
74
|
+
InvokeImageUpscalerStepTemplateErrors,
|
|
75
|
+
InvokeImageUpscalerStepTemplateResponses,
|
|
76
|
+
InvokeMediaCaptioningStepTemplateData,
|
|
77
|
+
InvokeMediaCaptioningStepTemplateErrors,
|
|
78
|
+
InvokeMediaCaptioningStepTemplateResponses,
|
|
79
|
+
InvokeMediaHashStepTemplateData,
|
|
80
|
+
InvokeMediaHashStepTemplateErrors,
|
|
81
|
+
InvokeMediaHashStepTemplateResponses,
|
|
82
|
+
InvokeMediaRatingStepTemplateData,
|
|
83
|
+
InvokeMediaRatingStepTemplateErrors,
|
|
84
|
+
InvokeMediaRatingStepTemplateResponses,
|
|
85
|
+
InvokePreprocessImageStepTemplateData,
|
|
86
|
+
InvokePreprocessImageStepTemplateErrors,
|
|
87
|
+
InvokePreprocessImageStepTemplateResponses,
|
|
88
|
+
InvokePromptEnhancementStepTemplateData,
|
|
89
|
+
InvokePromptEnhancementStepTemplateErrors,
|
|
90
|
+
InvokePromptEnhancementStepTemplateResponses,
|
|
91
|
+
InvokeRepeatStepTemplateData,
|
|
92
|
+
InvokeRepeatStepTemplateErrors,
|
|
93
|
+
InvokeRepeatStepTemplateResponses,
|
|
26
94
|
InvokeTextToImageStepTemplateData,
|
|
27
|
-
InvokeTextToImageStepTemplateResponses,
|
|
28
95
|
InvokeTextToImageStepTemplateErrors,
|
|
96
|
+
InvokeTextToImageStepTemplateResponses,
|
|
97
|
+
InvokeTextToSpeechStepTemplateData,
|
|
98
|
+
InvokeTextToSpeechStepTemplateErrors,
|
|
99
|
+
InvokeTextToSpeechStepTemplateResponses,
|
|
100
|
+
InvokeTrainingStepTemplateData,
|
|
101
|
+
InvokeTrainingStepTemplateErrors,
|
|
102
|
+
InvokeTrainingStepTemplateResponses,
|
|
103
|
+
InvokeTranscodeStepTemplateData,
|
|
104
|
+
InvokeTranscodeStepTemplateErrors,
|
|
105
|
+
InvokeTranscodeStepTemplateResponses,
|
|
106
|
+
InvokeTranscriptionStepTemplateData,
|
|
107
|
+
InvokeTranscriptionStepTemplateErrors,
|
|
108
|
+
InvokeTranscriptionStepTemplateResponses,
|
|
109
|
+
InvokeTryOnUStepTemplateData,
|
|
110
|
+
InvokeTryOnUStepTemplateErrors,
|
|
111
|
+
InvokeTryOnUStepTemplateResponses,
|
|
29
112
|
InvokeVideoEnhancementStepTemplateData,
|
|
30
|
-
InvokeVideoEnhancementStepTemplateResponses,
|
|
31
113
|
InvokeVideoEnhancementStepTemplateErrors,
|
|
114
|
+
InvokeVideoEnhancementStepTemplateResponses,
|
|
115
|
+
InvokeVideoFrameExtractionStepTemplateData,
|
|
116
|
+
InvokeVideoFrameExtractionStepTemplateErrors,
|
|
117
|
+
InvokeVideoFrameExtractionStepTemplateResponses,
|
|
32
118
|
InvokeVideoGenStepTemplateData,
|
|
33
|
-
InvokeVideoGenStepTemplateResponses,
|
|
34
119
|
InvokeVideoGenStepTemplateErrors,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
GetWorkflowResponses,
|
|
52
|
-
GetWorkflowErrors,
|
|
120
|
+
InvokeVideoGenStepTemplateResponses,
|
|
121
|
+
InvokeVideoInterpolationStepTemplateData,
|
|
122
|
+
InvokeVideoInterpolationStepTemplateErrors,
|
|
123
|
+
InvokeVideoInterpolationStepTemplateResponses,
|
|
124
|
+
InvokeVideoMetadataStepTemplateData,
|
|
125
|
+
InvokeVideoMetadataStepTemplateErrors,
|
|
126
|
+
InvokeVideoMetadataStepTemplateResponses,
|
|
127
|
+
InvokeVideoUpscalerStepTemplateData,
|
|
128
|
+
InvokeVideoUpscalerStepTemplateErrors,
|
|
129
|
+
InvokeVideoUpscalerStepTemplateResponses,
|
|
130
|
+
InvokeWdTaggingStepTemplateData,
|
|
131
|
+
InvokeWdTaggingStepTemplateErrors,
|
|
132
|
+
InvokeWdTaggingStepTemplateResponses,
|
|
133
|
+
InvokeXGuardModerationStepTemplateData,
|
|
134
|
+
InvokeXGuardModerationStepTemplateErrors,
|
|
135
|
+
InvokeXGuardModerationStepTemplateResponses,
|
|
53
136
|
PatchWorkflowData,
|
|
54
|
-
PatchWorkflowResponses,
|
|
55
137
|
PatchWorkflowErrors,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
138
|
+
PatchWorkflowResponses,
|
|
139
|
+
PatchWorkflowStepData,
|
|
140
|
+
PatchWorkflowStepErrors,
|
|
141
|
+
PatchWorkflowStepResponses,
|
|
142
|
+
QueryWorkflowsData,
|
|
143
|
+
QueryWorkflowsErrors,
|
|
144
|
+
QueryWorkflowsResponses,
|
|
145
|
+
RefreshBlobData,
|
|
146
|
+
RefreshBlobErrors,
|
|
147
|
+
RefreshBlobResponses,
|
|
59
148
|
RemoveAllWorkflowTagsData,
|
|
60
|
-
RemoveAllWorkflowTagsResponses,
|
|
61
149
|
RemoveAllWorkflowTagsErrors,
|
|
62
|
-
|
|
63
|
-
AddWorkflowTagResponses,
|
|
64
|
-
AddWorkflowTagErrors,
|
|
150
|
+
RemoveAllWorkflowTagsResponses,
|
|
65
151
|
RemoveWorkflowTagData,
|
|
66
|
-
RemoveWorkflowTagResponses,
|
|
67
152
|
RemoveWorkflowTagErrors,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
153
|
+
RemoveWorkflowTagResponses,
|
|
154
|
+
SubmitWorkflowData,
|
|
155
|
+
SubmitWorkflowErrors,
|
|
156
|
+
SubmitWorkflowResponses,
|
|
157
|
+
UpdateWorkflowData,
|
|
158
|
+
UpdateWorkflowErrors,
|
|
159
|
+
UpdateWorkflowResponses,
|
|
74
160
|
UpdateWorkflowStepData,
|
|
75
|
-
UpdateWorkflowStepResponses,
|
|
76
161
|
UpdateWorkflowStepErrors,
|
|
162
|
+
UpdateWorkflowStepResponses,
|
|
163
|
+
UploadConsumerBlobData,
|
|
164
|
+
UploadConsumerBlobErrors,
|
|
165
|
+
UploadConsumerBlobResponses,
|
|
77
166
|
} from './types.gen';
|
|
78
167
|
export type Options<
|
|
79
168
|
TData extends TDataShape = TDataShape,
|
|
80
169
|
ThrowOnError extends boolean = boolean,
|
|
81
|
-
> =
|
|
170
|
+
> = Options2<TData, ThrowOnError> & {
|
|
82
171
|
/**
|
|
83
172
|
* You can provide a client instance returned by `createClient()` instead of
|
|
84
173
|
* individual options. This might be also useful if you want to implement a
|
|
@@ -92,7 +181,7 @@ export type Options<
|
|
|
92
181
|
meta?: Record<string, unknown>;
|
|
93
182
|
};
|
|
94
183
|
/**
|
|
95
|
-
* Get blob by ID. This will
|
|
184
|
+
* Get blob by ID. This will redirect to a cacheable content URL.
|
|
96
185
|
*/
|
|
97
186
|
export declare const getBlob: <ThrowOnError extends boolean = false>(
|
|
98
187
|
options: Options<GetBlobData, ThrowOnError>
|
|
@@ -103,8 +192,82 @@ export declare const getBlob: <ThrowOnError extends boolean = false>(
|
|
|
103
192
|
export declare const headBlob: <ThrowOnError extends boolean = false>(
|
|
104
193
|
options: Options<HeadBlobData, ThrowOnError>
|
|
105
194
|
) => import('./client').RequestResult<HeadBlobResponses, HeadBlobErrors, ThrowOnError, 'fields'>;
|
|
195
|
+
/**
|
|
196
|
+
* Get a presigned URL for browser uploads.
|
|
197
|
+
* The returned URL points to POST /v2/consumer/blobs with a signature for authentication.
|
|
198
|
+
*/
|
|
199
|
+
export declare const getConsumerBlobUploadUrl: <ThrowOnError extends boolean = false>(
|
|
200
|
+
options?: Options<GetConsumerBlobUploadUrlData, ThrowOnError>
|
|
201
|
+
) => import('./client').RequestResult<
|
|
202
|
+
GetConsumerBlobUploadUrlResponses,
|
|
203
|
+
GetConsumerBlobUploadUrlErrors,
|
|
204
|
+
ThrowOnError,
|
|
205
|
+
'fields'
|
|
206
|
+
>;
|
|
207
|
+
/**
|
|
208
|
+
* Upload a blob directly with on-the-fly moderation.
|
|
209
|
+
* Supports both authenticated requests (Bearer token) and presigned URLs (sig query param).
|
|
210
|
+
*/
|
|
211
|
+
export declare const uploadConsumerBlob: <ThrowOnError extends boolean = false>(
|
|
212
|
+
options?: Options<UploadConsumerBlobData, ThrowOnError>
|
|
213
|
+
) => import('./client').RequestResult<
|
|
214
|
+
UploadConsumerBlobResponses,
|
|
215
|
+
UploadConsumerBlobErrors,
|
|
216
|
+
ThrowOnError,
|
|
217
|
+
'fields'
|
|
218
|
+
>;
|
|
219
|
+
/**
|
|
220
|
+
* Serves cacheable blob content using a deterministic encrypted token
|
|
221
|
+
*/
|
|
222
|
+
export declare const getBlobContent: <ThrowOnError extends boolean = false>(
|
|
223
|
+
options: Options<GetBlobContentData, ThrowOnError>
|
|
224
|
+
) => import('./client').RequestResult<
|
|
225
|
+
GetBlobContentResponses,
|
|
226
|
+
GetBlobContentErrors,
|
|
227
|
+
ThrowOnError,
|
|
228
|
+
'fields'
|
|
229
|
+
>;
|
|
230
|
+
/**
|
|
231
|
+
* Serves a blocked placeholder image with the specified dimensions
|
|
232
|
+
*/
|
|
233
|
+
export declare const getBlockedContent: <ThrowOnError extends boolean = false>(
|
|
234
|
+
options: Options<GetBlockedContentData, ThrowOnError>
|
|
235
|
+
) => import('./client').RequestResult<unknown, GetBlockedContentErrors, ThrowOnError, 'fields'>;
|
|
236
|
+
/**
|
|
237
|
+
* Refresh a blob's URL and debounce its lifetime.
|
|
238
|
+
* Returns a fresh presigned URL and resets the 30-day TTL.
|
|
239
|
+
*/
|
|
240
|
+
export declare const refreshBlob: <ThrowOnError extends boolean = false>(
|
|
241
|
+
options: Options<RefreshBlobData, ThrowOnError>
|
|
242
|
+
) => import('./client').RequestResult<
|
|
243
|
+
RefreshBlobResponses,
|
|
244
|
+
RefreshBlobErrors,
|
|
245
|
+
ThrowOnError,
|
|
246
|
+
'fields'
|
|
247
|
+
>;
|
|
248
|
+
export declare const invalidateUserCache: <ThrowOnError extends boolean = false>(
|
|
249
|
+
options: Options<InvalidateUserCacheData, ThrowOnError>
|
|
250
|
+
) => import('./client').RequestResult<
|
|
251
|
+
InvalidateUserCacheResponses,
|
|
252
|
+
InvalidateUserCacheErrors,
|
|
253
|
+
ThrowOnError,
|
|
254
|
+
'fields'
|
|
255
|
+
>;
|
|
256
|
+
/**
|
|
257
|
+
* Workflow step for generating music using ACE Step 1.5.
|
|
258
|
+
* /// Produces full songs from text descriptions and structured lyrics.
|
|
259
|
+
*/
|
|
260
|
+
export declare const invokeAceStepAudioStepTemplate: <ThrowOnError extends boolean = false>(
|
|
261
|
+
options?: Options<InvokeAceStepAudioStepTemplateData, ThrowOnError>
|
|
262
|
+
) => import('./client').RequestResult<
|
|
263
|
+
InvokeAceStepAudioStepTemplateResponses,
|
|
264
|
+
InvokeAceStepAudioStepTemplateErrors,
|
|
265
|
+
ThrowOnError,
|
|
266
|
+
'fields'
|
|
267
|
+
>;
|
|
106
268
|
/**
|
|
107
269
|
* Age classification
|
|
270
|
+
*
|
|
108
271
|
* Detects minors in media content. Returns a boolean value indicating whether the content contains minors as well as details on where minors are detected.
|
|
109
272
|
*/
|
|
110
273
|
export declare const invokeAgeClassificationStepTemplate: <ThrowOnError extends boolean = false>(
|
|
@@ -115,8 +278,33 @@ export declare const invokeAgeClassificationStepTemplate: <ThrowOnError extends
|
|
|
115
278
|
ThrowOnError,
|
|
116
279
|
'fields'
|
|
117
280
|
>;
|
|
281
|
+
export declare const invokeBatchOcrSafetyClassificationStepTemplate: <
|
|
282
|
+
ThrowOnError extends boolean = false,
|
|
283
|
+
>(
|
|
284
|
+
options?: Options<InvokeBatchOcrSafetyClassificationStepTemplateData, ThrowOnError>
|
|
285
|
+
) => import('./client').RequestResult<
|
|
286
|
+
InvokeBatchOcrSafetyClassificationStepTemplateResponses,
|
|
287
|
+
InvokeBatchOcrSafetyClassificationStepTemplateErrors,
|
|
288
|
+
ThrowOnError,
|
|
289
|
+
'fields'
|
|
290
|
+
>;
|
|
291
|
+
/**
|
|
292
|
+
* ChatCompletion
|
|
293
|
+
*
|
|
294
|
+
* Generate chat completions using language models with support for text and image inputs.
|
|
295
|
+
* /// Compatible with OpenAI Chat Completions API format.
|
|
296
|
+
*/
|
|
297
|
+
export declare const invokeChatCompletionStepTemplate: <ThrowOnError extends boolean = false>(
|
|
298
|
+
options?: Options<InvokeChatCompletionStepTemplateData, ThrowOnError>
|
|
299
|
+
) => import('./client').RequestResult<
|
|
300
|
+
InvokeChatCompletionStepTemplateResponses,
|
|
301
|
+
InvokeChatCompletionStepTemplateErrors,
|
|
302
|
+
ThrowOnError,
|
|
303
|
+
'fields'
|
|
304
|
+
>;
|
|
118
305
|
/**
|
|
119
306
|
* Comfy workflows
|
|
307
|
+
*
|
|
120
308
|
* Runs a comfy workflow. Currently there are limited nodes available. Contact support for more information.
|
|
121
309
|
*/
|
|
122
310
|
export declare const invokeComfyStepTemplate: <ThrowOnError extends boolean = false>(
|
|
@@ -127,8 +315,20 @@ export declare const invokeComfyStepTemplate: <ThrowOnError extends boolean = fa
|
|
|
127
315
|
ThrowOnError,
|
|
128
316
|
'fields'
|
|
129
317
|
>;
|
|
318
|
+
/**
|
|
319
|
+
* A workflow step that converts images to different formats and applies optional transforms.
|
|
320
|
+
*/
|
|
321
|
+
export declare const invokeConvertImageStepTemplate: <ThrowOnError extends boolean = false>(
|
|
322
|
+
options?: Options<InvokeConvertImageStepTemplateData, ThrowOnError>
|
|
323
|
+
) => import('./client').RequestResult<
|
|
324
|
+
InvokeConvertImageStepTemplateResponses,
|
|
325
|
+
InvokeConvertImageStepTemplateErrors,
|
|
326
|
+
ThrowOnError,
|
|
327
|
+
'fields'
|
|
328
|
+
>;
|
|
130
329
|
/**
|
|
131
330
|
* Echo
|
|
331
|
+
*
|
|
132
332
|
* A workflow step that takes a message string and retuns it.
|
|
133
333
|
* /// This step is intended for testing purposes.
|
|
134
334
|
*/
|
|
@@ -140,8 +340,17 @@ export declare const invokeEchoStepTemplate: <ThrowOnError extends boolean = fal
|
|
|
140
340
|
ThrowOnError,
|
|
141
341
|
'fields'
|
|
142
342
|
>;
|
|
343
|
+
export declare const invokeHumanoidImageMaskStepTemplate: <ThrowOnError extends boolean = false>(
|
|
344
|
+
options?: Options<InvokeHumanoidImageMaskStepTemplateData, ThrowOnError>
|
|
345
|
+
) => import('./client').RequestResult<
|
|
346
|
+
InvokeHumanoidImageMaskStepTemplateResponses,
|
|
347
|
+
InvokeHumanoidImageMaskStepTemplateErrors,
|
|
348
|
+
ThrowOnError,
|
|
349
|
+
'fields'
|
|
350
|
+
>;
|
|
143
351
|
/**
|
|
144
352
|
* Image Generation
|
|
353
|
+
*
|
|
145
354
|
* Generate images through text/image inputs using any of our supported engines
|
|
146
355
|
*/
|
|
147
356
|
export declare const invokeImageGenStepTemplate: <ThrowOnError extends boolean = false>(
|
|
@@ -154,6 +363,7 @@ export declare const invokeImageGenStepTemplate: <ThrowOnError extends boolean =
|
|
|
154
363
|
>;
|
|
155
364
|
/**
|
|
156
365
|
* LORA Training
|
|
366
|
+
*
|
|
157
367
|
* Train LORA's
|
|
158
368
|
*/
|
|
159
369
|
export declare const invokeImageResourceTrainingStepTemplate: <
|
|
@@ -168,6 +378,7 @@ export declare const invokeImageResourceTrainingStepTemplate: <
|
|
|
168
378
|
>;
|
|
169
379
|
/**
|
|
170
380
|
* Image upload
|
|
381
|
+
*
|
|
171
382
|
* Uploads an image to be used in a workflow
|
|
172
383
|
*/
|
|
173
384
|
export declare const invokeImageUploadStepTemplate: <ThrowOnError extends boolean = false>(
|
|
@@ -178,8 +389,89 @@ export declare const invokeImageUploadStepTemplate: <ThrowOnError extends boolea
|
|
|
178
389
|
ThrowOnError,
|
|
179
390
|
'fields'
|
|
180
391
|
>;
|
|
392
|
+
export declare const invokeImageUpscalerStepTemplate: <ThrowOnError extends boolean = false>(
|
|
393
|
+
options?: Options<InvokeImageUpscalerStepTemplateData, ThrowOnError>
|
|
394
|
+
) => import('./client').RequestResult<
|
|
395
|
+
InvokeImageUpscalerStepTemplateResponses,
|
|
396
|
+
InvokeImageUpscalerStepTemplateErrors,
|
|
397
|
+
ThrowOnError,
|
|
398
|
+
'fields'
|
|
399
|
+
>;
|
|
400
|
+
/**
|
|
401
|
+
* Media Captioning
|
|
402
|
+
*
|
|
403
|
+
* Generates a descriptive caption for a single media item using the JoyCaption model.
|
|
404
|
+
*/
|
|
405
|
+
export declare const invokeMediaCaptioningStepTemplate: <ThrowOnError extends boolean = false>(
|
|
406
|
+
options?: Options<InvokeMediaCaptioningStepTemplateData, ThrowOnError>
|
|
407
|
+
) => import('./client').RequestResult<
|
|
408
|
+
InvokeMediaCaptioningStepTemplateResponses,
|
|
409
|
+
InvokeMediaCaptioningStepTemplateErrors,
|
|
410
|
+
ThrowOnError,
|
|
411
|
+
'fields'
|
|
412
|
+
>;
|
|
413
|
+
/**
|
|
414
|
+
* MediaHash
|
|
415
|
+
*
|
|
416
|
+
* Generates perceptual hashes for media content to enable similarity detection and duplicate identification.
|
|
417
|
+
*/
|
|
418
|
+
export declare const invokeMediaHashStepTemplate: <ThrowOnError extends boolean = false>(
|
|
419
|
+
options?: Options<InvokeMediaHashStepTemplateData, ThrowOnError>
|
|
420
|
+
) => import('./client').RequestResult<
|
|
421
|
+
InvokeMediaHashStepTemplateResponses,
|
|
422
|
+
InvokeMediaHashStepTemplateErrors,
|
|
423
|
+
ThrowOnError,
|
|
424
|
+
'fields'
|
|
425
|
+
>;
|
|
426
|
+
/**
|
|
427
|
+
* MediaRating
|
|
428
|
+
*
|
|
429
|
+
* Performs NSFW level detection and content safety classification on media content.
|
|
430
|
+
*/
|
|
431
|
+
export declare const invokeMediaRatingStepTemplate: <ThrowOnError extends boolean = false>(
|
|
432
|
+
options?: Options<InvokeMediaRatingStepTemplateData, ThrowOnError>
|
|
433
|
+
) => import('./client').RequestResult<
|
|
434
|
+
InvokeMediaRatingStepTemplateResponses,
|
|
435
|
+
InvokeMediaRatingStepTemplateErrors,
|
|
436
|
+
ThrowOnError,
|
|
437
|
+
'fields'
|
|
438
|
+
>;
|
|
439
|
+
export declare const invokePreprocessImageStepTemplate: <ThrowOnError extends boolean = false>(
|
|
440
|
+
options?: Options<InvokePreprocessImageStepTemplateData, ThrowOnError>
|
|
441
|
+
) => import('./client').RequestResult<
|
|
442
|
+
InvokePreprocessImageStepTemplateResponses,
|
|
443
|
+
InvokePreprocessImageStepTemplateErrors,
|
|
444
|
+
ThrowOnError,
|
|
445
|
+
'fields'
|
|
446
|
+
>;
|
|
447
|
+
/**
|
|
448
|
+
* PromptEnhancement
|
|
449
|
+
*
|
|
450
|
+
* Analyzes and enhances user prompts for a specific AI ecosystem.
|
|
451
|
+
* /// Returns detected issues, recommendations, and improved prompt variants.
|
|
452
|
+
*/
|
|
453
|
+
export declare const invokePromptEnhancementStepTemplate: <ThrowOnError extends boolean = false>(
|
|
454
|
+
options?: Options<InvokePromptEnhancementStepTemplateData, ThrowOnError>
|
|
455
|
+
) => import('./client').RequestResult<
|
|
456
|
+
InvokePromptEnhancementStepTemplateResponses,
|
|
457
|
+
InvokePromptEnhancementStepTemplateErrors,
|
|
458
|
+
ThrowOnError,
|
|
459
|
+
'fields'
|
|
460
|
+
>;
|
|
461
|
+
/**
|
|
462
|
+
* Repeat workflow step.
|
|
463
|
+
*/
|
|
464
|
+
export declare const invokeRepeatStepTemplate: <ThrowOnError extends boolean = false>(
|
|
465
|
+
options?: Options<InvokeRepeatStepTemplateData, ThrowOnError>
|
|
466
|
+
) => import('./client').RequestResult<
|
|
467
|
+
InvokeRepeatStepTemplateResponses,
|
|
468
|
+
InvokeRepeatStepTemplateErrors,
|
|
469
|
+
ThrowOnError,
|
|
470
|
+
'fields'
|
|
471
|
+
>;
|
|
181
472
|
/**
|
|
182
473
|
* TextToImage
|
|
474
|
+
*
|
|
183
475
|
* Generate images using text as input
|
|
184
476
|
*/
|
|
185
477
|
export declare const invokeTextToImageStepTemplate: <ThrowOnError extends boolean = false>(
|
|
@@ -190,6 +482,66 @@ export declare const invokeTextToImageStepTemplate: <ThrowOnError extends boolea
|
|
|
190
482
|
ThrowOnError,
|
|
191
483
|
'fields'
|
|
192
484
|
>;
|
|
485
|
+
/**
|
|
486
|
+
* Text-to-Speech
|
|
487
|
+
*
|
|
488
|
+
* Synthesizes speech from text, supporting both voice cloning (Base mode with reference audio) and built-in speakers (CustomVoice mode).
|
|
489
|
+
*/
|
|
490
|
+
export declare const invokeTextToSpeechStepTemplate: <ThrowOnError extends boolean = false>(
|
|
491
|
+
options?: Options<InvokeTextToSpeechStepTemplateData, ThrowOnError>
|
|
492
|
+
) => import('./client').RequestResult<
|
|
493
|
+
InvokeTextToSpeechStepTemplateResponses,
|
|
494
|
+
InvokeTextToSpeechStepTemplateErrors,
|
|
495
|
+
ThrowOnError,
|
|
496
|
+
'fields'
|
|
497
|
+
>;
|
|
498
|
+
/**
|
|
499
|
+
* Training
|
|
500
|
+
*
|
|
501
|
+
* A workflow step for training machine learning models (LoRAs, checkpoints, etc.)
|
|
502
|
+
* /// on various types of data (images, videos, audio). This replaces ImageResourceTraining
|
|
503
|
+
* /// with a cleaner architecture that creates one job per epoch instead of a single monolithic job.
|
|
504
|
+
*/
|
|
505
|
+
export declare const invokeTrainingStepTemplate: <ThrowOnError extends boolean = false>(
|
|
506
|
+
options?: Options<InvokeTrainingStepTemplateData, ThrowOnError>
|
|
507
|
+
) => import('./client').RequestResult<
|
|
508
|
+
InvokeTrainingStepTemplateResponses,
|
|
509
|
+
InvokeTrainingStepTemplateErrors,
|
|
510
|
+
ThrowOnError,
|
|
511
|
+
'fields'
|
|
512
|
+
>;
|
|
513
|
+
/**
|
|
514
|
+
* Transcoding
|
|
515
|
+
*/
|
|
516
|
+
export declare const invokeTranscodeStepTemplate: <ThrowOnError extends boolean = false>(
|
|
517
|
+
options?: Options<InvokeTranscodeStepTemplateData, ThrowOnError>
|
|
518
|
+
) => import('./client').RequestResult<
|
|
519
|
+
InvokeTranscodeStepTemplateResponses,
|
|
520
|
+
InvokeTranscodeStepTemplateErrors,
|
|
521
|
+
ThrowOnError,
|
|
522
|
+
'fields'
|
|
523
|
+
>;
|
|
524
|
+
/**
|
|
525
|
+
* Transcription
|
|
526
|
+
*
|
|
527
|
+
* Performs automatic speech recognition (ASR) on audio media, returning transcribed text with optional timestamps.
|
|
528
|
+
*/
|
|
529
|
+
export declare const invokeTranscriptionStepTemplate: <ThrowOnError extends boolean = false>(
|
|
530
|
+
options?: Options<InvokeTranscriptionStepTemplateData, ThrowOnError>
|
|
531
|
+
) => import('./client').RequestResult<
|
|
532
|
+
InvokeTranscriptionStepTemplateResponses,
|
|
533
|
+
InvokeTranscriptionStepTemplateErrors,
|
|
534
|
+
ThrowOnError,
|
|
535
|
+
'fields'
|
|
536
|
+
>;
|
|
537
|
+
export declare const invokeTryOnUStepTemplate: <ThrowOnError extends boolean = false>(
|
|
538
|
+
options?: Options<InvokeTryOnUStepTemplateData, ThrowOnError>
|
|
539
|
+
) => import('./client').RequestResult<
|
|
540
|
+
InvokeTryOnUStepTemplateResponses,
|
|
541
|
+
InvokeTryOnUStepTemplateErrors,
|
|
542
|
+
ThrowOnError,
|
|
543
|
+
'fields'
|
|
544
|
+
>;
|
|
193
545
|
/**
|
|
194
546
|
* Upscale videos and/or interpolate frames
|
|
195
547
|
*/
|
|
@@ -201,8 +553,23 @@ export declare const invokeVideoEnhancementStepTemplate: <ThrowOnError extends b
|
|
|
201
553
|
ThrowOnError,
|
|
202
554
|
'fields'
|
|
203
555
|
>;
|
|
556
|
+
/**
|
|
557
|
+
* Video Frame Extraction
|
|
558
|
+
*
|
|
559
|
+
* Extracts unique frames from a video at a specified rate using perceptual hashing to filter out duplicate/similar frames.
|
|
560
|
+
* /// Useful for generating video previews, storyboards, or analyzing video content.
|
|
561
|
+
*/
|
|
562
|
+
export declare const invokeVideoFrameExtractionStepTemplate: <ThrowOnError extends boolean = false>(
|
|
563
|
+
options?: Options<InvokeVideoFrameExtractionStepTemplateData, ThrowOnError>
|
|
564
|
+
) => import('./client').RequestResult<
|
|
565
|
+
InvokeVideoFrameExtractionStepTemplateResponses,
|
|
566
|
+
InvokeVideoFrameExtractionStepTemplateErrors,
|
|
567
|
+
ThrowOnError,
|
|
568
|
+
'fields'
|
|
569
|
+
>;
|
|
204
570
|
/**
|
|
205
571
|
* Video generation
|
|
572
|
+
*
|
|
206
573
|
* Generate videos through text/image inputs using any of our supported engines
|
|
207
574
|
*/
|
|
208
575
|
export declare const invokeVideoGenStepTemplate: <ThrowOnError extends boolean = false>(
|
|
@@ -213,6 +580,66 @@ export declare const invokeVideoGenStepTemplate: <ThrowOnError extends boolean =
|
|
|
213
580
|
ThrowOnError,
|
|
214
581
|
'fields'
|
|
215
582
|
>;
|
|
583
|
+
/**
|
|
584
|
+
* Interpolate videos using VFI Mamba
|
|
585
|
+
*/
|
|
586
|
+
export declare const invokeVideoInterpolationStepTemplate: <ThrowOnError extends boolean = false>(
|
|
587
|
+
options?: Options<InvokeVideoInterpolationStepTemplateData, ThrowOnError>
|
|
588
|
+
) => import('./client').RequestResult<
|
|
589
|
+
InvokeVideoInterpolationStepTemplateResponses,
|
|
590
|
+
InvokeVideoInterpolationStepTemplateErrors,
|
|
591
|
+
ThrowOnError,
|
|
592
|
+
'fields'
|
|
593
|
+
>;
|
|
594
|
+
/**
|
|
595
|
+
* Extract metadata from videos including width, height, FPS, and duration
|
|
596
|
+
*/
|
|
597
|
+
export declare const invokeVideoMetadataStepTemplate: <ThrowOnError extends boolean = false>(
|
|
598
|
+
options?: Options<InvokeVideoMetadataStepTemplateData, ThrowOnError>
|
|
599
|
+
) => import('./client').RequestResult<
|
|
600
|
+
InvokeVideoMetadataStepTemplateResponses,
|
|
601
|
+
InvokeVideoMetadataStepTemplateErrors,
|
|
602
|
+
ThrowOnError,
|
|
603
|
+
'fields'
|
|
604
|
+
>;
|
|
605
|
+
/**
|
|
606
|
+
* Upscale videos using FlashVSR
|
|
607
|
+
*/
|
|
608
|
+
export declare const invokeVideoUpscalerStepTemplate: <ThrowOnError extends boolean = false>(
|
|
609
|
+
options?: Options<InvokeVideoUpscalerStepTemplateData, ThrowOnError>
|
|
610
|
+
) => import('./client').RequestResult<
|
|
611
|
+
InvokeVideoUpscalerStepTemplateResponses,
|
|
612
|
+
InvokeVideoUpscalerStepTemplateErrors,
|
|
613
|
+
ThrowOnError,
|
|
614
|
+
'fields'
|
|
615
|
+
>;
|
|
616
|
+
/**
|
|
617
|
+
* WDTagging
|
|
618
|
+
*
|
|
619
|
+
* Performs Waifu Diffusion tagging on media content to identify characteristics, objects, and themes.
|
|
620
|
+
*/
|
|
621
|
+
export declare const invokeWdTaggingStepTemplate: <ThrowOnError extends boolean = false>(
|
|
622
|
+
options?: Options<InvokeWdTaggingStepTemplateData, ThrowOnError>
|
|
623
|
+
) => import('./client').RequestResult<
|
|
624
|
+
InvokeWdTaggingStepTemplateResponses,
|
|
625
|
+
InvokeWdTaggingStepTemplateErrors,
|
|
626
|
+
ThrowOnError,
|
|
627
|
+
'fields'
|
|
628
|
+
>;
|
|
629
|
+
/**
|
|
630
|
+
* XGuardModeration
|
|
631
|
+
*
|
|
632
|
+
* Evaluate text or generation prompts against XGuard content moderation policies.
|
|
633
|
+
* /// Generates one ChatCompletion job per label and aggregates results with logprob-based scoring.
|
|
634
|
+
*/
|
|
635
|
+
export declare const invokeXGuardModerationStepTemplate: <ThrowOnError extends boolean = false>(
|
|
636
|
+
options?: Options<InvokeXGuardModerationStepTemplateData, ThrowOnError>
|
|
637
|
+
) => import('./client').RequestResult<
|
|
638
|
+
InvokeXGuardModerationStepTemplateResponses,
|
|
639
|
+
InvokeXGuardModerationStepTemplateErrors,
|
|
640
|
+
ThrowOnError,
|
|
641
|
+
'fields'
|
|
642
|
+
>;
|
|
216
643
|
/**
|
|
217
644
|
* Invalidates the cache of a specific resource.
|
|
218
645
|
*/
|
|
@@ -235,6 +662,14 @@ export declare const getResource: <ThrowOnError extends boolean = false>(
|
|
|
235
662
|
ThrowOnError,
|
|
236
663
|
'fields'
|
|
237
664
|
>;
|
|
665
|
+
export declare const getStreamingBlob: <ThrowOnError extends boolean = false>(
|
|
666
|
+
options: Options<GetStreamingBlobData, ThrowOnError>
|
|
667
|
+
) => import('./client').RequestResult<
|
|
668
|
+
GetStreamingBlobResponses,
|
|
669
|
+
GetStreamingBlobErrors,
|
|
670
|
+
ThrowOnError,
|
|
671
|
+
'fields'
|
|
672
|
+
>;
|
|
238
673
|
/**
|
|
239
674
|
* Query workflows
|
|
240
675
|
*/
|
|
@@ -259,6 +694,7 @@ export declare const submitWorkflow: <ThrowOnError extends boolean = false>(
|
|
|
259
694
|
>;
|
|
260
695
|
/**
|
|
261
696
|
* Delete workflow
|
|
697
|
+
*
|
|
262
698
|
* This will delete a workflow. This may trigger a refund if the work requested with this workflow has not yet started
|
|
263
699
|
*/
|
|
264
700
|
export declare const deleteWorkflow: <ThrowOnError extends boolean = false>(
|
|
@@ -282,6 +718,7 @@ export declare const getWorkflow: <ThrowOnError extends boolean = false>(
|
|
|
282
718
|
>;
|
|
283
719
|
/**
|
|
284
720
|
* Patch workflow
|
|
721
|
+
*
|
|
285
722
|
* Patches a worfklow using JSON Patch. This can currently be used to cancel a worfklow, update metadata and add additional tags
|
|
286
723
|
*/
|
|
287
724
|
export declare const patchWorkflow: <ThrowOnError extends boolean = false>(
|
|
@@ -294,6 +731,7 @@ export declare const patchWorkflow: <ThrowOnError extends boolean = false>(
|
|
|
294
731
|
>;
|
|
295
732
|
/**
|
|
296
733
|
* Update workflow
|
|
734
|
+
*
|
|
297
735
|
* Updates a worfklow. This can currently be used to cancel a worfklow or override metadata and/or tags
|
|
298
736
|
*/
|
|
299
737
|
export declare const updateWorkflow: <ThrowOnError extends boolean = false>(
|
|
@@ -317,6 +755,7 @@ export declare const removeAllWorkflowTags: <ThrowOnError extends boolean = fals
|
|
|
317
755
|
>;
|
|
318
756
|
/**
|
|
319
757
|
* Add workflow tag
|
|
758
|
+
*
|
|
320
759
|
* Adds a tag to a workflow
|
|
321
760
|
*/
|
|
322
761
|
export declare const addWorkflowTag: <ThrowOnError extends boolean = false>(
|