@civitai/client 0.2.0-beta.7 → 0.2.0-beta.71

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.
Files changed (45) hide show
  1. package/dist/client/CivitaiClient.js +3 -1
  2. package/dist/generated/client/client.gen.d.ts +2 -0
  3. package/dist/generated/client/client.gen.js +237 -0
  4. package/dist/generated/client/index.d.ts +9 -8
  5. package/dist/generated/client/index.js +6 -4
  6. package/dist/generated/client/types.d.ts +4 -5
  7. package/dist/generated/client/types.gen.d.ts +195 -0
  8. package/dist/generated/client/types.gen.js +2 -0
  9. package/dist/generated/client/utils.gen.d.ts +58 -0
  10. package/dist/generated/client/utils.gen.js +234 -0
  11. package/dist/generated/client.gen.d.ts +5 -5
  12. package/dist/generated/client.gen.js +1 -1
  13. package/dist/generated/core/auth.gen.d.ts +21 -0
  14. package/dist/generated/core/auth.gen.js +14 -0
  15. package/dist/generated/core/bodySerializer.gen.d.ts +25 -0
  16. package/dist/generated/core/bodySerializer.gen.js +57 -0
  17. package/dist/generated/core/params.gen.d.ts +49 -0
  18. package/dist/generated/core/params.gen.js +100 -0
  19. package/dist/generated/core/pathSerializer.gen.d.ts +49 -0
  20. package/dist/generated/core/pathSerializer.gen.js +106 -0
  21. package/dist/generated/core/queryKeySerializer.gen.d.ts +24 -0
  22. package/dist/generated/core/queryKeySerializer.gen.js +92 -0
  23. package/dist/generated/core/serverSentEvents.gen.d.ts +88 -0
  24. package/dist/generated/core/serverSentEvents.gen.js +134 -0
  25. package/dist/generated/core/types.gen.d.ts +106 -0
  26. package/dist/generated/core/types.gen.js +2 -0
  27. package/dist/generated/core/utils.gen.d.ts +25 -0
  28. package/dist/generated/core/utils.gen.js +87 -0
  29. package/dist/generated/index.d.ts +1138 -2
  30. package/dist/generated/index.js +2 -2
  31. package/dist/generated/schemas.gen.d.ts +1811 -1866
  32. package/dist/generated/schemas.gen.js +2020 -2082
  33. package/dist/generated/sdk.gen.d.ts +731 -52
  34. package/dist/generated/sdk.gen.js +673 -186
  35. package/dist/generated/services.gen.d.ts +90 -88
  36. package/dist/generated/services.gen.js +147 -100
  37. package/dist/generated/types.gen.d.ts +9942 -1587
  38. package/dist/generated/types.gen.js +276 -53
  39. package/dist/utils/Air.d.ts +3 -1
  40. package/dist/utils/Air.js +3 -3
  41. package/dist/utils/TimeSpan.d.ts +1 -1
  42. package/dist/utils/TimeSpan.js +6 -6
  43. package/package.json +3 -3
  44. package/dist/utils/types.d.ts +0 -3
  45. package/dist/utils/types.js +0 -1
