@civitai/client 0.2.0-beta.53 → 0.2.0-beta.54
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.
|
@@ -2,6 +2,7 @@ export {
|
|
|
2
2
|
addWorkflowTag,
|
|
3
3
|
deleteWorkflow,
|
|
4
4
|
getBlob,
|
|
5
|
+
getBlobArchive,
|
|
5
6
|
getBlobContent,
|
|
6
7
|
getBlockedContent,
|
|
7
8
|
getConsumerBlobUploadUrl,
|
|
@@ -15,6 +16,7 @@ export {
|
|
|
15
16
|
invokeAceStepAudioStepTemplate,
|
|
16
17
|
invokeAgeClassificationStepTemplate,
|
|
17
18
|
invokeBatchOcrSafetyClassificationStepTemplate,
|
|
19
|
+
invokeBlobArchiveStepTemplate,
|
|
18
20
|
invokeChatCompletionStepTemplate,
|
|
19
21
|
invokeComfyStepTemplate,
|
|
20
22
|
invokeConvertImageStepTemplate,
|
|
@@ -86,12 +88,18 @@ export {
|
|
|
86
88
|
AnimalPoseEstimator,
|
|
87
89
|
type AnimeRecognitionResult,
|
|
88
90
|
AnylineMergeWith,
|
|
91
|
+
ArchiveFormat,
|
|
89
92
|
type AssistantMessage,
|
|
90
93
|
type AudioBlob,
|
|
91
94
|
type BatchOcrSafetyClassificationInput,
|
|
92
95
|
type BatchOcrSafetyClassificationOutput,
|
|
93
96
|
type BatchOcrSafetyClassificationResult,
|
|
94
97
|
type Blob,
|
|
98
|
+
type BlobArchiveEntry,
|
|
99
|
+
type BlobArchiveInput,
|
|
100
|
+
type BlobArchiveOutput,
|
|
101
|
+
type BlobArchiveStep,
|
|
102
|
+
type BlobArchiveStepTemplate,
|
|
95
103
|
type BlurRegion,
|
|
96
104
|
BlurRegionMode,
|
|
97
105
|
type BlurTransform,
|
|
@@ -229,6 +237,10 @@ export {
|
|
|
229
237
|
type Gemini25FlashEditImageGenInput,
|
|
230
238
|
type Gemini25FlashImageGenInput,
|
|
231
239
|
type GeminiImageGenInput,
|
|
240
|
+
type GetBlobArchiveData,
|
|
241
|
+
type GetBlobArchiveError,
|
|
242
|
+
type GetBlobArchiveErrors,
|
|
243
|
+
type GetBlobArchiveResponses,
|
|
232
244
|
type GetBlobContentData,
|
|
233
245
|
type GetBlobContentError,
|
|
234
246
|
type GetBlobContentErrors,
|
|
@@ -338,6 +350,11 @@ export {
|
|
|
338
350
|
type InvokeBatchOcrSafetyClassificationStepTemplateErrors,
|
|
339
351
|
type InvokeBatchOcrSafetyClassificationStepTemplateResponse,
|
|
340
352
|
type InvokeBatchOcrSafetyClassificationStepTemplateResponses,
|
|
353
|
+
type InvokeBlobArchiveStepTemplateData,
|
|
354
|
+
type InvokeBlobArchiveStepTemplateError,
|
|
355
|
+
type InvokeBlobArchiveStepTemplateErrors,
|
|
356
|
+
type InvokeBlobArchiveStepTemplateResponse,
|
|
357
|
+
type InvokeBlobArchiveStepTemplateResponses,
|
|
341
358
|
type InvokeChatCompletionStepTemplateData,
|
|
342
359
|
type InvokeChatCompletionStepTemplateError,
|
|
343
360
|
type InvokeChatCompletionStepTemplateErrors,
|
|
@@ -574,6 +591,9 @@ export {
|
|
|
574
591
|
type OpenAiGpt1CreateImageInput,
|
|
575
592
|
type OpenAiGpt1EditImageInput,
|
|
576
593
|
type OpenAiGpt1ImageGenInput,
|
|
594
|
+
type OpenAiGpt2CreateImageInput,
|
|
595
|
+
type OpenAiGpt2EditImageInput,
|
|
596
|
+
type OpenAiGpt2ImageGenInput,
|
|
577
597
|
type OpenApiImageGenInput,
|
|
578
598
|
OutputFormat,
|
|
579
599
|
type PatchWorkflowData,
|
package/dist/generated/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
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, invokeModelClamScanStepTemplate, invokeModelHashStepTemplate, invokeModelParseMetadataStepTemplate, invokeModelPickleScanStepTemplate, 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, SeedanceModel, SeedreamVersion, TrainingModerationStatus, TransactionType, UpdateWorkflowStatus, Veo3AspectRatio, Veo3GenerationMode, Veo3Version, ViduVideoGenModel, ViduVideoGenStyle, WorkflowStatus, WorkflowUpgradeMode, ZoeDepthEnvironment, } from './types.gen';
|
|
2
|
+
export { addWorkflowTag, deleteWorkflow, getBlob, getBlobArchive, getBlobContent, getBlockedContent, getConsumerBlobUploadUrl, getResource, getStreamingBlob, getWorkflow, getWorkflowStep, headBlob, invalidateResource, invalidateUserCache, invokeAceStepAudioStepTemplate, invokeAgeClassificationStepTemplate, invokeBatchOcrSafetyClassificationStepTemplate, invokeBlobArchiveStepTemplate, invokeChatCompletionStepTemplate, invokeComfyStepTemplate, invokeConvertImageStepTemplate, invokeEchoStepTemplate, invokeHumanoidImageMaskStepTemplate, invokeImageGenStepTemplate, invokeImageResourceTrainingStepTemplate, invokeImageUploadStepTemplate, invokeImageUpscalerStepTemplate, invokeMediaCaptioningStepTemplate, invokeMediaHashStepTemplate, invokeMediaRatingStepTemplate, invokeModelClamScanStepTemplate, invokeModelHashStepTemplate, invokeModelParseMetadataStepTemplate, invokeModelPickleScanStepTemplate, 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, ArchiveFormat, 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, SeedanceModel, SeedreamVersion, TrainingModerationStatus, TransactionType, UpdateWorkflowStatus, Veo3AspectRatio, Veo3GenerationMode, Veo3Version, ViduVideoGenModel, ViduVideoGenStyle, WorkflowStatus, WorkflowUpgradeMode, ZoeDepthEnvironment, } from './types.gen';
|
|
@@ -6,6 +6,9 @@ import type {
|
|
|
6
6
|
DeleteWorkflowData,
|
|
7
7
|
DeleteWorkflowErrors,
|
|
8
8
|
DeleteWorkflowResponses,
|
|
9
|
+
GetBlobArchiveData,
|
|
10
|
+
GetBlobArchiveErrors,
|
|
11
|
+
GetBlobArchiveResponses,
|
|
9
12
|
GetBlobContentData,
|
|
10
13
|
GetBlobContentErrors,
|
|
11
14
|
GetBlobContentResponses,
|
|
@@ -46,6 +49,9 @@ import type {
|
|
|
46
49
|
InvokeBatchOcrSafetyClassificationStepTemplateData,
|
|
47
50
|
InvokeBatchOcrSafetyClassificationStepTemplateErrors,
|
|
48
51
|
InvokeBatchOcrSafetyClassificationStepTemplateResponses,
|
|
52
|
+
InvokeBlobArchiveStepTemplateData,
|
|
53
|
+
InvokeBlobArchiveStepTemplateErrors,
|
|
54
|
+
InvokeBlobArchiveStepTemplateResponses,
|
|
49
55
|
InvokeChatCompletionStepTemplateData,
|
|
50
56
|
InvokeChatCompletionStepTemplateErrors,
|
|
51
57
|
InvokeChatCompletionStepTemplateResponses,
|
|
@@ -245,6 +251,18 @@ export declare const getBlobContent: <ThrowOnError extends boolean = false>(
|
|
|
245
251
|
export declare const getBlockedContent: <ThrowOnError extends boolean = false>(
|
|
246
252
|
options: Options<GetBlockedContentData, ThrowOnError>
|
|
247
253
|
) => import('./client').RequestResult<unknown, GetBlockedContentErrors, ThrowOnError, 'fields'>;
|
|
254
|
+
/**
|
|
255
|
+
* Streams an archive (zip or tar) of the blobs referenced by a signed archive token.
|
|
256
|
+
* Tokens are produced by the `blobArchive` workflow step.
|
|
257
|
+
*/
|
|
258
|
+
export declare const getBlobArchive: <ThrowOnError extends boolean = false>(
|
|
259
|
+
options: Options<GetBlobArchiveData, ThrowOnError>
|
|
260
|
+
) => import('./client').RequestResult<
|
|
261
|
+
GetBlobArchiveResponses,
|
|
262
|
+
GetBlobArchiveErrors,
|
|
263
|
+
ThrowOnError,
|
|
264
|
+
'fields'
|
|
265
|
+
>;
|
|
248
266
|
/**
|
|
249
267
|
* Refresh a blob's URL and debounce its lifetime.
|
|
250
268
|
* Returns a fresh presigned URL and resets the 30-day TTL.
|
|
@@ -300,6 +318,19 @@ export declare const invokeBatchOcrSafetyClassificationStepTemplate: <
|
|
|
300
318
|
ThrowOnError,
|
|
301
319
|
'fields'
|
|
302
320
|
>;
|
|
321
|
+
/**
|
|
322
|
+
* Bundles a set of blobs into a single archive (zip or tar) that callers can
|
|
323
|
+
* /// download from a signed streaming URL. Runs in-process in the orchestrator;
|
|
324
|
+
* /// no worker job is dispatched.
|
|
325
|
+
*/
|
|
326
|
+
export declare const invokeBlobArchiveStepTemplate: <ThrowOnError extends boolean = false>(
|
|
327
|
+
options?: Options<InvokeBlobArchiveStepTemplateData, ThrowOnError>
|
|
328
|
+
) => import('./client').RequestResult<
|
|
329
|
+
InvokeBlobArchiveStepTemplateResponses,
|
|
330
|
+
InvokeBlobArchiveStepTemplateErrors,
|
|
331
|
+
ThrowOnError,
|
|
332
|
+
'fields'
|
|
333
|
+
>;
|
|
303
334
|
/**
|
|
304
335
|
* ChatCompletion
|
|
305
336
|
*
|
|
@@ -56,6 +56,17 @@ export const getBlockedContent = (options) => {
|
|
|
56
56
|
...options,
|
|
57
57
|
});
|
|
58
58
|
};
|
|
59
|
+
/**
|
|
60
|
+
* Streams an archive (zip or tar) of the blobs referenced by a signed archive token.
|
|
61
|
+
* Tokens are produced by the `blobArchive` workflow step.
|
|
62
|
+
*/
|
|
63
|
+
export const getBlobArchive = (options) => {
|
|
64
|
+
var _a;
|
|
65
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client).get({
|
|
66
|
+
url: '/v2/consumer/blobs/archive/{encryptedToken}',
|
|
67
|
+
...options,
|
|
68
|
+
});
|
|
69
|
+
};
|
|
59
70
|
/**
|
|
60
71
|
* Refresh a blob's URL and debounce its lifetime.
|
|
61
72
|
* Returns a fresh presigned URL and resets the 30-day TTL.
|
|
@@ -113,6 +124,22 @@ export const invokeBatchOcrSafetyClassificationStepTemplate = (options) => {
|
|
|
113
124
|
},
|
|
114
125
|
});
|
|
115
126
|
};
|
|
127
|
+
/**
|
|
128
|
+
* Bundles a set of blobs into a single archive (zip or tar) that callers can
|
|
129
|
+
* /// download from a signed streaming URL. Runs in-process in the orchestrator;
|
|
130
|
+
* /// no worker job is dispatched.
|
|
131
|
+
*/
|
|
132
|
+
export const invokeBlobArchiveStepTemplate = (options) => {
|
|
133
|
+
var _a;
|
|
134
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
135
|
+
url: '/v2/consumer/recipes/blobArchive',
|
|
136
|
+
...options,
|
|
137
|
+
headers: {
|
|
138
|
+
'Content-Type': 'application/json',
|
|
139
|
+
...options === null || options === void 0 ? void 0 : options.headers,
|
|
140
|
+
},
|
|
141
|
+
});
|
|
142
|
+
};
|
|
116
143
|
/**
|
|
117
144
|
* ChatCompletion
|
|
118
145
|
*
|
|
@@ -382,6 +382,17 @@ export declare const AnylineMergeWith: {
|
|
|
382
382
|
readonly MANGA_LINE: 'manga_line';
|
|
383
383
|
};
|
|
384
384
|
export type AnylineMergeWith = (typeof AnylineMergeWith)[keyof typeof AnylineMergeWith];
|
|
385
|
+
/**
|
|
386
|
+
* Container format for a Civitai.Orchestration.Grains.Workflows.Steps.BlobArchive.BlobArchiveStep output.
|
|
387
|
+
*/
|
|
388
|
+
export declare const ArchiveFormat: {
|
|
389
|
+
readonly ZIP: 'zip';
|
|
390
|
+
readonly TAR: 'tar';
|
|
391
|
+
};
|
|
392
|
+
/**
|
|
393
|
+
* Container format for a Civitai.Orchestration.Grains.Workflows.Steps.BlobArchive.BlobArchiveStep output.
|
|
394
|
+
*/
|
|
395
|
+
export type ArchiveFormat = (typeof ArchiveFormat)[keyof typeof ArchiveFormat];
|
|
385
396
|
/**
|
|
386
397
|
* An assistant message representing a prior response.
|
|
387
398
|
*/
|
|
@@ -453,6 +464,72 @@ export type Blob = {
|
|
|
453
464
|
*/
|
|
454
465
|
blockedReason?: null | string;
|
|
455
466
|
};
|
|
467
|
+
/**
|
|
468
|
+
* A single entry within a Civitai.Orchestration.Grains.Workflows.Steps.BlobArchive.BlobArchiveStep.
|
|
469
|
+
*/
|
|
470
|
+
export type BlobArchiveEntry = {
|
|
471
|
+
/**
|
|
472
|
+
* The blob ID to include in the archive.
|
|
473
|
+
*/
|
|
474
|
+
blobId: string;
|
|
475
|
+
/**
|
|
476
|
+
* Optional filename to use inside the archive. When omitted, the blob ID is used.
|
|
477
|
+
* Path components and control characters are stripped.
|
|
478
|
+
*/
|
|
479
|
+
fileName?: null | string;
|
|
480
|
+
};
|
|
481
|
+
/**
|
|
482
|
+
* Input configuration for the BlobArchive workflow step.
|
|
483
|
+
*/
|
|
484
|
+
export type BlobArchiveInput = {
|
|
485
|
+
/**
|
|
486
|
+
* The blobs to include in the archive. Must contain at least 1 and at most 1000 entries.
|
|
487
|
+
*/
|
|
488
|
+
entries: Array<BlobArchiveEntry>;
|
|
489
|
+
/**
|
|
490
|
+
* Optional filename for the archive itself (used in the Content-Disposition header).
|
|
491
|
+
* Defaults to "archive.zip" or "archive.tar" based on Civitai.Orchestration.Grains.Workflows.Steps.BlobArchive.BlobArchiveInput.Format.
|
|
492
|
+
*/
|
|
493
|
+
archiveName?: null | string;
|
|
494
|
+
format?: ArchiveFormat;
|
|
495
|
+
};
|
|
496
|
+
/**
|
|
497
|
+
* Output produced by the BlobArchive workflow step.
|
|
498
|
+
*/
|
|
499
|
+
export type BlobArchiveOutput = {
|
|
500
|
+
/**
|
|
501
|
+
* The signed URL that streams the archive when requested.
|
|
502
|
+
*/
|
|
503
|
+
url: string;
|
|
504
|
+
/**
|
|
505
|
+
* The number of entries included in the archive.
|
|
506
|
+
*/
|
|
507
|
+
entryCount: number;
|
|
508
|
+
format: ArchiveFormat;
|
|
509
|
+
/**
|
|
510
|
+
* The UTC time at which this URL expires.
|
|
511
|
+
*/
|
|
512
|
+
expiresAt: string;
|
|
513
|
+
};
|
|
514
|
+
/**
|
|
515
|
+
* Bundles a set of blobs into a single archive (zip or tar) that callers can
|
|
516
|
+
* download from a signed streaming URL. Runs in-process in the orchestrator;
|
|
517
|
+
* no worker job is dispatched.
|
|
518
|
+
*/
|
|
519
|
+
export type BlobArchiveStep = Omit<WorkflowStep, '$type'> & {
|
|
520
|
+
input: BlobArchiveInput;
|
|
521
|
+
output?: BlobArchiveOutput;
|
|
522
|
+
$type: 'blobArchive';
|
|
523
|
+
};
|
|
524
|
+
/**
|
|
525
|
+
* Bundles a set of blobs into a single archive (zip or tar) that callers can
|
|
526
|
+
* download from a signed streaming URL. Runs in-process in the orchestrator;
|
|
527
|
+
* no worker job is dispatched.
|
|
528
|
+
*/
|
|
529
|
+
export type BlobArchiveStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
|
|
530
|
+
input: BlobArchiveInput;
|
|
531
|
+
$type: 'blobArchive';
|
|
532
|
+
};
|
|
456
533
|
/**
|
|
457
534
|
* A rectangular region defined by pixel coordinates.
|
|
458
535
|
*/
|
|
@@ -2907,7 +2984,7 @@ export type ModelHashOutput = {
|
|
|
2907
2984
|
/**
|
|
2908
2985
|
* SHA256 hash of the full file.
|
|
2909
2986
|
*/
|
|
2910
|
-
|
|
2987
|
+
sha256?: null | string;
|
|
2911
2988
|
/**
|
|
2912
2989
|
* AutoV1 short hash (8 chars of SHA256 over a 64 KB block starting at 1 MB).
|
|
2913
2990
|
*/
|
|
@@ -2927,7 +3004,7 @@ export type ModelHashOutput = {
|
|
|
2927
3004
|
/**
|
|
2928
3005
|
* CRC32 of the full file.
|
|
2929
3006
|
*/
|
|
2930
|
-
|
|
3007
|
+
crc32?: null | string;
|
|
2931
3008
|
};
|
|
2932
3009
|
/**
|
|
2933
3010
|
* ModelHash
|
|
@@ -3217,6 +3294,49 @@ export type OpenAiGpt1ImageGenInput = Omit<OpenApiImageGenInput, 'engine' | 'mod
|
|
|
3217
3294
|
model: 'gpt-image-1';
|
|
3218
3295
|
engine: 'openai';
|
|
3219
3296
|
};
|
|
3297
|
+
export type OpenAiGpt2CreateImageInput = Omit<
|
|
3298
|
+
OpenAiGpt2ImageGenInput,
|
|
3299
|
+
'engine' | 'model' | 'operation'
|
|
3300
|
+
> & {
|
|
3301
|
+
operation: 'createImage';
|
|
3302
|
+
model: 'gpt-image-2';
|
|
3303
|
+
engine: 'openai';
|
|
3304
|
+
};
|
|
3305
|
+
export type OpenAiGpt2EditImageInput = Omit<
|
|
3306
|
+
OpenAiGpt2ImageGenInput,
|
|
3307
|
+
'engine' | 'model' | 'operation'
|
|
3308
|
+
> & {
|
|
3309
|
+
images: Array<string>;
|
|
3310
|
+
/**
|
|
3311
|
+
* Either A URL, A DataURL or a Base64 string
|
|
3312
|
+
*/
|
|
3313
|
+
maskImage?: null | string;
|
|
3314
|
+
/**
|
|
3315
|
+
* When null, fal infers output size from the input images (image_size: "auto").
|
|
3316
|
+
* When set, the requested width is sent to fal as image_size.width.
|
|
3317
|
+
* Both Width and Height must be set together, or both null.
|
|
3318
|
+
*/
|
|
3319
|
+
width?: null | number;
|
|
3320
|
+
/**
|
|
3321
|
+
* When null, fal infers output size from the input images (image_size: "auto").
|
|
3322
|
+
* When set, the requested height is sent to fal as image_size.height.
|
|
3323
|
+
* Both Width and Height must be set together, or both null.
|
|
3324
|
+
*/
|
|
3325
|
+
height?: null | number;
|
|
3326
|
+
operation: 'editImage';
|
|
3327
|
+
model: 'gpt-image-2';
|
|
3328
|
+
engine: 'openai';
|
|
3329
|
+
};
|
|
3330
|
+
export type OpenAiGpt2ImageGenInput = Omit<OpenApiImageGenInput, 'engine' | 'model'> & {
|
|
3331
|
+
operation: string;
|
|
3332
|
+
prompt: string;
|
|
3333
|
+
width?: null | number;
|
|
3334
|
+
height?: null | number;
|
|
3335
|
+
quantity?: number;
|
|
3336
|
+
quality?: 'low' | 'medium' | 'high';
|
|
3337
|
+
model: 'gpt-image-2';
|
|
3338
|
+
engine: 'openai';
|
|
3339
|
+
};
|
|
3220
3340
|
export type OpenApiImageGenInput = Omit<ImageGenInput, 'engine'> & {
|
|
3221
3341
|
model: string;
|
|
3222
3342
|
prompt: string;
|
|
@@ -6909,6 +7029,14 @@ export type GetBlobData = {
|
|
|
6909
7029
|
* A maximum nsfw level. If this is specified and the blob does not have a NSFW level specified or the NSFW level exceeds our max then we'll return an error
|
|
6910
7030
|
*/
|
|
6911
7031
|
nsfwLevel?: NsfwLevel;
|
|
7032
|
+
/**
|
|
7033
|
+
* Optional filename to use in the Content-Disposition header when the blob is served. Path components and control characters are stripped.
|
|
7034
|
+
*/
|
|
7035
|
+
filename?: string;
|
|
7036
|
+
/**
|
|
7037
|
+
* When true, the blob is served with Content-Disposition: attachment to prompt a download. Defaults to inline.
|
|
7038
|
+
*/
|
|
7039
|
+
download?: boolean;
|
|
6912
7040
|
};
|
|
6913
7041
|
url: '/v2/consumer/blobs/{blobId}';
|
|
6914
7042
|
};
|
|
@@ -7073,6 +7201,34 @@ export type GetBlockedContentErrors = {
|
|
|
7073
7201
|
403: ProblemDetails;
|
|
7074
7202
|
};
|
|
7075
7203
|
export type GetBlockedContentError = GetBlockedContentErrors[keyof GetBlockedContentErrors];
|
|
7204
|
+
export type GetBlobArchiveData = {
|
|
7205
|
+
body?: never;
|
|
7206
|
+
path: {
|
|
7207
|
+
/**
|
|
7208
|
+
* The signed token containing the archive manifest.
|
|
7209
|
+
*/
|
|
7210
|
+
encryptedToken: string;
|
|
7211
|
+
};
|
|
7212
|
+
query?: never;
|
|
7213
|
+
url: '/v2/consumer/blobs/archive/{encryptedToken}';
|
|
7214
|
+
};
|
|
7215
|
+
export type GetBlobArchiveErrors = {
|
|
7216
|
+
/**
|
|
7217
|
+
* Unauthorized
|
|
7218
|
+
*/
|
|
7219
|
+
401: ProblemDetails;
|
|
7220
|
+
/**
|
|
7221
|
+
* Gone
|
|
7222
|
+
*/
|
|
7223
|
+
410: ProblemDetails;
|
|
7224
|
+
};
|
|
7225
|
+
export type GetBlobArchiveError = GetBlobArchiveErrors[keyof GetBlobArchiveErrors];
|
|
7226
|
+
export type GetBlobArchiveResponses = {
|
|
7227
|
+
/**
|
|
7228
|
+
* OK
|
|
7229
|
+
*/
|
|
7230
|
+
200: unknown;
|
|
7231
|
+
};
|
|
7076
7232
|
export type RefreshBlobData = {
|
|
7077
7233
|
body?: never;
|
|
7078
7234
|
path: {
|
|
@@ -7219,6 +7375,36 @@ export type InvokeBatchOcrSafetyClassificationStepTemplateResponses = {
|
|
|
7219
7375
|
};
|
|
7220
7376
|
export type InvokeBatchOcrSafetyClassificationStepTemplateResponse =
|
|
7221
7377
|
InvokeBatchOcrSafetyClassificationStepTemplateResponses[keyof InvokeBatchOcrSafetyClassificationStepTemplateResponses];
|
|
7378
|
+
export type InvokeBlobArchiveStepTemplateData = {
|
|
7379
|
+
body?: BlobArchiveInput;
|
|
7380
|
+
path?: never;
|
|
7381
|
+
query?: {
|
|
7382
|
+
experimental?: boolean;
|
|
7383
|
+
allowMatureContent?: boolean;
|
|
7384
|
+
whatif?: boolean;
|
|
7385
|
+
};
|
|
7386
|
+
url: '/v2/consumer/recipes/blobArchive';
|
|
7387
|
+
};
|
|
7388
|
+
export type InvokeBlobArchiveStepTemplateErrors = {
|
|
7389
|
+
/**
|
|
7390
|
+
* Bad Request
|
|
7391
|
+
*/
|
|
7392
|
+
400: ProblemDetails;
|
|
7393
|
+
/**
|
|
7394
|
+
* Unauthorized
|
|
7395
|
+
*/
|
|
7396
|
+
401: ProblemDetails;
|
|
7397
|
+
};
|
|
7398
|
+
export type InvokeBlobArchiveStepTemplateError =
|
|
7399
|
+
InvokeBlobArchiveStepTemplateErrors[keyof InvokeBlobArchiveStepTemplateErrors];
|
|
7400
|
+
export type InvokeBlobArchiveStepTemplateResponses = {
|
|
7401
|
+
/**
|
|
7402
|
+
* OK
|
|
7403
|
+
*/
|
|
7404
|
+
200: BlobArchiveOutput;
|
|
7405
|
+
};
|
|
7406
|
+
export type InvokeBlobArchiveStepTemplateResponse =
|
|
7407
|
+
InvokeBlobArchiveStepTemplateResponses[keyof InvokeBlobArchiveStepTemplateResponses];
|
|
7222
7408
|
export type InvokeChatCompletionStepTemplateData = {
|
|
7223
7409
|
body?: ChatCompletionInput;
|
|
7224
7410
|
path?: never;
|
|
@@ -16,6 +16,10 @@ export const AnylineMergeWith = {
|
|
|
16
16
|
LINEART_ANIME: 'lineart_anime',
|
|
17
17
|
MANGA_LINE: 'manga_line',
|
|
18
18
|
};
|
|
19
|
+
/**
|
|
20
|
+
* Container format for a Civitai.Orchestration.Grains.Workflows.Steps.BlobArchive.BlobArchiveStep output.
|
|
21
|
+
*/
|
|
22
|
+
export const ArchiveFormat = { ZIP: 'zip', TAR: 'tar' };
|
|
19
23
|
/**
|
|
20
24
|
* Determines how regions are applied to the blur operation.
|
|
21
25
|
*/
|