@@ -1,84 +1,221 @@
1
- import type { Options as ClientOptions, TDataShape, Client } from './client';
1
+ import type { Client, Options as Options2, TDataShape } from './client';
2
2
  import type {
3
+ AddWorkflowTagData,
4
+ AddWorkflowTagErrors,
5
+ AddWorkflowTagResponses,
6
+ DeleteAppData,
7
+ DeleteAppErrors,
8
+ DeleteAppResponses,
9
+ DeleteWorkflowData,
10
+ DeleteWorkflowErrors,
11
+ DeleteWorkflowResponses,
12
+ GetAppData,
13
+ GetAppErrors,
14
+ GetAppLatestData,
15
+ GetAppLatestErrors,
16
+ GetAppLatestResponses,
17
+ GetAppResponses,
18
+ GetBlobArchiveData,
19
+ GetBlobArchiveErrors,
20
+ GetBlobArchiveResponses,
21
+ GetBlobContentData,
22
+ GetBlobContentErrors,
23
+ GetBlobContentResponses,
3
24
  GetBlobData,
4
25
  GetBlobErrors,
26
+ GetBlockedContentData,
27
+ GetBlockedContentErrors,
28
+ GetConsumerBlobUploadUrlData,
29
+ GetConsumerBlobUploadUrlErrors,
30
+ GetConsumerBlobUploadUrlResponses,
31
+ GetResourceData,
32
+ GetResourceErrors,
33
+ GetResourceResponses,
34
+ GetStreamingBlobData,
35
+ GetStreamingBlobErrors,
36
+ GetStreamingBlobResponses,
37
+ GetWorkflowData,
38
+ GetWorkflowErrors,
39
+ GetWorkflowResponses,
40
+ GetWorkflowStepData,
41
+ GetWorkflowStepErrors,
42
+ GetWorkflowStepResponses,
5
43
  HeadBlobData,
6
- HeadBlobResponses,
7
44
  HeadBlobErrors,
45
+ HeadBlobResponses,
46
+ InvalidateUserCacheData,
47
+ InvalidateUserCacheErrors,
48
+ InvalidateUserCacheResponses,
49
+ InvokeAceStepAudioStepTemplateData,
50
+ InvokeAceStepAudioStepTemplateErrors,
51
+ InvokeAceStepAudioStepTemplateResponses,
8
52
  InvokeAgeClassificationStepTemplateData,
9
- InvokeAgeClassificationStepTemplateResponses,
10
53
  InvokeAgeClassificationStepTemplateErrors,
54
+ InvokeAgeClassificationStepTemplateResponses,
55
+ InvokeAudioCaptioningStepTemplateData,
56
+ InvokeAudioCaptioningStepTemplateErrors,
57
+ InvokeAudioCaptioningStepTemplateResponses,
58
+ InvokeBatchOcrSafetyClassificationStepTemplateData,
59
+ InvokeBatchOcrSafetyClassificationStepTemplateErrors,
60
+ InvokeBatchOcrSafetyClassificationStepTemplateResponses,
61
+ InvokeBlobArchiveStepTemplateData,
62
+ InvokeBlobArchiveStepTemplateErrors,
63
+ InvokeBlobArchiveStepTemplateResponses,
64
+ InvokeChatCompletionStepTemplateData,
65
+ InvokeChatCompletionStepTemplateErrors,
66
+ InvokeChatCompletionStepTemplateResponses,
11
67
  InvokeComfyStepTemplateData,
12
- InvokeComfyStepTemplateResponses,
13
68
  InvokeComfyStepTemplateErrors,
69
+ InvokeComfyStepTemplateResponses,
70
+ InvokeComposeMediaStepTemplateData,
71
+ InvokeComposeMediaStepTemplateErrors,
72
+ InvokeComposeMediaStepTemplateResponses,
73
+ InvokeConvertImageStepTemplateData,
74
+ InvokeConvertImageStepTemplateErrors,
75
+ InvokeConvertImageStepTemplateResponses,
76
+ InvokeCustomAppStepTemplateData,
77
+ InvokeCustomAppStepTemplateErrors,
78
+ InvokeCustomAppStepTemplateResponses,
79
+ InvokeCustomComfyStepTemplateData,
80
+ InvokeCustomComfyStepTemplateErrors,
81
+ InvokeCustomComfyStepTemplateResponses,
14
82
  InvokeEchoStepTemplateData,
15
- InvokeEchoStepTemplateResponses,
16
83
  InvokeEchoStepTemplateErrors,
84
+ InvokeEchoStepTemplateResponses,
85
+ InvokeHumanoidImageMaskStepTemplateData,
86
+ InvokeHumanoidImageMaskStepTemplateErrors,
87
+ InvokeHumanoidImageMaskStepTemplateResponses,
88
+ InvokeImageBackgroundRemovalStepTemplateData,
89
+ InvokeImageBackgroundRemovalStepTemplateErrors,
90
+ InvokeImageBackgroundRemovalStepTemplateResponses,
17
91
  InvokeImageGenStepTemplateData,
18
- InvokeImageGenStepTemplateResponses,
19
92
  InvokeImageGenStepTemplateErrors,
93
+ InvokeImageGenStepTemplateResponses,
20
94
  InvokeImageResourceTrainingStepTemplateData,
21
- InvokeImageResourceTrainingStepTemplateResponses,
22
95
  InvokeImageResourceTrainingStepTemplateErrors,
96
+ InvokeImageResourceTrainingStepTemplateResponses,
23
97
  InvokeImageUploadStepTemplateData,
24
- InvokeImageUploadStepTemplateResponses,
25
98
  InvokeImageUploadStepTemplateErrors,
99
+ InvokeImageUploadStepTemplateResponses,
100
+ InvokeImageUpscalerStepTemplateData,
101
+ InvokeImageUpscalerStepTemplateErrors,
102
+ InvokeImageUpscalerStepTemplateResponses,
103
+ InvokeMediaCaptioningStepTemplateData,
104
+ InvokeMediaCaptioningStepTemplateErrors,
105
+ InvokeMediaCaptioningStepTemplateResponses,
106
+ InvokeMediaHashStepTemplateData,
107
+ InvokeMediaHashStepTemplateErrors,
108
+ InvokeMediaHashStepTemplateResponses,
109
+ InvokeMediaRatingStepTemplateData,
110
+ InvokeMediaRatingStepTemplateErrors,
111
+ InvokeMediaRatingStepTemplateResponses,
112
+ InvokeModelClamScanStepTemplateData,
113
+ InvokeModelClamScanStepTemplateErrors,
114
+ InvokeModelClamScanStepTemplateResponses,
115
+ InvokeModelHashStepTemplateData,
116
+ InvokeModelHashStepTemplateErrors,
117
+ InvokeModelHashStepTemplateResponses,
118
+ InvokeModelParseMetadataStepTemplateData,
119
+ InvokeModelParseMetadataStepTemplateErrors,
120
+ InvokeModelParseMetadataStepTemplateResponses,
121
+ InvokeModelPickleScanStepTemplateData,
122
+ InvokeModelPickleScanStepTemplateErrors,
123
+ InvokeModelPickleScanStepTemplateResponses,
124
+ InvokePolyGenStepTemplateData,
125
+ InvokePolyGenStepTemplateErrors,
126
+ InvokePolyGenStepTemplateResponses,
127
+ InvokePreprocessImageStepTemplateData,
128
+ InvokePreprocessImageStepTemplateErrors,
129
+ InvokePreprocessImageStepTemplateResponses,
130
+ InvokePromptEnhancementStepTemplateData,
131
+ InvokePromptEnhancementStepTemplateErrors,
132
+ InvokePromptEnhancementStepTemplateResponses,
133
+ InvokeRepeatStepTemplateData,
134
+ InvokeRepeatStepTemplateErrors,
135
+ InvokeRepeatStepTemplateResponses,
26
136
  InvokeTextToImageStepTemplateData,
27
- InvokeTextToImageStepTemplateResponses,
28
137
  InvokeTextToImageStepTemplateErrors,
138
+ InvokeTextToImageStepTemplateResponses,
139
+ InvokeTextToSpeechStepTemplateData,
140
+ InvokeTextToSpeechStepTemplateErrors,
141
+ InvokeTextToSpeechStepTemplateResponses,
142
+ InvokeTrainingStepTemplateData,
143
+ InvokeTrainingStepTemplateErrors,
144
+ InvokeTrainingStepTemplateResponses,
145
+ InvokeTranscodeStepTemplateData,
146
+ InvokeTranscodeStepTemplateErrors,
147
+ InvokeTranscodeStepTemplateResponses,
148
+ InvokeTranscriptionStepTemplateData,
149
+ InvokeTranscriptionStepTemplateErrors,
150
+ InvokeTranscriptionStepTemplateResponses,
151
+ InvokeTryOnUStepTemplateData,
152
+ InvokeTryOnUStepTemplateErrors,
153
+ InvokeTryOnUStepTemplateResponses,
29
154
  InvokeVideoEnhancementStepTemplateData,
30
- InvokeVideoEnhancementStepTemplateResponses,
31
155
  InvokeVideoEnhancementStepTemplateErrors,
156
+ InvokeVideoEnhancementStepTemplateResponses,
157
+ InvokeVideoFrameExtractionStepTemplateData,
158
+ InvokeVideoFrameExtractionStepTemplateErrors,
159
+ InvokeVideoFrameExtractionStepTemplateResponses,
32
160
  InvokeVideoGenStepTemplateData,
33
- InvokeVideoGenStepTemplateResponses,
34
161
  InvokeVideoGenStepTemplateErrors,
35
- InvalidateResourceData,
36
- InvalidateResourceResponses,
37
- InvalidateResourceErrors,
38
- GetResourceData,
39
- GetResourceResponses,
40
- GetResourceErrors,
41
- QueryWorkflowsData,
42
- QueryWorkflowsResponses,
43
- QueryWorkflowsErrors,
44
- SubmitWorkflowData,
45
- SubmitWorkflowResponses,
46
- SubmitWorkflowErrors,
47
- DeleteWorkflowData,
48
- DeleteWorkflowResponses,
49
- DeleteWorkflowErrors,
50
- GetWorkflowData,
51
- GetWorkflowResponses,
52
- GetWorkflowErrors,
162
+ InvokeVideoGenStepTemplateResponses,
163
+ InvokeVideoInterpolationStepTemplateData,
164
+ InvokeVideoInterpolationStepTemplateErrors,
165
+ InvokeVideoInterpolationStepTemplateResponses,
166
+ InvokeVideoMetadataStepTemplateData,
167
+ InvokeVideoMetadataStepTemplateErrors,
168
+ InvokeVideoMetadataStepTemplateResponses,
169
+ InvokeVideoUpscalerStepTemplateData,
170
+ InvokeVideoUpscalerStepTemplateErrors,
171
+ InvokeVideoUpscalerStepTemplateResponses,
172
+ InvokeWdTaggingStepTemplateData,
173
+ InvokeWdTaggingStepTemplateErrors,
174
+ InvokeWdTaggingStepTemplateResponses,
175
+ InvokeXGuardModerationStepTemplateData,
176
+ InvokeXGuardModerationStepTemplateErrors,
177
+ InvokeXGuardModerationStepTemplateResponses,
178
+ ListAppsData,
179
+ ListAppsErrors,
180
+ ListAppsResponses,
53
181
  PatchWorkflowData,
54
- PatchWorkflowResponses,
55
182
  PatchWorkflowErrors,
56
- UpdateWorkflowData,
57
- UpdateWorkflowResponses,
58
- UpdateWorkflowErrors,
183
+ PatchWorkflowResponses,
184
+ PatchWorkflowStepData,
185
+ PatchWorkflowStepErrors,
186
+ PatchWorkflowStepResponses,
187
+ QueryWorkflowsData,
188
+ QueryWorkflowsErrors,
189
+ QueryWorkflowsResponses,
190
+ RefreshBlobData,
191
+ RefreshBlobErrors,
192
+ RefreshBlobResponses,
193
+ RegisterAppData,
194
+ RegisterAppErrors,
195
+ RegisterAppResponses,
59
196
  RemoveAllWorkflowTagsData,
60
- RemoveAllWorkflowTagsResponses,
61
197
  RemoveAllWorkflowTagsErrors,
62
- AddWorkflowTagData,
63
- AddWorkflowTagResponses,
64
- AddWorkflowTagErrors,
198
+ RemoveAllWorkflowTagsResponses,
65
199
  RemoveWorkflowTagData,
66
- RemoveWorkflowTagResponses,
67
200
  RemoveWorkflowTagErrors,
68
- GetWorkflowStepData,
69
- GetWorkflowStepResponses,
70
- GetWorkflowStepErrors,
71
- PatchWorkflowStepData,
72
- PatchWorkflowStepResponses,
73
- PatchWorkflowStepErrors,
201
+ RemoveWorkflowTagResponses,
202
+ SubmitWorkflowData,
203
+ SubmitWorkflowErrors,
204
+ SubmitWorkflowResponses,
205
+ UpdateWorkflowData,
206
+ UpdateWorkflowErrors,
207
+ UpdateWorkflowResponses,
74
208
  UpdateWorkflowStepData,
75
- UpdateWorkflowStepResponses,
76
209
  UpdateWorkflowStepErrors,
210
+ UpdateWorkflowStepResponses,
211
+ UploadConsumerBlobData,
212
+ UploadConsumerBlobErrors,
213
+ UploadConsumerBlobResponses,
77
214
  } from './types.gen';
78
215
  export type Options<
79
216
  TData extends TDataShape = TDataShape,
80
217
  ThrowOnError extends boolean = boolean,
81
- > = ClientOptions<TData, ThrowOnError> & {
218
+ > = Options2<TData, ThrowOnError> & {
82
219
  /**
83
220
  * You can provide a client instance returned by `createClient()` instead of
84
221
  * individual options. This might be also useful if you want to implement a
@@ -92,7 +229,42 @@ export type Options<
92
229
  meta?: Record<string, unknown>;
93
230
  };
94
231
  /**
95
- * Get blob by ID. This will return the blob as a binary stream.
232
+ * List all apps registered by the authenticated user.
233
+ */
234
+ export declare const listApps: <ThrowOnError extends boolean = false>(
235
+ options?: Options<ListAppsData, ThrowOnError>
236
+ ) => import('./client').RequestResult<ListAppsResponses, ListAppsErrors, ThrowOnError, 'fields'>;
237
+ /**
238
+ * Register a new app version. Bump `version` to publish changes; the
239
+ * same `(name, version)` cannot be registered twice (409).
240
+ */
241
+ export declare const registerApp: <ThrowOnError extends boolean = false>(
242
+ options?: Options<RegisterAppData, ThrowOnError>
243
+ ) => import('./client').RequestResult<
244
+ RegisterAppResponses,
245
+ RegisterAppErrors,
246
+ ThrowOnError,
247
+ 'fields'
248
+ >;
249
+ /**
250
+ * Resolve an app by name. Returns the most recently registered version.
251
+ */
252
+ export declare const getAppLatest: <ThrowOnError extends boolean = false>(
253
+ options: Options<GetAppLatestData, ThrowOnError>
254
+ ) => import('./client').RequestResult<
255
+ GetAppLatestResponses,
256
+ GetAppLatestErrors,
257
+ ThrowOnError,
258
+ 'fields'
259
+ >;
260
+ export declare const deleteApp: <ThrowOnError extends boolean = false>(
261
+ options: Options<DeleteAppData, ThrowOnError>
262
+ ) => import('./client').RequestResult<DeleteAppResponses, DeleteAppErrors, ThrowOnError, 'fields'>;
263
+ export declare const getApp: <ThrowOnError extends boolean = false>(
264
+ options: Options<GetAppData, ThrowOnError>
265
+ ) => import('./client').RequestResult<GetAppResponses, GetAppErrors, ThrowOnError, 'fields'>;
266
+ /**
267
+ * Get blob by ID. This will redirect to a cacheable content URL.
96
268
  */
97
269
  export declare const getBlob: <ThrowOnError extends boolean = false>(
98
270
  options: Options<GetBlobData, ThrowOnError>
@@ -103,8 +275,94 @@ export declare const getBlob: <ThrowOnError extends boolean = false>(
103
275
  export declare const headBlob: <ThrowOnError extends boolean = false>(
104
276
  options: Options<HeadBlobData, ThrowOnError>
105
277
  ) => import('./client').RequestResult<HeadBlobResponses, HeadBlobErrors, ThrowOnError, 'fields'>;
278
+ /**
279
+ * Get a presigned URL for browser uploads.
280
+ * The returned URL points to POST /v2/consumer/blobs with a signature for authentication.
281
+ */
282
+ export declare const getConsumerBlobUploadUrl: <ThrowOnError extends boolean = false>(
283
+ options?: Options<GetConsumerBlobUploadUrlData, ThrowOnError>
284
+ ) => import('./client').RequestResult<
285
+ GetConsumerBlobUploadUrlResponses,
286
+ GetConsumerBlobUploadUrlErrors,
287
+ ThrowOnError,
288
+ 'fields'
289
+ >;
290
+ /**
291
+ * Upload a blob directly with on-the-fly moderation.
292
+ * Supports both authenticated requests (Bearer token) and presigned URLs (sig query param).
293
+ */
294
+ export declare const uploadConsumerBlob: <ThrowOnError extends boolean = false>(
295
+ options?: Options<UploadConsumerBlobData, ThrowOnError>
296
+ ) => import('./client').RequestResult<
297
+ UploadConsumerBlobResponses,
298
+ UploadConsumerBlobErrors,
299
+ ThrowOnError,
300
+ 'fields'
301
+ >;
302
+ /**
303
+ * Serves cacheable blob content using a deterministic encrypted token
304
+ */
305
+ export declare const getBlobContent: <ThrowOnError extends boolean = false>(
306
+ options: Options<GetBlobContentData, ThrowOnError>
307
+ ) => import('./client').RequestResult<
308
+ GetBlobContentResponses,
309
+ GetBlobContentErrors,
310
+ ThrowOnError,
311
+ 'fields'
312
+ >;
313
+ /**
314
+ * Serves a blocked placeholder image with the specified dimensions
315
+ */
316
+ export declare const getBlockedContent: <ThrowOnError extends boolean = false>(
317
+ options: Options<GetBlockedContentData, ThrowOnError>
318
+ ) => import('./client').RequestResult<unknown, GetBlockedContentErrors, ThrowOnError, 'fields'>;
319
+ /**
320
+ * Streams an archive (zip or tar) of the blobs referenced by a signed archive token.
321
+ * Tokens are produced by the `blobArchive` workflow step.
322
+ */
323
+ export declare const getBlobArchive: <ThrowOnError extends boolean = false>(
324
+ options: Options<GetBlobArchiveData, ThrowOnError>
325
+ ) => import('./client').RequestResult<
326
+ GetBlobArchiveResponses,
327
+ GetBlobArchiveErrors,
328
+ ThrowOnError,
329
+ 'fields'
330
+ >;
331
+ /**
332
+ * Refresh a blob's URL and debounce its lifetime.
333
+ * Returns a fresh presigned URL and resets the 30-day TTL.
334
+ */
335
+ export declare const refreshBlob: <ThrowOnError extends boolean = false>(
336
+ options: Options<RefreshBlobData, ThrowOnError>
337
+ ) => import('./client').RequestResult<
338
+ RefreshBlobResponses,
339
+ RefreshBlobErrors,
340
+ ThrowOnError,
341
+ 'fields'
342
+ >;
343
+ export declare const invalidateUserCache: <ThrowOnError extends boolean = false>(
344
+ options: Options<InvalidateUserCacheData, ThrowOnError>
345
+ ) => import('./client').RequestResult<
346
+ InvalidateUserCacheResponses,
347
+ InvalidateUserCacheErrors,
348
+ ThrowOnError,
349
+ 'fields'
350
+ >;
351
+ /**
352
+ * Workflow step for generating music using ACE Step 1.5.
353
+ * /// Produces full songs from text descriptions and structured lyrics.
354
+ */
355
+ export declare const invokeAceStepAudioStepTemplate: <ThrowOnError extends boolean = false>(
356
+ options?: Options<InvokeAceStepAudioStepTemplateData, ThrowOnError>
357
+ ) => import('./client').RequestResult<
358
+ InvokeAceStepAudioStepTemplateResponses,
359
+ InvokeAceStepAudioStepTemplateErrors,
360
+ ThrowOnError,
361
+ 'fields'
362
+ >;
106
363
  /**
107
364
  * Age classification
365
+ *
108
366
  * 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
367
  */
110
368
  export declare const invokeAgeClassificationStepTemplate: <ThrowOnError extends boolean = false>(
@@ -115,8 +373,59 @@ export declare const invokeAgeClassificationStepTemplate: <ThrowOnError extends
115
373
  ThrowOnError,
116
374
  'fields'
117
375
  >;
376
+ /**
377
+ * Audio Captioning
378
+ *
379
+ * Generates music captions, lyrics, and metadata by running the ACE-Step captioner and transcriber models.
380
+ */
381
+ export declare const invokeAudioCaptioningStepTemplate: <ThrowOnError extends boolean = false>(
382
+ options?: Options<InvokeAudioCaptioningStepTemplateData, ThrowOnError>
383
+ ) => import('./client').RequestResult<
384
+ InvokeAudioCaptioningStepTemplateResponses,
385
+ InvokeAudioCaptioningStepTemplateErrors,
386
+ ThrowOnError,
387
+ 'fields'
388
+ >;
389
+ export declare const invokeBatchOcrSafetyClassificationStepTemplate: <
390
+ ThrowOnError extends boolean = false,
391
+ >(
392
+ options?: Options<InvokeBatchOcrSafetyClassificationStepTemplateData, ThrowOnError>
393
+ ) => import('./client').RequestResult<
394
+ InvokeBatchOcrSafetyClassificationStepTemplateResponses,
395
+ InvokeBatchOcrSafetyClassificationStepTemplateErrors,
396
+ ThrowOnError,
397
+ 'fields'
398
+ >;
399
+ /**
400
+ * Bundles a set of blobs into a single archive (zip or tar) that callers can
401
+ * /// download from a signed streaming URL. Runs in-process in the orchestrator;
402
+ * /// no worker job is dispatched.
403
+ */
404
+ export declare const invokeBlobArchiveStepTemplate: <ThrowOnError extends boolean = false>(
405
+ options?: Options<InvokeBlobArchiveStepTemplateData, ThrowOnError>
406
+ ) => import('./client').RequestResult<
407
+ InvokeBlobArchiveStepTemplateResponses,
408
+ InvokeBlobArchiveStepTemplateErrors,
409
+ ThrowOnError,
410
+ 'fields'
411
+ >;
412
+ /**
413
+ * ChatCompletion
414
+ *
415
+ * Generate chat completions using language models with support for text and image inputs.
416
+ * /// Compatible with OpenAI Chat Completions API format.
417
+ */
418
+ export declare const invokeChatCompletionStepTemplate: <ThrowOnError extends boolean = false>(
419
+ options?: Options<InvokeChatCompletionStepTemplateData, ThrowOnError>
420
+ ) => import('./client').RequestResult<
421
+ InvokeChatCompletionStepTemplateResponses,
422
+ InvokeChatCompletionStepTemplateErrors,
423
+ ThrowOnError,
424
+ 'fields'
425
+ >;
118
426
  /**
119
427
  * Comfy workflows
428
+ *
120
429
  * Runs a comfy workflow. Currently there are limited nodes available. Contact support for more information.
121
430
  */
122
431
  export declare const invokeComfyStepTemplate: <ThrowOnError extends boolean = false>(
@@ -127,8 +436,72 @@ export declare const invokeComfyStepTemplate: <ThrowOnError extends boolean = fa
127
436
  ThrowOnError,
128
437
  'fields'
129
438
  >;
439
+ /**
440
+ * Compose Media
441
+ *
442
+ * Composes multiple audio and/or video elements onto a single timeline and canvas: overlay and
443
+ * /// stack videos, scale and pad them to an output canvas, mix and place audio, and apply per-element
444
+ * /// transformers (fades, volume). Each element is placed at its own absolute or implicitly-sequenced
445
+ * /// start time. Produces a video blob when any element is video, otherwise an audio blob. Pair with
446
+ * /// text-to-speech, music, and video-generation steps to assemble narrated clips, multi-speaker
447
+ * /// scenes with cross-talk, or picture-in-picture compositions.
448
+ */
449
+ export declare const invokeComposeMediaStepTemplate: <ThrowOnError extends boolean = false>(
450
+ options?: Options<InvokeComposeMediaStepTemplateData, ThrowOnError>
451
+ ) => import('./client').RequestResult<
452
+ InvokeComposeMediaStepTemplateResponses,
453
+ InvokeComposeMediaStepTemplateErrors,
454
+ ThrowOnError,
455
+ 'fields'
456
+ >;
457
+ /**
458
+ * A workflow step that converts images to different formats and applies optional transforms.
459
+ */
460
+ export declare const invokeConvertImageStepTemplate: <ThrowOnError extends boolean = false>(
461
+ options?: Options<InvokeConvertImageStepTemplateData, ThrowOnError>
462
+ ) => import('./client').RequestResult<
463
+ InvokeConvertImageStepTemplateResponses,
464
+ InvokeConvertImageStepTemplateErrors,
465
+ ThrowOnError,
466
+ 'fields'
467
+ >;
468
+ /**
469
+ * Invokes a user-registered app (see <c>/v2/apps</c>) as a single workflow step.
470
+ *
471
+ * The orchestrator resolves the app by <c>owner/name@version</c>, snapshots its
472
+ * /// definition (container image AIR, invocation contract, requirements) onto the
473
+ * /// emitted <c>CustomAppJob</c>, and forwards the user's JSON input verbatim to
474
+ * /// the container's invocation endpoint. Billing happens after execution based
475
+ * /// on actual GPU-seconds the worker reports.
476
+ */
477
+ export declare const invokeCustomAppStepTemplate: <ThrowOnError extends boolean = false>(
478
+ options?: Options<InvokeCustomAppStepTemplateData, ThrowOnError>
479
+ ) => import('./client').RequestResult<
480
+ InvokeCustomAppStepTemplateResponses,
481
+ InvokeCustomAppStepTemplateErrors,
482
+ ThrowOnError,
483
+ 'fields'
484
+ >;
485
+ /**
486
+ * CustomComfy
487
+ *
488
+ * Submit a raw ComfyUI workflow graph for execution. Every resource the
489
+ * /// workflow uses (checkpoints, loras, AND <c>comfy:nodepack</c> URNs for
490
+ * /// runtime-installable custom nodes) must be declared in <c>Resources</c> —
491
+ * /// the orchestrator does not scan the workflow. Billing happens after
492
+ * /// execution based on actual ComfyUI runtime; infra failures don't charge.
493
+ */
494
+ export declare const invokeCustomComfyStepTemplate: <ThrowOnError extends boolean = false>(
495
+ options?: Options<InvokeCustomComfyStepTemplateData, ThrowOnError>
496
+ ) => import('./client').RequestResult<
497
+ InvokeCustomComfyStepTemplateResponses,
498
+ InvokeCustomComfyStepTemplateErrors,
499
+ ThrowOnError,
500
+ 'fields'
501
+ >;
130
502
  /**
131
503
  * Echo
504
+ *
132
505
  * A workflow step that takes a message string and retuns it.
133
506
  * /// This step is intended for testing purposes.
134
507
  */
@@ -140,8 +513,30 @@ export declare const invokeEchoStepTemplate: <ThrowOnError extends boolean = fal
140
513
  ThrowOnError,
141
514
  'fields'
142
515
  >;
516
+ export declare const invokeHumanoidImageMaskStepTemplate: <ThrowOnError extends boolean = false>(
517
+ options?: Options<InvokeHumanoidImageMaskStepTemplateData, ThrowOnError>
518
+ ) => import('./client').RequestResult<
519
+ InvokeHumanoidImageMaskStepTemplateResponses,
520
+ InvokeHumanoidImageMaskStepTemplateErrors,
521
+ ThrowOnError,
522
+ 'fields'
523
+ >;
524
+ /**
525
+ * A workflow step that removes the background from an image using BiRefNet (builds a ComfyUI graph under the hood and runs it as a comfy job).
526
+ */
527
+ export declare const invokeImageBackgroundRemovalStepTemplate: <
528
+ ThrowOnError extends boolean = false,
529
+ >(
530
+ options?: Options<InvokeImageBackgroundRemovalStepTemplateData, ThrowOnError>
531
+ ) => import('./client').RequestResult<
532
+ InvokeImageBackgroundRemovalStepTemplateResponses,
533
+ InvokeImageBackgroundRemovalStepTemplateErrors,
534
+ ThrowOnError,
535
+ 'fields'
536
+ >;
143
537
  /**
144
538
  * Image Generation
539
+ *
145
540
  * Generate images through text/image inputs using any of our supported engines
146
541
  */
147
542
  export declare const invokeImageGenStepTemplate: <ThrowOnError extends boolean = false>(
@@ -154,6 +549,7 @@ export declare const invokeImageGenStepTemplate: <ThrowOnError extends boolean =
154
549
  >;
155
550
  /**
156
551
  * LORA Training
552
+ *
157
553
  * Train LORA's
158
554
  */
159
555
  export declare const invokeImageResourceTrainingStepTemplate: <
@@ -168,6 +564,7 @@ export declare const invokeImageResourceTrainingStepTemplate: <
168
564
  >;
169
565
  /**
170
566
  * Image upload
567
+ *
171
568
  * Uploads an image to be used in a workflow
172
569
  */
173
570
  export declare const invokeImageUploadStepTemplate: <ThrowOnError extends boolean = false>(
@@ -178,8 +575,154 @@ export declare const invokeImageUploadStepTemplate: <ThrowOnError extends boolea
178
575
  ThrowOnError,
179
576
  'fields'
180
577
  >;
578
+ export declare const invokeImageUpscalerStepTemplate: <ThrowOnError extends boolean = false>(
579
+ options?: Options<InvokeImageUpscalerStepTemplateData, ThrowOnError>
580
+ ) => import('./client').RequestResult<
581
+ InvokeImageUpscalerStepTemplateResponses,
582
+ InvokeImageUpscalerStepTemplateErrors,
583
+ ThrowOnError,
584
+ 'fields'
585
+ >;
586
+ /**
587
+ * Media Captioning
588
+ *
589
+ * Generates a descriptive caption for a single media item using the JoyCaption model.
590
+ */
591
+ export declare const invokeMediaCaptioningStepTemplate: <ThrowOnError extends boolean = false>(
592
+ options?: Options<InvokeMediaCaptioningStepTemplateData, ThrowOnError>
593
+ ) => import('./client').RequestResult<
594
+ InvokeMediaCaptioningStepTemplateResponses,
595
+ InvokeMediaCaptioningStepTemplateErrors,
596
+ ThrowOnError,
597
+ 'fields'
598
+ >;
599
+ /**
600
+ * MediaHash
601
+ *
602
+ * Generates perceptual hashes for media content to enable similarity detection and duplicate identification.
603
+ */
604
+ export declare const invokeMediaHashStepTemplate: <ThrowOnError extends boolean = false>(
605
+ options?: Options<InvokeMediaHashStepTemplateData, ThrowOnError>
606
+ ) => import('./client').RequestResult<
607
+ InvokeMediaHashStepTemplateResponses,
608
+ InvokeMediaHashStepTemplateErrors,
609
+ ThrowOnError,
610
+ 'fields'
611
+ >;
612
+ /**
613
+ * MediaRating
614
+ *
615
+ * Performs NSFW level detection and content safety classification on media content.
616
+ */
617
+ export declare const invokeMediaRatingStepTemplate: <ThrowOnError extends boolean = false>(
618
+ options?: Options<InvokeMediaRatingStepTemplateData, ThrowOnError>
619
+ ) => import('./client').RequestResult<
620
+ InvokeMediaRatingStepTemplateResponses,
621
+ InvokeMediaRatingStepTemplateErrors,
622
+ ThrowOnError,
623
+ 'fields'
624
+ >;
625
+ /**
626
+ * ModelClamScan
627
+ *
628
+ * Runs ClamAV malware scanning against a model file.
629
+ */
630
+ export declare const invokeModelClamScanStepTemplate: <ThrowOnError extends boolean = false>(
631
+ options?: Options<InvokeModelClamScanStepTemplateData, ThrowOnError>
632
+ ) => import('./client').RequestResult<
633
+ InvokeModelClamScanStepTemplateResponses,
634
+ InvokeModelClamScanStepTemplateErrors,
635
+ ThrowOnError,
636
+ 'fields'
637
+ >;
638
+ /**
639
+ * ModelHash
640
+ *
641
+ * Computes Civitai content hashes (SHA256, AutoV1/2/3, Blake3, CRC32) of a model file.
642
+ */
643
+ export declare const invokeModelHashStepTemplate: <ThrowOnError extends boolean = false>(
644
+ options?: Options<InvokeModelHashStepTemplateData, ThrowOnError>
645
+ ) => import('./client').RequestResult<
646
+ InvokeModelHashStepTemplateResponses,
647
+ InvokeModelHashStepTemplateErrors,
648
+ ThrowOnError,
649
+ 'fields'
650
+ >;
651
+ /**
652
+ * ModelParseMetadata
653
+ *
654
+ * Extracts the embedded JSON metadata header from a safetensors model file.
655
+ */
656
+ export declare const invokeModelParseMetadataStepTemplate: <ThrowOnError extends boolean = false>(
657
+ options?: Options<InvokeModelParseMetadataStepTemplateData, ThrowOnError>
658
+ ) => import('./client').RequestResult<
659
+ InvokeModelParseMetadataStepTemplateResponses,
660
+ InvokeModelParseMetadataStepTemplateErrors,
661
+ ThrowOnError,
662
+ 'fields'
663
+ >;
664
+ /**
665
+ * ModelPickleScan
666
+ *
667
+ * Runs picklescan against a model file to detect dangerous pickle imports.
668
+ */
669
+ export declare const invokeModelPickleScanStepTemplate: <ThrowOnError extends boolean = false>(
670
+ options?: Options<InvokeModelPickleScanStepTemplateData, ThrowOnError>
671
+ ) => import('./client').RequestResult<
672
+ InvokeModelPickleScanStepTemplateResponses,
673
+ InvokeModelPickleScanStepTemplateErrors,
674
+ ThrowOnError,
675
+ 'fields'
676
+ >;
677
+ /**
678
+ * 3D model generation
679
+ *
680
+ * Generate 3D models through text or image inputs using any of our supported engines.
681
+ */
682
+ export declare const invokePolyGenStepTemplate: <ThrowOnError extends boolean = false>(
683
+ options?: Options<InvokePolyGenStepTemplateData, ThrowOnError>
684
+ ) => import('./client').RequestResult<
685
+ InvokePolyGenStepTemplateResponses,
686
+ InvokePolyGenStepTemplateErrors,
687
+ ThrowOnError,
688
+ 'fields'
689
+ >;
690
+ export declare const invokePreprocessImageStepTemplate: <ThrowOnError extends boolean = false>(
691
+ options?: Options<InvokePreprocessImageStepTemplateData, ThrowOnError>
692
+ ) => import('./client').RequestResult<
693
+ InvokePreprocessImageStepTemplateResponses,
694
+ InvokePreprocessImageStepTemplateErrors,
695
+ ThrowOnError,
696
+ 'fields'
697
+ >;
698
+ /**
699
+ * PromptEnhancement
700
+ *
701
+ * Analyzes and enhances user prompts for a specific AI ecosystem.
702
+ * /// Returns detected issues, recommendations, and improved prompt variants.
703
+ */
704
+ export declare const invokePromptEnhancementStepTemplate: <ThrowOnError extends boolean = false>(
705
+ options?: Options<InvokePromptEnhancementStepTemplateData, ThrowOnError>
706
+ ) => import('./client').RequestResult<
707
+ InvokePromptEnhancementStepTemplateResponses,
708
+ InvokePromptEnhancementStepTemplateErrors,
709
+ ThrowOnError,
710
+ 'fields'
711
+ >;
712
+ /**
713
+ * Repeat workflow step.
714
+ */
715
+ export declare const invokeRepeatStepTemplate: <ThrowOnError extends boolean = false>(
716
+ options?: Options<InvokeRepeatStepTemplateData, ThrowOnError>
717
+ ) => import('./client').RequestResult<
718
+ InvokeRepeatStepTemplateResponses,
719
+ InvokeRepeatStepTemplateErrors,
720
+ ThrowOnError,
721
+ 'fields'
722
+ >;
181
723
  /**
182
724
  * TextToImage
725
+ *
183
726
  * Generate images using text as input
184
727
  */
185
728
  export declare const invokeTextToImageStepTemplate: <ThrowOnError extends boolean = false>(
@@ -190,6 +733,66 @@ export declare const invokeTextToImageStepTemplate: <ThrowOnError extends boolea
190
733
  ThrowOnError,
191
734
  'fields'
192
735
  >;
736
+ /**
737
+ * Text-to-Speech
738
+ *
739
+ * Synthesizes speech from text, supporting both voice cloning (Base mode with reference audio) and built-in speakers (CustomVoice mode).
740
+ */
741
+ export declare const invokeTextToSpeechStepTemplate: <ThrowOnError extends boolean = false>(
742
+ options?: Options<InvokeTextToSpeechStepTemplateData, ThrowOnError>
743
+ ) => import('./client').RequestResult<
744
+ InvokeTextToSpeechStepTemplateResponses,
745
+ InvokeTextToSpeechStepTemplateErrors,
746
+ ThrowOnError,
747
+ 'fields'
748
+ >;
749
+ /**
750
+ * Training
751
+ *
752
+ * A workflow step for training machine learning models (LoRAs, checkpoints, etc.)
753
+ * /// on various types of data (images, videos, audio). This replaces ImageResourceTraining
754
+ * /// with a cleaner architecture that creates one job per epoch instead of a single monolithic job.
755
+ */
756
+ export declare const invokeTrainingStepTemplate: <ThrowOnError extends boolean = false>(
757
+ options?: Options<InvokeTrainingStepTemplateData, ThrowOnError>
758
+ ) => import('./client').RequestResult<
759
+ InvokeTrainingStepTemplateResponses,
760
+ InvokeTrainingStepTemplateErrors,
761
+ ThrowOnError,
762
+ 'fields'
763
+ >;
764
+ /**
765
+ * Transcoding
766
+ */
767
+ export declare const invokeTranscodeStepTemplate: <ThrowOnError extends boolean = false>(
768
+ options?: Options<InvokeTranscodeStepTemplateData, ThrowOnError>
769
+ ) => import('./client').RequestResult<
770
+ InvokeTranscodeStepTemplateResponses,
771
+ InvokeTranscodeStepTemplateErrors,
772
+ ThrowOnError,
773
+ 'fields'
774
+ >;
775
+ /**
776
+ * Transcription
777
+ *
778
+ * Performs automatic speech recognition (ASR) on audio media, returning transcribed text with optional timestamps.
779
+ */
780
+ export declare const invokeTranscriptionStepTemplate: <ThrowOnError extends boolean = false>(
781
+ options?: Options<InvokeTranscriptionStepTemplateData, ThrowOnError>
782
+ ) => import('./client').RequestResult<
783
+ InvokeTranscriptionStepTemplateResponses,
784
+ InvokeTranscriptionStepTemplateErrors,
785
+ ThrowOnError,
786
+ 'fields'
787
+ >;
788
+ export declare const invokeTryOnUStepTemplate: <ThrowOnError extends boolean = false>(
789
+ options?: Options<InvokeTryOnUStepTemplateData, ThrowOnError>
790
+ ) => import('./client').RequestResult<
791
+ InvokeTryOnUStepTemplateResponses,
792
+ InvokeTryOnUStepTemplateErrors,
793
+ ThrowOnError,
794
+ 'fields'
795
+ >;
193
796
  /**
194
797
  * Upscale videos and/or interpolate frames
195
798
  */
@@ -201,8 +804,23 @@ export declare const invokeVideoEnhancementStepTemplate: <ThrowOnError extends b
201
804
  ThrowOnError,
202
805
  'fields'
203
806
  >;
807
+ /**
808
+ * Video Frame Extraction
809
+ *
810
+ * Extracts unique frames from a video at a specified rate using perceptual hashing to filter out duplicate/similar frames.
811
+ * /// Useful for generating video previews, storyboards, or analyzing video content.
812
+ */
813
+ export declare const invokeVideoFrameExtractionStepTemplate: <ThrowOnError extends boolean = false>(
814
+ options?: Options<InvokeVideoFrameExtractionStepTemplateData, ThrowOnError>
815
+ ) => import('./client').RequestResult<
816
+ InvokeVideoFrameExtractionStepTemplateResponses,
817
+ InvokeVideoFrameExtractionStepTemplateErrors,
818
+ ThrowOnError,
819
+ 'fields'
820
+ >;
204
821
  /**
205
822
  * Video generation
823
+ *
206
824
  * Generate videos through text/image inputs using any of our supported engines
207
825
  */
208
826
  export declare const invokeVideoGenStepTemplate: <ThrowOnError extends boolean = false>(
@@ -214,13 +832,62 @@ export declare const invokeVideoGenStepTemplate: <ThrowOnError extends boolean =
214
832
  'fields'
215
833
  >;
216
834
  /**
217
- * Invalidates the cache of a specific resource.
835
+ * Interpolate videos using VFI Mamba
836
+ */
837
+ export declare const invokeVideoInterpolationStepTemplate: <ThrowOnError extends boolean = false>(
838
+ options?: Options<InvokeVideoInterpolationStepTemplateData, ThrowOnError>
839
+ ) => import('./client').RequestResult<
840
+ InvokeVideoInterpolationStepTemplateResponses,
841
+ InvokeVideoInterpolationStepTemplateErrors,
842
+ ThrowOnError,
843
+ 'fields'
844
+ >;
845
+ /**
846
+ * Extract metadata from videos including width, height, FPS, and duration
218
847
  */
219
- export declare const invalidateResource: <ThrowOnError extends boolean = false>(
220
- options: Options<InvalidateResourceData, ThrowOnError>
848
+ export declare const invokeVideoMetadataStepTemplate: <ThrowOnError extends boolean = false>(
849
+ options?: Options<InvokeVideoMetadataStepTemplateData, ThrowOnError>
221
850
  ) => import('./client').RequestResult<
222
- InvalidateResourceResponses,
223
- InvalidateResourceErrors,
851
+ InvokeVideoMetadataStepTemplateResponses,
852
+ InvokeVideoMetadataStepTemplateErrors,
853
+ ThrowOnError,
854
+ 'fields'
855
+ >;
856
+ /**
857
+ * Upscale videos using FlashVSR
858
+ */
859
+ export declare const invokeVideoUpscalerStepTemplate: <ThrowOnError extends boolean = false>(
860
+ options?: Options<InvokeVideoUpscalerStepTemplateData, ThrowOnError>
861
+ ) => import('./client').RequestResult<
862
+ InvokeVideoUpscalerStepTemplateResponses,
863
+ InvokeVideoUpscalerStepTemplateErrors,
864
+ ThrowOnError,
865
+ 'fields'
866
+ >;
867
+ /**
868
+ * WDTagging
869
+ *
870
+ * Performs Waifu Diffusion tagging on media content to identify characteristics, objects, and themes.
871
+ */
872
+ export declare const invokeWdTaggingStepTemplate: <ThrowOnError extends boolean = false>(
873
+ options?: Options<InvokeWdTaggingStepTemplateData, ThrowOnError>
874
+ ) => import('./client').RequestResult<
875
+ InvokeWdTaggingStepTemplateResponses,
876
+ InvokeWdTaggingStepTemplateErrors,
877
+ ThrowOnError,
878
+ 'fields'
879
+ >;
880
+ /**
881
+ * XGuardModeration
882
+ *
883
+ * Evaluate text or generation prompts against XGuard content moderation policies.
884
+ * /// Generates one ChatCompletion job per label and aggregates results with logprob-based scoring.
885
+ */
886
+ export declare const invokeXGuardModerationStepTemplate: <ThrowOnError extends boolean = false>(
887
+ options?: Options<InvokeXGuardModerationStepTemplateData, ThrowOnError>
888
+ ) => import('./client').RequestResult<
889
+ InvokeXGuardModerationStepTemplateResponses,
890
+ InvokeXGuardModerationStepTemplateErrors,
224
891
  ThrowOnError,
225
892
  'fields'
226
893
  >;
@@ -235,6 +902,14 @@ export declare const getResource: <ThrowOnError extends boolean = false>(
235
902
  ThrowOnError,
236
903
  'fields'
237
904
  >;
905
+ export declare const getStreamingBlob: <ThrowOnError extends boolean = false>(
906
+ options: Options<GetStreamingBlobData, ThrowOnError>
907
+ ) => import('./client').RequestResult<
908
+ GetStreamingBlobResponses,
909
+ GetStreamingBlobErrors,
910
+ ThrowOnError,
911
+ 'fields'
912
+ >;
238
913
  /**
239
914
  * Query workflows
240
915
  */
@@ -259,6 +934,7 @@ export declare const submitWorkflow: <ThrowOnError extends boolean = false>(
259
934
  >;
260
935
  /**
261
936
  * Delete workflow
937
+ *
262
938
  * This will delete a workflow. This may trigger a refund if the work requested with this workflow has not yet started
263
939
  */
264
940
  export declare const deleteWorkflow: <ThrowOnError extends boolean = false>(
@@ -282,6 +958,7 @@ export declare const getWorkflow: <ThrowOnError extends boolean = false>(
282
958
  >;
283
959
  /**
284
960
  * Patch workflow
961
+ *
285
962
  * Patches a worfklow using JSON Patch. This can currently be used to cancel a worfklow, update metadata and add additional tags
286
963
  */
287
964
  export declare const patchWorkflow: <ThrowOnError extends boolean = false>(
@@ -294,6 +971,7 @@ export declare const patchWorkflow: <ThrowOnError extends boolean = false>(
294
971
  >;
295
972
  /**
296
973
  * Update workflow
974
+ *
297
975
  * Updates a worfklow. This can currently be used to cancel a worfklow or override metadata and/or tags
298
976
  */
299
977
  export declare const updateWorkflow: <ThrowOnError extends boolean = false>(
@@ -317,6 +995,7 @@ export declare const removeAllWorkflowTags: <ThrowOnError extends boolean = fals
317
995
  >;
318
996
  /**
319
997
  * Add workflow tag
998
+ *
320
999
  * Adds a tag to a workflow
321
1000
  */
322
1001
  export declare const addWorkflowTag: <ThrowOnError extends boolean = false>(