@civitai/orchestration-client 0.2.7 → 0.2.9
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 +70 -14
- package/dist/generated/index.d.ts +50 -0
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +58 -0
- package/dist/generated/sdk.gen.js +58 -0
- package/dist/generated/services.gen.d.ts +31 -0
- package/dist/generated/services.gen.js +6 -0
- package/dist/generated/types.gen.d.ts +475 -13
- package/dist/generated/types.gen.js +4 -1
- package/package.json +2 -2
|
@@ -10,20 +10,76 @@ export function createCivitaiClient(config) {
|
|
|
10
10
|
Authorization: `Bearer ${config.auth}`,
|
|
11
11
|
},
|
|
12
12
|
}));
|
|
13
|
-
client.interceptors.response.use(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
13
|
+
client.interceptors.response.use(normalizeErrorResponse);
|
|
14
|
+
return client;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Guarantees that an error response's body is a JSON object with a numeric `status`, so the
|
|
18
|
+
* generated client's `error` is always `ProblemDetails`-shaped.
|
|
19
|
+
*
|
|
20
|
+
* A body that already satisfies this is left untouched: the original response (headers, url and
|
|
21
|
+
* body) is returned as-is. Otherwise a replacement response is built that keeps the original
|
|
22
|
+
* headers, with `Content-Type`/`Content-Length` corrected when the body is replaced.
|
|
23
|
+
*
|
|
24
|
+
* This runs as a response interceptor rather than an error interceptor because the generated
|
|
25
|
+
* fetch client passes the original error to every error interceptor instead of chaining them, so
|
|
26
|
+
* normalization there would not reach interceptors registered by consumers.
|
|
27
|
+
*/
|
|
28
|
+
async function normalizeErrorResponse(response) {
|
|
29
|
+
// `new Response` only accepts 200-599, and only error statuses carry a problem body.
|
|
30
|
+
if (response.status < 400 || response.status > 599)
|
|
26
31
|
return response;
|
|
32
|
+
let text = '';
|
|
33
|
+
try {
|
|
34
|
+
text = await response.clone().text();
|
|
35
|
+
}
|
|
36
|
+
catch (_a) {
|
|
37
|
+
// An unreadable body is treated as empty.
|
|
38
|
+
}
|
|
39
|
+
const parsed = parseJson(text);
|
|
40
|
+
const headers = new Headers(response.headers);
|
|
41
|
+
let problem;
|
|
42
|
+
if (isObject(parsed)) {
|
|
43
|
+
if (typeof parsed.status === 'number')
|
|
44
|
+
return response;
|
|
45
|
+
// A JSON error body that isn't problem details (e.g. an OpenAI-style `{ error: {...} }`).
|
|
46
|
+
problem = { ...parsed, status: response.status };
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
problem = { status: response.status, detail: describeNonJsonBody(response, text, parsed) };
|
|
50
|
+
headers.set('Content-Type', 'application/json');
|
|
51
|
+
}
|
|
52
|
+
headers.delete('Content-Length');
|
|
53
|
+
return new Response(JSON.stringify(problem), {
|
|
54
|
+
status: response.status,
|
|
55
|
+
statusText: response.statusText,
|
|
56
|
+
headers,
|
|
27
57
|
});
|
|
28
|
-
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* A plain-text body is a human-readable explanation, so it becomes `detail`. Markup (e.g. a
|
|
61
|
+
* gateway's HTML error page) and empty bodies are not, so they fall back to the reason phrase.
|
|
62
|
+
*/
|
|
63
|
+
function describeNonJsonBody(response, text, parsed) {
|
|
64
|
+
var _a;
|
|
65
|
+
const mediaType = (_a = response.headers.get('Content-Type')) === null || _a === void 0 ? void 0 : _a.split(';')[0].trim().toLowerCase();
|
|
66
|
+
const trimmed = text.trim();
|
|
67
|
+
if (mediaType === 'text/plain' && trimmed)
|
|
68
|
+
return trimmed;
|
|
69
|
+
if (typeof parsed === 'string' && parsed.trim())
|
|
70
|
+
return parsed.trim();
|
|
71
|
+
return response.statusText;
|
|
72
|
+
}
|
|
73
|
+
function parseJson(text) {
|
|
74
|
+
if (!text)
|
|
75
|
+
return undefined;
|
|
76
|
+
try {
|
|
77
|
+
return JSON.parse(text);
|
|
78
|
+
}
|
|
79
|
+
catch (_a) {
|
|
80
|
+
return undefined;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
function isObject(value) {
|
|
84
|
+
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
29
85
|
}
|
|
@@ -36,8 +36,10 @@ export {
|
|
|
36
36
|
invokeConvertImageStepTemplate,
|
|
37
37
|
invokeCustomComfyStepTemplate,
|
|
38
38
|
invokeEchoStepTemplate,
|
|
39
|
+
invokeGitHubRunnerStepTemplate,
|
|
39
40
|
invokeHumanoidImageMaskStepTemplate,
|
|
40
41
|
invokeImageBackgroundRemovalStepTemplate,
|
|
42
|
+
invokeImageFaceFixStepTemplate,
|
|
41
43
|
invokeImageGenStepTemplate,
|
|
42
44
|
invokeImageResourceTrainingStepTemplate,
|
|
43
45
|
invokeImageScanningStepTemplate,
|
|
@@ -59,6 +61,7 @@ export {
|
|
|
59
61
|
invokeModelParseMetadataStepTemplate,
|
|
60
62
|
invokeModelPickleScanStepTemplate,
|
|
61
63
|
invokeMultimodalEmbeddingStepTemplate,
|
|
64
|
+
invokeOcrStepTemplate,
|
|
62
65
|
invokePolyGenStepTemplate,
|
|
63
66
|
invokePrepareResourceStepTemplate,
|
|
64
67
|
invokePreprocessImageStepTemplate,
|
|
@@ -82,6 +85,7 @@ export {
|
|
|
82
85
|
invokeVideoInterpolationStepTemplate,
|
|
83
86
|
invokeVideoMetadataStepTemplate,
|
|
84
87
|
invokeVideoUpscalerStepTemplate,
|
|
88
|
+
invokeWasmStepTemplate,
|
|
85
89
|
invokeWdTaggingStepTemplate,
|
|
86
90
|
invokeWebScrapeStepTemplate,
|
|
87
91
|
invokeWebSearchStepTemplate,
|
|
@@ -593,6 +597,10 @@ export {
|
|
|
593
597
|
type GetWorkflowStepResponse,
|
|
594
598
|
type GetWorkflowStepResponses,
|
|
595
599
|
type GifOutputFormat,
|
|
600
|
+
type GitHubRunnerInput,
|
|
601
|
+
type GitHubRunnerOutput,
|
|
602
|
+
type GitHubRunnerStep,
|
|
603
|
+
type GitHubRunnerStepTemplate,
|
|
596
604
|
type GoogleImageGenInput,
|
|
597
605
|
type GrokCreateImageGenInput,
|
|
598
606
|
type GrokEditImageGenInput,
|
|
@@ -647,6 +655,10 @@ export {
|
|
|
647
655
|
type Ideogram45CreateFalImageGenInput,
|
|
648
656
|
type Ideogram45EditFalImageGenInput,
|
|
649
657
|
type Ideogram45FalImageGenInput,
|
|
658
|
+
type Ideogram46ContextWindowBox,
|
|
659
|
+
type Ideogram46CreateFalImageGenInput,
|
|
660
|
+
type Ideogram46EditFalImageGenInput,
|
|
661
|
+
type Ideogram46FalImageGenInput,
|
|
650
662
|
type Ideogram4AiToolkitTrainingInput,
|
|
651
663
|
type Ideogram4AiToolkitTrainingInputWritable,
|
|
652
664
|
type IdolComfyPolyGenInput,
|
|
@@ -657,6 +669,10 @@ export {
|
|
|
657
669
|
type ImageBackgroundRemovalStep,
|
|
658
670
|
type ImageBackgroundRemovalStepTemplate,
|
|
659
671
|
type ImageBlob,
|
|
672
|
+
type ImageFaceFixInput,
|
|
673
|
+
type ImageFaceFixOutput,
|
|
674
|
+
type ImageFaceFixStep,
|
|
675
|
+
type ImageFaceFixStepTemplate,
|
|
660
676
|
type ImageGenInput,
|
|
661
677
|
type ImageGenInputLora,
|
|
662
678
|
type ImageGenInputWritable,
|
|
@@ -792,6 +808,11 @@ export {
|
|
|
792
808
|
type InvokeEchoStepTemplateErrors,
|
|
793
809
|
type InvokeEchoStepTemplateResponse,
|
|
794
810
|
type InvokeEchoStepTemplateResponses,
|
|
811
|
+
type InvokeGitHubRunnerStepTemplateData,
|
|
812
|
+
type InvokeGitHubRunnerStepTemplateError,
|
|
813
|
+
type InvokeGitHubRunnerStepTemplateErrors,
|
|
814
|
+
type InvokeGitHubRunnerStepTemplateResponse,
|
|
815
|
+
type InvokeGitHubRunnerStepTemplateResponses,
|
|
795
816
|
type InvokeHumanoidImageMaskStepTemplateData,
|
|
796
817
|
type InvokeHumanoidImageMaskStepTemplateError,
|
|
797
818
|
type InvokeHumanoidImageMaskStepTemplateErrors,
|
|
@@ -802,6 +823,11 @@ export {
|
|
|
802
823
|
type InvokeImageBackgroundRemovalStepTemplateErrors,
|
|
803
824
|
type InvokeImageBackgroundRemovalStepTemplateResponse,
|
|
804
825
|
type InvokeImageBackgroundRemovalStepTemplateResponses,
|
|
826
|
+
type InvokeImageFaceFixStepTemplateData,
|
|
827
|
+
type InvokeImageFaceFixStepTemplateError,
|
|
828
|
+
type InvokeImageFaceFixStepTemplateErrors,
|
|
829
|
+
type InvokeImageFaceFixStepTemplateResponse,
|
|
830
|
+
type InvokeImageFaceFixStepTemplateResponses,
|
|
805
831
|
type InvokeImageGenStepTemplateData,
|
|
806
832
|
type InvokeImageGenStepTemplateError,
|
|
807
833
|
type InvokeImageGenStepTemplateErrors,
|
|
@@ -907,6 +933,11 @@ export {
|
|
|
907
933
|
type InvokeMultimodalEmbeddingStepTemplateErrors,
|
|
908
934
|
type InvokeMultimodalEmbeddingStepTemplateResponse,
|
|
909
935
|
type InvokeMultimodalEmbeddingStepTemplateResponses,
|
|
936
|
+
type InvokeOcrStepTemplateData,
|
|
937
|
+
type InvokeOcrStepTemplateError,
|
|
938
|
+
type InvokeOcrStepTemplateErrors,
|
|
939
|
+
type InvokeOcrStepTemplateResponse,
|
|
940
|
+
type InvokeOcrStepTemplateResponses,
|
|
910
941
|
type InvokePolyGenStepTemplateData,
|
|
911
942
|
type InvokePolyGenStepTemplateError,
|
|
912
943
|
type InvokePolyGenStepTemplateErrors,
|
|
@@ -1022,6 +1053,11 @@ export {
|
|
|
1022
1053
|
type InvokeVideoUpscalerStepTemplateErrors,
|
|
1023
1054
|
type InvokeVideoUpscalerStepTemplateResponse,
|
|
1024
1055
|
type InvokeVideoUpscalerStepTemplateResponses,
|
|
1056
|
+
type InvokeWasmStepTemplateData,
|
|
1057
|
+
type InvokeWasmStepTemplateError,
|
|
1058
|
+
type InvokeWasmStepTemplateErrors,
|
|
1059
|
+
type InvokeWasmStepTemplateResponse,
|
|
1060
|
+
type InvokeWasmStepTemplateResponses,
|
|
1025
1061
|
type InvokeWdTaggingStepTemplateData,
|
|
1026
1062
|
type InvokeWdTaggingStepTemplateError,
|
|
1027
1063
|
type InvokeWdTaggingStepTemplateErrors,
|
|
@@ -1229,6 +1265,10 @@ export {
|
|
|
1229
1265
|
type NanoBanana2LiteImageGenInput,
|
|
1230
1266
|
type NanoBananaProImageGenInput,
|
|
1231
1267
|
NsfwLevel,
|
|
1268
|
+
type OcrInput,
|
|
1269
|
+
type OcrOutput,
|
|
1270
|
+
type OcrStep,
|
|
1271
|
+
type OcrStepTemplate,
|
|
1232
1272
|
type OmniSvgImageToSvgInput,
|
|
1233
1273
|
type OmniVoiceTextToSpeechInput,
|
|
1234
1274
|
type OpenAiDallE2CreateImageGenInput,
|
|
@@ -1697,6 +1737,16 @@ export {
|
|
|
1697
1737
|
type Wan30VideoGenInput,
|
|
1698
1738
|
type WanImageGenInput,
|
|
1699
1739
|
type WanVideoGenInput,
|
|
1740
|
+
type WasmInput,
|
|
1741
|
+
type WasmOutput,
|
|
1742
|
+
type WasmStep,
|
|
1743
|
+
type WasmStepTemplate,
|
|
1744
|
+
type WasmtimeAudioFile,
|
|
1745
|
+
type WasmtimeFile,
|
|
1746
|
+
type WasmtimeImageFile,
|
|
1747
|
+
type WasmtimeLimits,
|
|
1748
|
+
type WasmtimeVideoFile,
|
|
1749
|
+
type WasmtimeWasmInput,
|
|
1700
1750
|
type Watermark,
|
|
1701
1751
|
type WatermarkTransform,
|
|
1702
1752
|
type WdTaggingInput,
|
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, appendStreamingBlob, createFund, deleteFund, deleteWorkflow, depositIntoFund, getBlob, getBlobArchive, getBlobContent, getBlockedContent, getConsumerBlobUploadUrl, getFreeTier, getFund, getResource, getService, getStreamingBlob, getWorkflow, getWorkflowStep, headBlob, invalidateUserCache, invalidateUserTokens, invokeAceStepAudioStepTemplate, invokeAgeClassificationStepTemplate, invokeArchiveExtractionStepTemplate, invokeAudioCaptioningStepTemplate, invokeAudioClassificationStepTemplate, invokeAudioModerationStepTemplate, invokeAudioTextModerationStepTemplate, invokeBatchOcrSafetyClassificationStepTemplate, invokeBlobArchiveStepTemplate, invokeChatCompletionStepTemplate, invokeComfyNodepackSnapshotStepTemplate, invokeComfyStepTemplate, invokeComposeMediaStepTemplate, invokeConvertImageStepTemplate, invokeCustomComfyStepTemplate, invokeEchoStepTemplate, invokeHumanoidImageMaskStepTemplate, invokeImageBackgroundRemovalStepTemplate, invokeImageGenStepTemplate, invokeImageResourceTrainingStepTemplate, invokeImageScanningStepTemplate, invokeImageToSvgStepTemplate, invokeImageUploadStepTemplate, invokeImageUpscalerStepTemplate, invokeLiveTextToSpeechStepTemplate, invokeLiveTranscriptionStepTemplate, invokeLyricsAlignmentStepTemplate, invokeMediaCaptioningStepTemplate, invokeMediaHashStepTemplate, invokeMediaRatingStepTemplate, invokeMergeStepTemplate, invokeMiniMaxMusic3StepTemplate, invokeModel3dPreviewStepTemplate, invokeModelAnalysisStepTemplate, invokeModelClamScanStepTemplate, invokeModelHashStepTemplate, invokeModelParseMetadataStepTemplate, invokeModelPickleScanStepTemplate, invokeMultimodalEmbeddingStepTemplate, invokePolyGenStepTemplate, invokePrepareResourceStepTemplate, invokePreprocessImageStepTemplate, invokePreprocessVideoStepTemplate, invokePromptEnhancementStepTemplate, invokePromptModerationStepTemplate, invokeQwenImageBenchStepTemplate, invokeRepeatStepTemplate, invokeShieldstralModerationStepTemplate, invokeSoniloAudioGenStepTemplate, invokeTextToImageStepTemplate, invokeTextToSpeechStepTemplate, invokeTrainingStepTemplate, invokeTranscodeStepTemplate, invokeTranscriptionStepTemplate, invokeTryOnUStepTemplate, invokeVideoBackgroundRemovalStepTemplate, invokeVideoEnhancementStepTemplate, invokeVideoFrameExtractionStepTemplate, invokeVideoGenStepTemplate, invokeVideoInterpolationStepTemplate, invokeVideoMetadataStepTemplate, invokeVideoUpscalerStepTemplate, invokeWdTaggingStepTemplate, invokeWebScrapeStepTemplate, invokeWebSearchStepTemplate, invokeXGuardModerationStepTemplate, invokeYuE2StepTemplate, listServices, patchWorkflow, patchWorkflowStep, queryResources, queryWorkflows, refreshBlob, refundFund, removeAllWorkflowTags, removeWorkflowTag, submitWorkflow, updateFund, updateWorkflow, updateWorkflowStep, uploadConsumerBlob, } from './sdk.gen.js';
|
|
2
|
+
export { addWorkflowTag, appendStreamingBlob, createFund, deleteFund, deleteWorkflow, depositIntoFund, getBlob, getBlobArchive, getBlobContent, getBlockedContent, getConsumerBlobUploadUrl, getFreeTier, getFund, getResource, getService, getStreamingBlob, getWorkflow, getWorkflowStep, headBlob, invalidateUserCache, invalidateUserTokens, invokeAceStepAudioStepTemplate, invokeAgeClassificationStepTemplate, invokeArchiveExtractionStepTemplate, invokeAudioCaptioningStepTemplate, invokeAudioClassificationStepTemplate, invokeAudioModerationStepTemplate, invokeAudioTextModerationStepTemplate, invokeBatchOcrSafetyClassificationStepTemplate, invokeBlobArchiveStepTemplate, invokeChatCompletionStepTemplate, invokeComfyNodepackSnapshotStepTemplate, invokeComfyStepTemplate, invokeComposeMediaStepTemplate, invokeConvertImageStepTemplate, invokeCustomComfyStepTemplate, invokeEchoStepTemplate, invokeGitHubRunnerStepTemplate, invokeHumanoidImageMaskStepTemplate, invokeImageBackgroundRemovalStepTemplate, invokeImageFaceFixStepTemplate, invokeImageGenStepTemplate, invokeImageResourceTrainingStepTemplate, invokeImageScanningStepTemplate, invokeImageToSvgStepTemplate, invokeImageUploadStepTemplate, invokeImageUpscalerStepTemplate, invokeLiveTextToSpeechStepTemplate, invokeLiveTranscriptionStepTemplate, invokeLyricsAlignmentStepTemplate, invokeMediaCaptioningStepTemplate, invokeMediaHashStepTemplate, invokeMediaRatingStepTemplate, invokeMergeStepTemplate, invokeMiniMaxMusic3StepTemplate, invokeModel3dPreviewStepTemplate, invokeModelAnalysisStepTemplate, invokeModelClamScanStepTemplate, invokeModelHashStepTemplate, invokeModelParseMetadataStepTemplate, invokeModelPickleScanStepTemplate, invokeMultimodalEmbeddingStepTemplate, invokeOcrStepTemplate, invokePolyGenStepTemplate, invokePrepareResourceStepTemplate, invokePreprocessImageStepTemplate, invokePreprocessVideoStepTemplate, invokePromptEnhancementStepTemplate, invokePromptModerationStepTemplate, invokeQwenImageBenchStepTemplate, invokeRepeatStepTemplate, invokeShieldstralModerationStepTemplate, invokeSoniloAudioGenStepTemplate, invokeTextToImageStepTemplate, invokeTextToSpeechStepTemplate, invokeTrainingStepTemplate, invokeTranscodeStepTemplate, invokeTranscriptionStepTemplate, invokeTryOnUStepTemplate, invokeVideoBackgroundRemovalStepTemplate, invokeVideoEnhancementStepTemplate, invokeVideoFrameExtractionStepTemplate, invokeVideoGenStepTemplate, invokeVideoInterpolationStepTemplate, invokeVideoMetadataStepTemplate, invokeVideoUpscalerStepTemplate, invokeWasmStepTemplate, invokeWdTaggingStepTemplate, invokeWebScrapeStepTemplate, invokeWebSearchStepTemplate, invokeXGuardModerationStepTemplate, invokeYuE2StepTemplate, listServices, patchWorkflow, patchWorkflowStep, queryResources, queryWorkflows, refreshBlob, refundFund, removeAllWorkflowTags, removeWorkflowTag, submitWorkflow, updateFund, updateWorkflow, updateWorkflowStep, uploadConsumerBlob, } from './sdk.gen.js';
|
|
3
3
|
export { AnimalPoseBboxDetector, AnimalPoseEstimator, AnylineMergeWith, ArchiveEntryMediaType, ArchiveEntryRejectionReason, ArchiveFormat, BlurRegionMode, BuzzClientAccount, CoarseMode, ComfySampler, ComfyScheduler, ContainerFormat, DensePoseColormap, DensePoseModel, DepthAnythingCheckpoint, DepthAnythingV2Checkpoint, DwPoseBboxDetector, DwPoseEstimator, EmbeddingPrecision, FileFormat, GeminiOmniModel, GeminiOmniResolution, HaiperVideoGenAspectRatio, HaiperVideoGenCameraMovement, HaiperVideoGenModel, HiDreamI1Precision, HiDreamI1Variant, HumanoidImageMaskCategory, ImageBackgroundRemovalFormat, ImageBackgroundRemovalModel, ImageGenOutputFormat, ImageResouceTrainingModerationStatus, ImageTransformer, JobSupport, KlingMode, KlingModel, KlingV3Operation, KlingVideoGenAspectRatio, KlingVideoGenDuration, LeresBoost, LightricksAspectRatio, LyricsAlignmentStatus, MediaContainer, MediaFit, MediaHashType, MediaOutputType, MergeMissingBehavior, MergeReducer, Metric3dBackbone, MiniMaxH3Model, MiniMaxVideoGenModel, ModelClamScanStatus, ModelPickleScanStatus, NsfwLevel, OutputFormat, Priority, ResourceFeeType, ResourceView, SafeMode, Scheduler, SdCppSampleMethod, SdCppSchedule, SdCppUCacheMode, SeedanceModel, SeedreamVersion, ServiceStatus, SettlementCurrency, ShadowRemoval, TraceMode, TrainingModerationStatus, TrainingTraceMode, TransactionType, UpdateWorkflowStatus, Veo3AspectRatio, Veo3GenerationMode, Veo3Version, ViduVideoGenModel, ViduVideoGenStyle, WorkflowStatus, WorkflowStepWarningCode, WorkflowTier, WorkflowUpgradeMode, WorkflowWaitUntil, XGuardPromptScope, ZoeDepthEnvironment, } from './types.gen.js';
|
|
@@ -109,12 +109,18 @@ import type {
|
|
|
109
109
|
InvokeEchoStepTemplateData,
|
|
110
110
|
InvokeEchoStepTemplateErrors,
|
|
111
111
|
InvokeEchoStepTemplateResponses,
|
|
112
|
+
InvokeGitHubRunnerStepTemplateData,
|
|
113
|
+
InvokeGitHubRunnerStepTemplateErrors,
|
|
114
|
+
InvokeGitHubRunnerStepTemplateResponses,
|
|
112
115
|
InvokeHumanoidImageMaskStepTemplateData,
|
|
113
116
|
InvokeHumanoidImageMaskStepTemplateErrors,
|
|
114
117
|
InvokeHumanoidImageMaskStepTemplateResponses,
|
|
115
118
|
InvokeImageBackgroundRemovalStepTemplateData,
|
|
116
119
|
InvokeImageBackgroundRemovalStepTemplateErrors,
|
|
117
120
|
InvokeImageBackgroundRemovalStepTemplateResponses,
|
|
121
|
+
InvokeImageFaceFixStepTemplateData,
|
|
122
|
+
InvokeImageFaceFixStepTemplateErrors,
|
|
123
|
+
InvokeImageFaceFixStepTemplateResponses,
|
|
118
124
|
InvokeImageGenStepTemplateData,
|
|
119
125
|
InvokeImageGenStepTemplateErrors,
|
|
120
126
|
InvokeImageGenStepTemplateResponses,
|
|
@@ -178,6 +184,9 @@ import type {
|
|
|
178
184
|
InvokeMultimodalEmbeddingStepTemplateData,
|
|
179
185
|
InvokeMultimodalEmbeddingStepTemplateErrors,
|
|
180
186
|
InvokeMultimodalEmbeddingStepTemplateResponses,
|
|
187
|
+
InvokeOcrStepTemplateData,
|
|
188
|
+
InvokeOcrStepTemplateErrors,
|
|
189
|
+
InvokeOcrStepTemplateResponses,
|
|
181
190
|
InvokePolyGenStepTemplateData,
|
|
182
191
|
InvokePolyGenStepTemplateErrors,
|
|
183
192
|
InvokePolyGenStepTemplateResponses,
|
|
@@ -247,6 +256,9 @@ import type {
|
|
|
247
256
|
InvokeVideoUpscalerStepTemplateData,
|
|
248
257
|
InvokeVideoUpscalerStepTemplateErrors,
|
|
249
258
|
InvokeVideoUpscalerStepTemplateResponses,
|
|
259
|
+
InvokeWasmStepTemplateData,
|
|
260
|
+
InvokeWasmStepTemplateErrors,
|
|
261
|
+
InvokeWasmStepTemplateResponses,
|
|
250
262
|
InvokeWdTaggingStepTemplateData,
|
|
251
263
|
InvokeWdTaggingStepTemplateErrors,
|
|
252
264
|
InvokeWdTaggingStepTemplateResponses,
|
|
@@ -690,6 +702,19 @@ export declare const invokeEchoStepTemplate: <ThrowOnError extends boolean = fal
|
|
|
690
702
|
ThrowOnError,
|
|
691
703
|
'fields'
|
|
692
704
|
>;
|
|
705
|
+
/**
|
|
706
|
+
* GitHubRunner
|
|
707
|
+
*
|
|
708
|
+
* Runs one GitHub Actions job on a worker. Its input hands over the job and its secrets, so it is restricted to managers and the config must be encrypted for the fleet.
|
|
709
|
+
*/
|
|
710
|
+
export declare const invokeGitHubRunnerStepTemplate: <ThrowOnError extends boolean = false>(
|
|
711
|
+
options?: Options<InvokeGitHubRunnerStepTemplateData, ThrowOnError>
|
|
712
|
+
) => import('./client/types.gen.js').RequestResult<
|
|
713
|
+
InvokeGitHubRunnerStepTemplateResponses,
|
|
714
|
+
InvokeGitHubRunnerStepTemplateErrors,
|
|
715
|
+
ThrowOnError,
|
|
716
|
+
'fields'
|
|
717
|
+
>;
|
|
693
718
|
export declare const invokeHumanoidImageMaskStepTemplate: <ThrowOnError extends boolean = false>(
|
|
694
719
|
options?: Options<InvokeHumanoidImageMaskStepTemplateData, ThrowOnError>
|
|
695
720
|
) => import('./client/types.gen.js').RequestResult<
|
|
@@ -711,6 +736,17 @@ export declare const invokeImageBackgroundRemovalStepTemplate: <
|
|
|
711
736
|
ThrowOnError,
|
|
712
737
|
'fields'
|
|
713
738
|
>;
|
|
739
|
+
/**
|
|
740
|
+
* Detects the faces in an image and regenerates them with an SD1 or SDXL-family checkpoint.
|
|
741
|
+
*/
|
|
742
|
+
export declare const invokeImageFaceFixStepTemplate: <ThrowOnError extends boolean = false>(
|
|
743
|
+
options?: Options<InvokeImageFaceFixStepTemplateData, ThrowOnError>
|
|
744
|
+
) => import('./client/types.gen.js').RequestResult<
|
|
745
|
+
InvokeImageFaceFixStepTemplateResponses,
|
|
746
|
+
InvokeImageFaceFixStepTemplateErrors,
|
|
747
|
+
ThrowOnError,
|
|
748
|
+
'fields'
|
|
749
|
+
>;
|
|
714
750
|
/**
|
|
715
751
|
* Image Generation
|
|
716
752
|
*
|
|
@@ -974,6 +1010,17 @@ export declare const invokeMultimodalEmbeddingStepTemplate: <ThrowOnError extend
|
|
|
974
1010
|
ThrowOnError,
|
|
975
1011
|
'fields'
|
|
976
1012
|
>;
|
|
1013
|
+
/**
|
|
1014
|
+
* Reads the text in an image as plain text, in reading order; the text is empty when the image has none.
|
|
1015
|
+
*/
|
|
1016
|
+
export declare const invokeOcrStepTemplate: <ThrowOnError extends boolean = false>(
|
|
1017
|
+
options?: Options<InvokeOcrStepTemplateData, ThrowOnError>
|
|
1018
|
+
) => import('./client/types.gen.js').RequestResult<
|
|
1019
|
+
InvokeOcrStepTemplateResponses,
|
|
1020
|
+
InvokeOcrStepTemplateErrors,
|
|
1021
|
+
ThrowOnError,
|
|
1022
|
+
'fields'
|
|
1023
|
+
>;
|
|
977
1024
|
/**
|
|
978
1025
|
* 3D model generation
|
|
979
1026
|
*
|
|
@@ -1248,6 +1295,17 @@ export declare const invokeVideoUpscalerStepTemplate: <ThrowOnError extends bool
|
|
|
1248
1295
|
ThrowOnError,
|
|
1249
1296
|
'fields'
|
|
1250
1297
|
>;
|
|
1298
|
+
/**
|
|
1299
|
+
* Runs a WebAssembly module as a WASI command with its arguments, environment, stdin and read-only files under /input, and no network.
|
|
1300
|
+
*/
|
|
1301
|
+
export declare const invokeWasmStepTemplate: <ThrowOnError extends boolean = false>(
|
|
1302
|
+
options?: Options<InvokeWasmStepTemplateData, ThrowOnError>
|
|
1303
|
+
) => import('./client/types.gen.js').RequestResult<
|
|
1304
|
+
InvokeWasmStepTemplateResponses,
|
|
1305
|
+
InvokeWasmStepTemplateErrors,
|
|
1306
|
+
ThrowOnError,
|
|
1307
|
+
'fields'
|
|
1308
|
+
>;
|
|
1251
1309
|
/**
|
|
1252
1310
|
* WDTagging
|
|
1253
1311
|
*
|
|
@@ -401,6 +401,22 @@ export const invokeEchoStepTemplate = (options) => {
|
|
|
401
401
|
},
|
|
402
402
|
});
|
|
403
403
|
};
|
|
404
|
+
/**
|
|
405
|
+
* GitHubRunner
|
|
406
|
+
*
|
|
407
|
+
* Runs one GitHub Actions job on a worker. Its input hands over the job and its secrets, so it is restricted to managers and the config must be encrypted for the fleet.
|
|
408
|
+
*/
|
|
409
|
+
export const invokeGitHubRunnerStepTemplate = (options) => {
|
|
410
|
+
var _a;
|
|
411
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
412
|
+
url: '/v2/consumer/recipes/gitHubRunner',
|
|
413
|
+
...options,
|
|
414
|
+
headers: {
|
|
415
|
+
'Content-Type': 'application/json',
|
|
416
|
+
...options === null || options === void 0 ? void 0 : options.headers,
|
|
417
|
+
},
|
|
418
|
+
});
|
|
419
|
+
};
|
|
404
420
|
export const invokeHumanoidImageMaskStepTemplate = (options) => {
|
|
405
421
|
var _a;
|
|
406
422
|
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
@@ -426,6 +442,20 @@ export const invokeImageBackgroundRemovalStepTemplate = (options) => {
|
|
|
426
442
|
},
|
|
427
443
|
});
|
|
428
444
|
};
|
|
445
|
+
/**
|
|
446
|
+
* Detects the faces in an image and regenerates them with an SD1 or SDXL-family checkpoint.
|
|
447
|
+
*/
|
|
448
|
+
export const invokeImageFaceFixStepTemplate = (options) => {
|
|
449
|
+
var _a;
|
|
450
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
451
|
+
url: '/v2/consumer/recipes/imageFaceFix',
|
|
452
|
+
...options,
|
|
453
|
+
headers: {
|
|
454
|
+
'Content-Type': 'application/json',
|
|
455
|
+
...options === null || options === void 0 ? void 0 : options.headers,
|
|
456
|
+
},
|
|
457
|
+
});
|
|
458
|
+
};
|
|
429
459
|
/**
|
|
430
460
|
* Image Generation
|
|
431
461
|
*
|
|
@@ -750,6 +780,20 @@ export const invokeMultimodalEmbeddingStepTemplate = (options) => {
|
|
|
750
780
|
},
|
|
751
781
|
});
|
|
752
782
|
};
|
|
783
|
+
/**
|
|
784
|
+
* Reads the text in an image as plain text, in reading order; the text is empty when the image has none.
|
|
785
|
+
*/
|
|
786
|
+
export const invokeOcrStepTemplate = (options) => {
|
|
787
|
+
var _a;
|
|
788
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
789
|
+
url: '/v2/consumer/recipes/ocr',
|
|
790
|
+
...options,
|
|
791
|
+
headers: {
|
|
792
|
+
'Content-Type': 'application/json',
|
|
793
|
+
...options === null || options === void 0 ? void 0 : options.headers,
|
|
794
|
+
},
|
|
795
|
+
});
|
|
796
|
+
};
|
|
753
797
|
/**
|
|
754
798
|
* 3D model generation
|
|
755
799
|
*
|
|
@@ -1089,6 +1133,20 @@ export const invokeVideoUpscalerStepTemplate = (options) => {
|
|
|
1089
1133
|
},
|
|
1090
1134
|
});
|
|
1091
1135
|
};
|
|
1136
|
+
/**
|
|
1137
|
+
* Runs a WebAssembly module as a WASI command with its arguments, environment, stdin and read-only files under /input, and no network.
|
|
1138
|
+
*/
|
|
1139
|
+
export const invokeWasmStepTemplate = (options) => {
|
|
1140
|
+
var _a;
|
|
1141
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
1142
|
+
url: '/v2/consumer/recipes/wasm',
|
|
1143
|
+
...options,
|
|
1144
|
+
headers: {
|
|
1145
|
+
'Content-Type': 'application/json',
|
|
1146
|
+
...options === null || options === void 0 ? void 0 : options.headers,
|
|
1147
|
+
},
|
|
1148
|
+
});
|
|
1149
|
+
};
|
|
1092
1150
|
/**
|
|
1093
1151
|
* WDTagging
|
|
1094
1152
|
*
|
|
@@ -1386,6 +1386,7 @@ export declare const services: {
|
|
|
1386
1386
|
readonly engine: 'gemini-omni';
|
|
1387
1387
|
},
|
|
1388
1388
|
];
|
|
1389
|
+
readonly GitHubRunnerInput: readonly ['utility', 'internal', 'gitHubRunner'];
|
|
1389
1390
|
readonly GrokCreateImageGenInput: readonly [
|
|
1390
1391
|
'image',
|
|
1391
1392
|
'partner',
|
|
@@ -1639,6 +1640,26 @@ export declare const services: {
|
|
|
1639
1640
|
readonly operation: 'editImage';
|
|
1640
1641
|
},
|
|
1641
1642
|
];
|
|
1643
|
+
readonly Ideogram46CreateFalImageGenInput: readonly [
|
|
1644
|
+
'image',
|
|
1645
|
+
'partner',
|
|
1646
|
+
'imageGen',
|
|
1647
|
+
{
|
|
1648
|
+
readonly engine: 'fal';
|
|
1649
|
+
readonly model: 'ideogram46';
|
|
1650
|
+
readonly operation: 'createImage';
|
|
1651
|
+
},
|
|
1652
|
+
];
|
|
1653
|
+
readonly Ideogram46EditFalImageGenInput: readonly [
|
|
1654
|
+
'image',
|
|
1655
|
+
'partner',
|
|
1656
|
+
'imageGen',
|
|
1657
|
+
{
|
|
1658
|
+
readonly engine: 'fal';
|
|
1659
|
+
readonly model: 'ideogram46';
|
|
1660
|
+
readonly operation: 'editImage';
|
|
1661
|
+
},
|
|
1662
|
+
];
|
|
1642
1663
|
readonly Ideogram4AIToolkitTrainingInput: readonly [
|
|
1643
1664
|
'model',
|
|
1644
1665
|
'internal',
|
|
@@ -1658,6 +1679,7 @@ export declare const services: {
|
|
|
1658
1679
|
},
|
|
1659
1680
|
];
|
|
1660
1681
|
readonly ImageBackgroundRemovalInput: readonly ['image', 'internal', 'imageBackgroundRemoval'];
|
|
1682
|
+
readonly ImageFaceFixInput: readonly ['image', 'internal', 'imageFaceFix'];
|
|
1661
1683
|
readonly ImageScanningInput: readonly ['image', 'internal', 'imageScanning'];
|
|
1662
1684
|
readonly ImageUpscalerInput: readonly ['image', 'internal', 'imageUpscaler'];
|
|
1663
1685
|
readonly Imagen4ImageGenInput: readonly [
|
|
@@ -2085,6 +2107,7 @@ export declare const services: {
|
|
|
2085
2107
|
readonly model: 'nano-banana-pro';
|
|
2086
2108
|
},
|
|
2087
2109
|
];
|
|
2110
|
+
readonly OCRInput: readonly ['text', 'internal', 'ocr'];
|
|
2088
2111
|
readonly OmniSvgImageToSvgInput: readonly [
|
|
2089
2112
|
'image',
|
|
2090
2113
|
'internal',
|
|
@@ -3356,6 +3379,14 @@ export declare const services: {
|
|
|
3356
3379
|
readonly operation: 'text-to-video';
|
|
3357
3380
|
},
|
|
3358
3381
|
];
|
|
3382
|
+
readonly WasmtimeWasmInput: readonly [
|
|
3383
|
+
'utility',
|
|
3384
|
+
'internal',
|
|
3385
|
+
'wasm',
|
|
3386
|
+
{
|
|
3387
|
+
readonly engine: 'wasmtime';
|
|
3388
|
+
},
|
|
3389
|
+
];
|
|
3359
3390
|
readonly WebScrapeInput: readonly ['utility', 'internal', 'webScrape'];
|
|
3360
3391
|
readonly WebSearchInput: readonly ['utility', 'internal', 'webSearch'];
|
|
3361
3392
|
readonly XGuardProfanityModerationInput: readonly [
|
|
@@ -151,6 +151,7 @@ export const services = {
|
|
|
151
151
|
Gemini25FlashCreateImageGenInput: ['image', 'partner', 'imageGen', { engine: 'gemini', model: '2.5-flash', operation: 'createImage' }],
|
|
152
152
|
Gemini25FlashEditImageGenInput: ['image', 'partner', 'imageGen', { engine: 'gemini', model: '2.5-flash', operation: 'editImage' }],
|
|
153
153
|
GeminiOmniVideoGenInput: ['video', 'partner', 'videoGen', { engine: 'gemini-omni' }],
|
|
154
|
+
GitHubRunnerInput: ['utility', 'internal', 'gitHubRunner'],
|
|
154
155
|
GrokCreateImageGenInput: ['image', 'partner', 'imageGen', { engine: 'grok', version: 'v1.0', operation: 'createImage' }],
|
|
155
156
|
GrokEditImageGenInput: ['image', 'partner', 'imageGen', { engine: 'grok', version: 'v1.0', operation: 'editImage' }],
|
|
156
157
|
GrokEditVideoInput: ['video', 'partner', 'videoGen', { engine: 'grok', version: 'v1.0', operation: 'edit-video' }],
|
|
@@ -177,9 +178,12 @@ export const services = {
|
|
|
177
178
|
HunyuanVdeoGenInput: ['video', 'internal', 'videoGen', { engine: 'hunyuan' }],
|
|
178
179
|
Ideogram45CreateFalImageGenInput: ['image', 'partner', 'imageGen', { engine: 'fal', model: 'ideogram45', operation: 'createImage' }],
|
|
179
180
|
Ideogram45EditFalImageGenInput: ['image', 'partner', 'imageGen', { engine: 'fal', model: 'ideogram45', operation: 'editImage' }],
|
|
181
|
+
Ideogram46CreateFalImageGenInput: ['image', 'partner', 'imageGen', { engine: 'fal', model: 'ideogram46', operation: 'createImage' }],
|
|
182
|
+
Ideogram46EditFalImageGenInput: ['image', 'partner', 'imageGen', { engine: 'fal', model: 'ideogram46', operation: 'editImage' }],
|
|
180
183
|
Ideogram4AIToolkitTrainingInput: ['model', 'internal', 'training', { engine: 'ai-toolkit', ecosystem: 'ideogram4' }],
|
|
181
184
|
IdolComfyPolyGenInput: ['3d', 'internal', 'polyGen', { engine: 'comfy', model: 'idol' }],
|
|
182
185
|
ImageBackgroundRemovalInput: ['image', 'internal', 'imageBackgroundRemoval'],
|
|
186
|
+
ImageFaceFixInput: ['image', 'internal', 'imageFaceFix'],
|
|
183
187
|
ImageScanningInput: ['image', 'internal', 'imageScanning'],
|
|
184
188
|
ImageUpscalerInput: ['image', 'internal', 'imageUpscaler'],
|
|
185
189
|
Imagen4ImageGenInput: ['image', 'partner', 'imageGen', { engine: 'google', model: 'imagen4' }],
|
|
@@ -239,6 +243,7 @@ export const services = {
|
|
|
239
243
|
NanoBanana2ImageGenInput: ['image', 'partner', 'imageGen', { engine: 'google', model: 'nano-banana-2' }],
|
|
240
244
|
NanoBanana2LiteImageGenInput: ['image', 'partner', 'imageGen', { engine: 'google', model: 'nano-banana-2-lite' }],
|
|
241
245
|
NanoBananaProImageGenInput: ['image', 'partner', 'imageGen', { engine: 'google', model: 'nano-banana-pro' }],
|
|
246
|
+
OCRInput: ['text', 'internal', 'ocr'],
|
|
242
247
|
OmniSvgImageToSvgInput: ['image', 'internal', 'imageToSvg', { engine: 'comfy', ecosystem: 'omnisvg' }],
|
|
243
248
|
OmniVoiceTextToSpeechInput: ['audio', 'internal', 'textToSpeech', { engine: 'vllm-omni', ecosystem: 'omnivoice' }],
|
|
244
249
|
OpenAIDallE2CreateImageGenInput: ['image', 'partner', 'imageGen', { engine: 'openai', model: 'dall-e-2', operation: 'createImage' }],
|
|
@@ -390,6 +395,7 @@ export const services = {
|
|
|
390
395
|
Wan27FalTextToVideoInput: ['video', 'partner', 'videoGen', { engine: 'wan', version: 'v2.7', provider: 'fal', operation: 'text-to-video' }],
|
|
391
396
|
Wan30ImageToVideoInput: ['video', 'partner', 'videoGen', { engine: 'wan', version: 'v3.0', operation: 'image-to-video' }],
|
|
392
397
|
Wan30TextToVideoInput: ['video', 'partner', 'videoGen', { engine: 'wan', version: 'v3.0', operation: 'text-to-video' }],
|
|
398
|
+
WasmtimeWasmInput: ['utility', 'internal', 'wasm', { engine: 'wasmtime' }],
|
|
393
399
|
WebScrapeInput: ['utility', 'internal', 'webScrape'],
|
|
394
400
|
WebSearchInput: ['utility', 'internal', 'webSearch'],
|
|
395
401
|
XGuardProfanityModerationInput: ['text', 'internal', 'xGuardModeration', { mode: 'profanity' }],
|
|
@@ -4843,6 +4843,37 @@ export type GifOutputFormat = Omit<ImageOutputFormat, 'format'> & {
|
|
|
4843
4843
|
maxFrames?: null | number;
|
|
4844
4844
|
format: 'gif';
|
|
4845
4845
|
};
|
|
4846
|
+
export type GitHubRunnerInput = {
|
|
4847
|
+
/**
|
|
4848
|
+
* The single-use runner config from GitHub's generate-jitconfig endpoint, as a base64 CMS envelope encrypted to the fleet certificate.
|
|
4849
|
+
*/
|
|
4850
|
+
jitConfig: string;
|
|
4851
|
+
/**
|
|
4852
|
+
* Whether the runner gets a GPU. A CPU-only runner goes to a worker that has none.
|
|
4853
|
+
*/
|
|
4854
|
+
gpu: boolean;
|
|
4855
|
+
};
|
|
4856
|
+
export type GitHubRunnerOutput = {
|
|
4857
|
+
[key: string]: never;
|
|
4858
|
+
};
|
|
4859
|
+
/**
|
|
4860
|
+
* GitHubRunner
|
|
4861
|
+
*/
|
|
4862
|
+
export type GitHubRunnerStep = Omit<WorkflowStep, '$type'> & {
|
|
4863
|
+
input: GitHubRunnerInput;
|
|
4864
|
+
output?: GitHubRunnerOutput;
|
|
4865
|
+
$type: 'gitHubRunner';
|
|
4866
|
+
};
|
|
4867
|
+
/**
|
|
4868
|
+
* GitHubRunner
|
|
4869
|
+
*/
|
|
4870
|
+
export type GitHubRunnerStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
|
|
4871
|
+
/**
|
|
4872
|
+
* Input for the GitHubRunnerStep step.
|
|
4873
|
+
*/
|
|
4874
|
+
input: GitHubRunnerInput;
|
|
4875
|
+
$type: 'gitHubRunner';
|
|
4876
|
+
};
|
|
4846
4877
|
export type GoogleImageGenInput = Omit<ImageGenInput, 'engine'> & {
|
|
4847
4878
|
model: string;
|
|
4848
4879
|
prompt: string;
|
|
@@ -5464,6 +5495,78 @@ export type Ideogram45FalImageGenInput = Omit<FalImageGenInput, 'engine' | 'mode
|
|
|
5464
5495
|
model: 'ideogram45';
|
|
5465
5496
|
engine: 'fal';
|
|
5466
5497
|
};
|
|
5498
|
+
export type Ideogram46ContextWindowBox = {
|
|
5499
|
+
xMin: number;
|
|
5500
|
+
yMin: number;
|
|
5501
|
+
xMax: number;
|
|
5502
|
+
yMax: number;
|
|
5503
|
+
};
|
|
5504
|
+
export type Ideogram46CreateFalImageGenInput = Omit<
|
|
5505
|
+
Ideogram46FalImageGenInput,
|
|
5506
|
+
'engine' | 'model' | 'operation'
|
|
5507
|
+
> & {
|
|
5508
|
+
enhancePrompt?: boolean;
|
|
5509
|
+
operation: 'createImage';
|
|
5510
|
+
model: 'ideogram46';
|
|
5511
|
+
engine: 'fal';
|
|
5512
|
+
};
|
|
5513
|
+
export type Ideogram46EditFalImageGenInput = Omit<
|
|
5514
|
+
Ideogram46FalImageGenInput,
|
|
5515
|
+
'engine' | 'model' | 'operation'
|
|
5516
|
+
> & {
|
|
5517
|
+
/**
|
|
5518
|
+
* The first image is the source; the remaining images are references.
|
|
5519
|
+
*/
|
|
5520
|
+
images: Array<string>;
|
|
5521
|
+
/**
|
|
5522
|
+
* Black edits, white preserves. Must match the source dimensions and contain both regions.
|
|
5523
|
+
*/
|
|
5524
|
+
mask?: null | string;
|
|
5525
|
+
/**
|
|
5526
|
+
* high restores unchanged pixels.
|
|
5527
|
+
*/
|
|
5528
|
+
editPrecision?: 'regular' | 'high';
|
|
5529
|
+
/**
|
|
5530
|
+
* High-precision edits: auto edits only a region fitted around the mask, at the source resolution.
|
|
5531
|
+
*/
|
|
5532
|
+
contextWindow?: 'none' | 'auto';
|
|
5533
|
+
/**
|
|
5534
|
+
* High-precision edits: the region to edit, in source pixels with exclusive xMax and yMax.
|
|
5535
|
+
*/
|
|
5536
|
+
contextWindowBox?: Ideogram46ContextWindowBox;
|
|
5537
|
+
operation: 'editImage';
|
|
5538
|
+
model: 'ideogram46';
|
|
5539
|
+
engine: 'fal';
|
|
5540
|
+
};
|
|
5541
|
+
export type Ideogram46FalImageGenInput = Omit<FalImageGenInput, 'engine' | 'model'> & {
|
|
5542
|
+
operation: string;
|
|
5543
|
+
prompt: string;
|
|
5544
|
+
quantity?: number;
|
|
5545
|
+
seed?: null | number;
|
|
5546
|
+
quality?: 'very_low' | 'low' | 'medium' | 'high';
|
|
5547
|
+
/**
|
|
5548
|
+
* auto picks about 2K for text-to-image and keeps the source size for edits.
|
|
5549
|
+
*/
|
|
5550
|
+
imageSize?:
|
|
5551
|
+
| 'auto'
|
|
5552
|
+
| 'square_hd'
|
|
5553
|
+
| 'square'
|
|
5554
|
+
| 'portrait_4_3'
|
|
5555
|
+
| 'portrait_16_9'
|
|
5556
|
+
| 'landscape_4_3'
|
|
5557
|
+
| 'landscape_16_9';
|
|
5558
|
+
/**
|
|
5559
|
+
* Custom dimensions override imageSize. Set width and height together.
|
|
5560
|
+
*/
|
|
5561
|
+
width?: null | number;
|
|
5562
|
+
height?: null | number;
|
|
5563
|
+
/**
|
|
5564
|
+
* Leave unset for the model default.
|
|
5565
|
+
*/
|
|
5566
|
+
background?: null | 'opaque' | 'transparent';
|
|
5567
|
+
model: 'ideogram46';
|
|
5568
|
+
engine: 'fal';
|
|
5569
|
+
};
|
|
5467
5570
|
export type Ideogram4AiToolkitTrainingInput = Omit<
|
|
5468
5571
|
AiToolkitTrainingInput,
|
|
5469
5572
|
'engine' | 'ecosystem'
|
|
@@ -5546,6 +5649,60 @@ export type ImageBlob = Omit<Blob, 'type'> & {
|
|
|
5546
5649
|
previewUrlExpiresAt?: null | string;
|
|
5547
5650
|
type: 'image';
|
|
5548
5651
|
};
|
|
5652
|
+
export type ImageFaceFixInput = {
|
|
5653
|
+
/**
|
|
5654
|
+
* Either A URL, A DataURL or a Base64 string
|
|
5655
|
+
*/
|
|
5656
|
+
image: string;
|
|
5657
|
+
/**
|
|
5658
|
+
* The SD1 or SDXL-family checkpoint that regenerates the faces, usually the one that made the image.
|
|
5659
|
+
*/
|
|
5660
|
+
checkpointModel: string;
|
|
5661
|
+
vaeModel?: null | string;
|
|
5662
|
+
loras?: {
|
|
5663
|
+
[key: string]: number;
|
|
5664
|
+
};
|
|
5665
|
+
embeddings?: Array<string>;
|
|
5666
|
+
clipSkip?: null | number;
|
|
5667
|
+
prompt: string;
|
|
5668
|
+
negativePrompt?: null | string;
|
|
5669
|
+
sampler?: ComfySampler;
|
|
5670
|
+
scheduler?: ComfyScheduler;
|
|
5671
|
+
steps?: number;
|
|
5672
|
+
cfgScale?: number;
|
|
5673
|
+
seed?: null | number;
|
|
5674
|
+
/**
|
|
5675
|
+
* How much of each detected face is regenerated.
|
|
5676
|
+
*/
|
|
5677
|
+
strength?: number;
|
|
5678
|
+
quantity?: number;
|
|
5679
|
+
outputFormat?: ImageGenOutputFormat;
|
|
5680
|
+
/**
|
|
5681
|
+
* External metadata that will be stored with the image
|
|
5682
|
+
*/
|
|
5683
|
+
imageMetadata?: null | string;
|
|
5684
|
+
};
|
|
5685
|
+
export type ImageFaceFixOutput = {
|
|
5686
|
+
images: Array<ImageBlob>;
|
|
5687
|
+
};
|
|
5688
|
+
/**
|
|
5689
|
+
* Detects the faces in an image and regenerates them with an SD1 or SDXL-family checkpoint.
|
|
5690
|
+
*/
|
|
5691
|
+
export type ImageFaceFixStep = Omit<WorkflowStep, '$type'> & {
|
|
5692
|
+
input: ImageFaceFixInput;
|
|
5693
|
+
output?: ImageFaceFixOutput;
|
|
5694
|
+
$type: 'imageFaceFix';
|
|
5695
|
+
};
|
|
5696
|
+
/**
|
|
5697
|
+
* Detects the faces in an image and regenerates them with an SD1 or SDXL-family checkpoint.
|
|
5698
|
+
*/
|
|
5699
|
+
export type ImageFaceFixStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
|
|
5700
|
+
/**
|
|
5701
|
+
* Input for the ImageFaceFixStep step.
|
|
5702
|
+
*/
|
|
5703
|
+
input: ImageFaceFixInput;
|
|
5704
|
+
$type: 'imageFaceFix';
|
|
5705
|
+
};
|
|
5549
5706
|
export type ImageGenInput = {
|
|
5550
5707
|
engine: string;
|
|
5551
5708
|
outputFormat?: ImageGenOutputFormat;
|
|
@@ -5934,6 +6091,18 @@ export type ImageUpscalerInput = {
|
|
|
5934
6091
|
* Number of times to repeat the upscale operation (1-3). Each repeat doubles the resolution.
|
|
5935
6092
|
*/
|
|
5936
6093
|
numberOfRepeats?: number;
|
|
6094
|
+
/**
|
|
6095
|
+
* `comfy` runs the upscale on ComfyUI and enables `scale` and `outputFormat`.
|
|
6096
|
+
*/
|
|
6097
|
+
engine?: 'sdcpp' | 'comfy';
|
|
6098
|
+
/**
|
|
6099
|
+
* Exact resize factor, replacing `numberOfRepeats`. Comfy engine only.
|
|
6100
|
+
*/
|
|
6101
|
+
scale?: null | number;
|
|
6102
|
+
/**
|
|
6103
|
+
* Comfy engine only; sd.cpp always outputs jpeg.
|
|
6104
|
+
*/
|
|
6105
|
+
outputFormat?: ImageGenOutputFormat;
|
|
5937
6106
|
};
|
|
5938
6107
|
export type ImageUpscalerOutput = {
|
|
5939
6108
|
blob: ImageBlob;
|
|
@@ -6208,7 +6377,7 @@ export type KlingVideoGenInput = Omit<VideoGenInput, 'engine'> & {
|
|
|
6208
6377
|
};
|
|
6209
6378
|
export type KohyaTrainingInput = Omit<TrainingInput, 'engine'> & {
|
|
6210
6379
|
/**
|
|
6211
|
-
* Any compatible SD1.5, SDXL (including Pony, Illustrious and NoobAI), FLUX.1 or
|
|
6380
|
+
* Any compatible SD1.5, SDXL (including Pony, Illustrious and NoobAI), FLUX.1, Chroma or Anima checkpoint AIR.
|
|
6212
6381
|
*/
|
|
6213
6382
|
model: string;
|
|
6214
6383
|
/**
|
|
@@ -6240,9 +6409,9 @@ export type KohyaTrainingInput = Omit<TrainingInput, 'engine'> & {
|
|
|
6240
6409
|
*/
|
|
6241
6410
|
keepTokens: number;
|
|
6242
6411
|
/**
|
|
6243
|
-
* CLIP layer skip for SD1.5;
|
|
6412
|
+
* CLIP layer skip for SD1.5 and SDXL-family models, also applied to previews. Defaults to 1 for SD1.5 and 2 for SDXL, which conditions on the penultimate layer at the least, so 1 is treated as 2 there; flow models use 1.
|
|
6244
6413
|
*/
|
|
6245
|
-
clipSkip
|
|
6414
|
+
clipSkip?: null | number;
|
|
6246
6415
|
/**
|
|
6247
6416
|
* Random horizontal image flips.
|
|
6248
6417
|
*/
|
|
@@ -6270,7 +6439,7 @@ export type KohyaTrainingInput = Omit<TrainingInput, 'engine'> & {
|
|
|
6270
6439
|
*/
|
|
6271
6440
|
lrSchedulerNumCycles: number;
|
|
6272
6441
|
/**
|
|
6273
|
-
* Min-SNR loss weighting; defaults to 5 for SD models and 0 for flow models.
|
|
6442
|
+
* Min-SNR loss weighting; defaults to 5 for SD models and 0 for flow models (FLUX.1, Chroma and Anima).
|
|
6274
6443
|
*/
|
|
6275
6444
|
minSnrGamma?: null | number;
|
|
6276
6445
|
/**
|
|
@@ -6290,7 +6459,7 @@ export type KohyaTrainingInput = Omit<TrainingInput, 'engine'> & {
|
|
|
6290
6459
|
*/
|
|
6291
6460
|
optimizerType: 'AdamW' | 'AdamW8bit' | 'Adafactor' | 'Prodigy' | 'Lion' | 'Lion8bit';
|
|
6292
6461
|
/**
|
|
6293
|
-
* Train text encoder LoRAs; must match ContinueFrom coverage. FLUX supports CLIP-L; Chroma does not support this option.
|
|
6462
|
+
* Train text encoder LoRAs; must match ContinueFrom coverage. Defaults to off for flow models. FLUX supports CLIP-L and Anima its Qwen3 encoder; Chroma does not support this option.
|
|
6294
6463
|
*/
|
|
6295
6464
|
trainTextEncoder?: null | boolean;
|
|
6296
6465
|
/**
|
|
@@ -6306,7 +6475,7 @@ export type KohyaTrainingInput = Omit<TrainingInput, 'engine'> & {
|
|
|
6306
6475
|
*/
|
|
6307
6476
|
clipLModel?: null | string;
|
|
6308
6477
|
/**
|
|
6309
|
-
* Optional FLUX or Chroma
|
|
6478
|
+
* Optional text encoder resource override: T5 for FLUX or Chroma, Qwen3 for Anima.
|
|
6310
6479
|
*/
|
|
6311
6480
|
textEncoderModel?: null | string;
|
|
6312
6481
|
/**
|
|
@@ -8220,6 +8389,27 @@ export type NanoBananaProImageGenInput = Omit<GoogleImageGenInput, 'engine' | 'm
|
|
|
8220
8389
|
images?: Array<string>;
|
|
8221
8390
|
engine: 'google';
|
|
8222
8391
|
};
|
|
8392
|
+
export type OcrInput = {
|
|
8393
|
+
/**
|
|
8394
|
+
* Image to read. URLs are imported into orchestrator blob storage before the job is queued.
|
|
8395
|
+
*/
|
|
8396
|
+
image: string;
|
|
8397
|
+
};
|
|
8398
|
+
export type OcrOutput = {
|
|
8399
|
+
text: string;
|
|
8400
|
+
};
|
|
8401
|
+
export type OcrStep = Omit<WorkflowStep, '$type'> & {
|
|
8402
|
+
input: OcrInput;
|
|
8403
|
+
output?: OcrOutput;
|
|
8404
|
+
$type: 'ocr';
|
|
8405
|
+
};
|
|
8406
|
+
export type OcrStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
|
|
8407
|
+
/**
|
|
8408
|
+
* Input for the OCRStep step.
|
|
8409
|
+
*/
|
|
8410
|
+
input: OcrInput;
|
|
8411
|
+
$type: 'ocr';
|
|
8412
|
+
};
|
|
8223
8413
|
export type OmniSvgImageToSvgInput = Omit<ComfyImageToSvgInput, 'engine' | 'ecosystem'> & {
|
|
8224
8414
|
model?: 'omnisvg-4b' | 'omnisvg-8b';
|
|
8225
8415
|
maxLength?: number;
|
|
@@ -9458,9 +9648,11 @@ export type ResourceFee = {
|
|
|
9458
9648
|
type: ResourceFeeType;
|
|
9459
9649
|
settlementCurrency: SettlementCurrency;
|
|
9460
9650
|
recipientModelVersionId?: null | number;
|
|
9651
|
+
markup?: null | number;
|
|
9461
9652
|
};
|
|
9462
9653
|
export declare const ResourceFeeType: {
|
|
9463
9654
|
readonly PER_IMAGE_BUZZ: 'perImageBuzz';
|
|
9655
|
+
readonly PERCENT_OF_COMPUTE: 'percentOfCompute';
|
|
9464
9656
|
};
|
|
9465
9657
|
export type ResourceFeeType = (typeof ResourceFeeType)[keyof typeof ResourceFeeType];
|
|
9466
9658
|
export type ResourceInfo = {
|
|
@@ -11654,6 +11846,116 @@ export type WanVideoGenInput = Omit<VideoGenInput, 'engine'> & {
|
|
|
11654
11846
|
steps?: number;
|
|
11655
11847
|
loras?: Array<VideoGenInputLora>;
|
|
11656
11848
|
};
|
|
11849
|
+
export type WasmInput = {
|
|
11850
|
+
engine: string;
|
|
11851
|
+
/**
|
|
11852
|
+
* Streams stdout while the module runs, readable at `output.stdoutUrl`; the full stdout is still in the output once it exits.
|
|
11853
|
+
*/
|
|
11854
|
+
stream?: boolean;
|
|
11855
|
+
};
|
|
11856
|
+
export type WasmOutput = {
|
|
11857
|
+
/**
|
|
11858
|
+
* Set once the module exits, as are Civitai.Orchestration.Grains.Workflows.Steps.Wasm.WasmOutput.Stdout and Civitai.Orchestration.Grains.Workflows.Steps.Wasm.WasmOutput.Stderr.
|
|
11859
|
+
*/
|
|
11860
|
+
exitCode?: null | number;
|
|
11861
|
+
stdout?: null | string;
|
|
11862
|
+
stderr?: null | string;
|
|
11863
|
+
/**
|
|
11864
|
+
* Stdout as it is written, when the input asked to stream it.
|
|
11865
|
+
*/
|
|
11866
|
+
stdoutUrl?: null | string;
|
|
11867
|
+
/**
|
|
11868
|
+
* Stdout as JSON, when it parses as JSON; later steps reach it via `$ref` paths like `output.parsed.<field>`.
|
|
11869
|
+
*/
|
|
11870
|
+
parsed?: unknown;
|
|
11871
|
+
};
|
|
11872
|
+
export type WasmStep = Omit<WorkflowStep, '$type'> & {
|
|
11873
|
+
input: WasmInput;
|
|
11874
|
+
output?: WasmOutput;
|
|
11875
|
+
$type: 'wasm';
|
|
11876
|
+
};
|
|
11877
|
+
export type WasmStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
|
|
11878
|
+
/**
|
|
11879
|
+
* Input for the WasmStep step.
|
|
11880
|
+
*/
|
|
11881
|
+
input: WasmInput;
|
|
11882
|
+
$type: 'wasm';
|
|
11883
|
+
};
|
|
11884
|
+
export type WasmtimeAudioFile = Omit<WasmtimeFile, 'type'> & {
|
|
11885
|
+
url: string;
|
|
11886
|
+
type: 'audio';
|
|
11887
|
+
};
|
|
11888
|
+
/**
|
|
11889
|
+
* One media file handed to the module, imported through the path its kind takes in every other step.
|
|
11890
|
+
*/
|
|
11891
|
+
export type WasmtimeFile = {
|
|
11892
|
+
type: string;
|
|
11893
|
+
};
|
|
11894
|
+
/**
|
|
11895
|
+
* Imported and scanned as any source image is.
|
|
11896
|
+
*/
|
|
11897
|
+
export type WasmtimeImageFile = Omit<WasmtimeFile, 'type'> & {
|
|
11898
|
+
/**
|
|
11899
|
+
* Either A URL, A DataURL or a Base64 string
|
|
11900
|
+
*/
|
|
11901
|
+
url: string;
|
|
11902
|
+
type: 'image';
|
|
11903
|
+
};
|
|
11904
|
+
/**
|
|
11905
|
+
* What the run may use, which is also what it reserves on its worker. The timeout is named after `wasmtime run -W`.
|
|
11906
|
+
*/
|
|
11907
|
+
export type WasmtimeLimits = {
|
|
11908
|
+
/**
|
|
11909
|
+
* How long the module may run before it is interrupted.
|
|
11910
|
+
*/
|
|
11911
|
+
timeout?: string;
|
|
11912
|
+
/**
|
|
11913
|
+
* In MiB, how far the module's memory may grow.
|
|
11914
|
+
*/
|
|
11915
|
+
maxMemoryMb?: number;
|
|
11916
|
+
/**
|
|
11917
|
+
* Cores reserved, not enforced. A module runs on one thread, so less than 1 shares a core with other runs.
|
|
11918
|
+
*/
|
|
11919
|
+
cpus?: number;
|
|
11920
|
+
};
|
|
11921
|
+
export type WasmtimeVideoFile = Omit<WasmtimeFile, 'type'> & {
|
|
11922
|
+
url: string;
|
|
11923
|
+
type: 'video';
|
|
11924
|
+
};
|
|
11925
|
+
/**
|
|
11926
|
+
* Runs the module in Wasmtime as a WASI command, as `wasmtime run` would.
|
|
11927
|
+
*/
|
|
11928
|
+
export type WasmtimeWasmInput = Omit<WasmInput, 'engine'> & {
|
|
11929
|
+
/**
|
|
11930
|
+
* The module, compiled for `wasm32-wasip1`. A URL is imported into blob storage when the step is submitted.
|
|
11931
|
+
*/
|
|
11932
|
+
module: string;
|
|
11933
|
+
/**
|
|
11934
|
+
* When set, a module whose bytes don't match is refused.
|
|
11935
|
+
*/
|
|
11936
|
+
sha256?: null | string;
|
|
11937
|
+
/**
|
|
11938
|
+
* The arguments after the program name.
|
|
11939
|
+
*/
|
|
11940
|
+
args?: Array<string>;
|
|
11941
|
+
env?: {
|
|
11942
|
+
[key: string]: string;
|
|
11943
|
+
};
|
|
11944
|
+
stdin?: null | string;
|
|
11945
|
+
/**
|
|
11946
|
+
* Read-only directories by guest path, as `wasmtime run --dir` preopens them, each listing its media files by name.
|
|
11947
|
+
*/
|
|
11948
|
+
dirs?: {
|
|
11949
|
+
[key: string]: {
|
|
11950
|
+
[key: string]: WasmtimeFile;
|
|
11951
|
+
};
|
|
11952
|
+
};
|
|
11953
|
+
/**
|
|
11954
|
+
* What the run may use, which is also what it reserves on its worker. The timeout is named after `wasmtime run -W`.
|
|
11955
|
+
*/
|
|
11956
|
+
limits?: WasmtimeLimits;
|
|
11957
|
+
engine: 'wasmtime';
|
|
11958
|
+
};
|
|
11657
11959
|
/**
|
|
11658
11960
|
* An image repeated across the whole output, burned into every frame.
|
|
11659
11961
|
*/
|
|
@@ -12127,7 +12429,7 @@ export type WorkflowTemplate = {
|
|
|
12127
12429
|
[key: string]: unknown;
|
|
12128
12430
|
};
|
|
12129
12431
|
/**
|
|
12130
|
-
* Indexed for searching. At most
|
|
12432
|
+
* Indexed for searching. At most 20 tags, each at most 200 characters.
|
|
12131
12433
|
*/
|
|
12132
12434
|
tags?: null | Array<string>;
|
|
12133
12435
|
steps: Array<WorkflowStepTemplate>;
|
|
@@ -13249,7 +13551,7 @@ export type Ideogram4AiToolkitTrainingInputWritable = Omit<
|
|
|
13249
13551
|
};
|
|
13250
13552
|
export type KohyaTrainingInputWritable = Omit<TrainingInputWritable2, 'engine'> & {
|
|
13251
13553
|
/**
|
|
13252
|
-
* Any compatible SD1.5, SDXL (including Pony, Illustrious and NoobAI), FLUX.1 or
|
|
13554
|
+
* Any compatible SD1.5, SDXL (including Pony, Illustrious and NoobAI), FLUX.1, Chroma or Anima checkpoint AIR.
|
|
13253
13555
|
*/
|
|
13254
13556
|
model: string;
|
|
13255
13557
|
/**
|
|
@@ -13281,9 +13583,9 @@ export type KohyaTrainingInputWritable = Omit<TrainingInputWritable2, 'engine'>
|
|
|
13281
13583
|
*/
|
|
13282
13584
|
keepTokens: number;
|
|
13283
13585
|
/**
|
|
13284
|
-
* CLIP layer skip for SD1.5;
|
|
13586
|
+
* CLIP layer skip for SD1.5 and SDXL-family models, also applied to previews. Defaults to 1 for SD1.5 and 2 for SDXL, which conditions on the penultimate layer at the least, so 1 is treated as 2 there; flow models use 1.
|
|
13285
13587
|
*/
|
|
13286
|
-
clipSkip
|
|
13588
|
+
clipSkip?: null | number;
|
|
13287
13589
|
/**
|
|
13288
13590
|
* Random horizontal image flips.
|
|
13289
13591
|
*/
|
|
@@ -13311,7 +13613,7 @@ export type KohyaTrainingInputWritable = Omit<TrainingInputWritable2, 'engine'>
|
|
|
13311
13613
|
*/
|
|
13312
13614
|
lrSchedulerNumCycles: number;
|
|
13313
13615
|
/**
|
|
13314
|
-
* Min-SNR loss weighting; defaults to 5 for SD models and 0 for flow models.
|
|
13616
|
+
* Min-SNR loss weighting; defaults to 5 for SD models and 0 for flow models (FLUX.1, Chroma and Anima).
|
|
13315
13617
|
*/
|
|
13316
13618
|
minSnrGamma?: null | number;
|
|
13317
13619
|
/**
|
|
@@ -13331,7 +13633,7 @@ export type KohyaTrainingInputWritable = Omit<TrainingInputWritable2, 'engine'>
|
|
|
13331
13633
|
*/
|
|
13332
13634
|
optimizerType: 'AdamW' | 'AdamW8bit' | 'Adafactor' | 'Prodigy' | 'Lion' | 'Lion8bit';
|
|
13333
13635
|
/**
|
|
13334
|
-
* Train text encoder LoRAs; must match ContinueFrom coverage. FLUX supports CLIP-L; Chroma does not support this option.
|
|
13636
|
+
* Train text encoder LoRAs; must match ContinueFrom coverage. Defaults to off for flow models. FLUX supports CLIP-L and Anima its Qwen3 encoder; Chroma does not support this option.
|
|
13335
13637
|
*/
|
|
13336
13638
|
trainTextEncoder?: null | boolean;
|
|
13337
13639
|
/**
|
|
@@ -13347,7 +13649,7 @@ export type KohyaTrainingInputWritable = Omit<TrainingInputWritable2, 'engine'>
|
|
|
13347
13649
|
*/
|
|
13348
13650
|
clipLModel?: null | string;
|
|
13349
13651
|
/**
|
|
13350
|
-
* Optional FLUX or Chroma
|
|
13652
|
+
* Optional text encoder resource override: T5 for FLUX or Chroma, Qwen3 for Anima.
|
|
13351
13653
|
*/
|
|
13352
13654
|
textEncoderModel?: null | string;
|
|
13353
13655
|
/**
|
|
@@ -15437,6 +15739,46 @@ export type InvokeEchoStepTemplateResponses = {
|
|
|
15437
15739
|
};
|
|
15438
15740
|
export type InvokeEchoStepTemplateResponse =
|
|
15439
15741
|
InvokeEchoStepTemplateResponses[keyof InvokeEchoStepTemplateResponses];
|
|
15742
|
+
export type InvokeGitHubRunnerStepTemplateData = {
|
|
15743
|
+
body?: GitHubRunnerInput;
|
|
15744
|
+
path?: never;
|
|
15745
|
+
query?: {
|
|
15746
|
+
experimental?: boolean;
|
|
15747
|
+
allowMatureContent?: boolean;
|
|
15748
|
+
whatif?: boolean;
|
|
15749
|
+
ephemeral?: boolean;
|
|
15750
|
+
/**
|
|
15751
|
+
* How a workflow is paid for.
|
|
15752
|
+
*/
|
|
15753
|
+
tier?: WorkflowTier;
|
|
15754
|
+
tags?: Array<string>;
|
|
15755
|
+
};
|
|
15756
|
+
url: '/v2/consumer/recipes/gitHubRunner';
|
|
15757
|
+
};
|
|
15758
|
+
export type InvokeGitHubRunnerStepTemplateErrors = {
|
|
15759
|
+
/**
|
|
15760
|
+
* Bad Request
|
|
15761
|
+
*/
|
|
15762
|
+
400: ProblemDetails;
|
|
15763
|
+
/**
|
|
15764
|
+
* Unauthorized
|
|
15765
|
+
*/
|
|
15766
|
+
401: ProblemDetails;
|
|
15767
|
+
/**
|
|
15768
|
+
* Forbidden
|
|
15769
|
+
*/
|
|
15770
|
+
403: ProblemDetails;
|
|
15771
|
+
};
|
|
15772
|
+
export type InvokeGitHubRunnerStepTemplateError =
|
|
15773
|
+
InvokeGitHubRunnerStepTemplateErrors[keyof InvokeGitHubRunnerStepTemplateErrors];
|
|
15774
|
+
export type InvokeGitHubRunnerStepTemplateResponses = {
|
|
15775
|
+
/**
|
|
15776
|
+
* OK
|
|
15777
|
+
*/
|
|
15778
|
+
200: GitHubRunnerOutput;
|
|
15779
|
+
};
|
|
15780
|
+
export type InvokeGitHubRunnerStepTemplateResponse =
|
|
15781
|
+
InvokeGitHubRunnerStepTemplateResponses[keyof InvokeGitHubRunnerStepTemplateResponses];
|
|
15440
15782
|
export type InvokeHumanoidImageMaskStepTemplateData = {
|
|
15441
15783
|
body?: HumanoidImageMaskInput;
|
|
15442
15784
|
path?: never;
|
|
@@ -15517,6 +15859,46 @@ export type InvokeImageBackgroundRemovalStepTemplateResponses = {
|
|
|
15517
15859
|
};
|
|
15518
15860
|
export type InvokeImageBackgroundRemovalStepTemplateResponse =
|
|
15519
15861
|
InvokeImageBackgroundRemovalStepTemplateResponses[keyof InvokeImageBackgroundRemovalStepTemplateResponses];
|
|
15862
|
+
export type InvokeImageFaceFixStepTemplateData = {
|
|
15863
|
+
body?: ImageFaceFixInput;
|
|
15864
|
+
path?: never;
|
|
15865
|
+
query?: {
|
|
15866
|
+
experimental?: boolean;
|
|
15867
|
+
allowMatureContent?: boolean;
|
|
15868
|
+
whatif?: boolean;
|
|
15869
|
+
ephemeral?: boolean;
|
|
15870
|
+
/**
|
|
15871
|
+
* How a workflow is paid for.
|
|
15872
|
+
*/
|
|
15873
|
+
tier?: WorkflowTier;
|
|
15874
|
+
tags?: Array<string>;
|
|
15875
|
+
};
|
|
15876
|
+
url: '/v2/consumer/recipes/imageFaceFix';
|
|
15877
|
+
};
|
|
15878
|
+
export type InvokeImageFaceFixStepTemplateErrors = {
|
|
15879
|
+
/**
|
|
15880
|
+
* Bad Request
|
|
15881
|
+
*/
|
|
15882
|
+
400: ProblemDetails;
|
|
15883
|
+
/**
|
|
15884
|
+
* Unauthorized
|
|
15885
|
+
*/
|
|
15886
|
+
401: ProblemDetails;
|
|
15887
|
+
/**
|
|
15888
|
+
* Forbidden
|
|
15889
|
+
*/
|
|
15890
|
+
403: ProblemDetails;
|
|
15891
|
+
};
|
|
15892
|
+
export type InvokeImageFaceFixStepTemplateError =
|
|
15893
|
+
InvokeImageFaceFixStepTemplateErrors[keyof InvokeImageFaceFixStepTemplateErrors];
|
|
15894
|
+
export type InvokeImageFaceFixStepTemplateResponses = {
|
|
15895
|
+
/**
|
|
15896
|
+
* OK
|
|
15897
|
+
*/
|
|
15898
|
+
200: ImageFaceFixOutput;
|
|
15899
|
+
};
|
|
15900
|
+
export type InvokeImageFaceFixStepTemplateResponse =
|
|
15901
|
+
InvokeImageFaceFixStepTemplateResponses[keyof InvokeImageFaceFixStepTemplateResponses];
|
|
15520
15902
|
export type InvokeImageGenStepTemplateData = {
|
|
15521
15903
|
body?: ImageGenInput;
|
|
15522
15904
|
path?: never;
|
|
@@ -16363,6 +16745,46 @@ export type InvokeMultimodalEmbeddingStepTemplateResponses = {
|
|
|
16363
16745
|
};
|
|
16364
16746
|
export type InvokeMultimodalEmbeddingStepTemplateResponse =
|
|
16365
16747
|
InvokeMultimodalEmbeddingStepTemplateResponses[keyof InvokeMultimodalEmbeddingStepTemplateResponses];
|
|
16748
|
+
export type InvokeOcrStepTemplateData = {
|
|
16749
|
+
body?: OcrInput;
|
|
16750
|
+
path?: never;
|
|
16751
|
+
query?: {
|
|
16752
|
+
experimental?: boolean;
|
|
16753
|
+
allowMatureContent?: boolean;
|
|
16754
|
+
whatif?: boolean;
|
|
16755
|
+
ephemeral?: boolean;
|
|
16756
|
+
/**
|
|
16757
|
+
* How a workflow is paid for.
|
|
16758
|
+
*/
|
|
16759
|
+
tier?: WorkflowTier;
|
|
16760
|
+
tags?: Array<string>;
|
|
16761
|
+
};
|
|
16762
|
+
url: '/v2/consumer/recipes/ocr';
|
|
16763
|
+
};
|
|
16764
|
+
export type InvokeOcrStepTemplateErrors = {
|
|
16765
|
+
/**
|
|
16766
|
+
* Bad Request
|
|
16767
|
+
*/
|
|
16768
|
+
400: ProblemDetails;
|
|
16769
|
+
/**
|
|
16770
|
+
* Unauthorized
|
|
16771
|
+
*/
|
|
16772
|
+
401: ProblemDetails;
|
|
16773
|
+
/**
|
|
16774
|
+
* Forbidden
|
|
16775
|
+
*/
|
|
16776
|
+
403: ProblemDetails;
|
|
16777
|
+
};
|
|
16778
|
+
export type InvokeOcrStepTemplateError =
|
|
16779
|
+
InvokeOcrStepTemplateErrors[keyof InvokeOcrStepTemplateErrors];
|
|
16780
|
+
export type InvokeOcrStepTemplateResponses = {
|
|
16781
|
+
/**
|
|
16782
|
+
* OK
|
|
16783
|
+
*/
|
|
16784
|
+
200: OcrOutput;
|
|
16785
|
+
};
|
|
16786
|
+
export type InvokeOcrStepTemplateResponse =
|
|
16787
|
+
InvokeOcrStepTemplateResponses[keyof InvokeOcrStepTemplateResponses];
|
|
16366
16788
|
export type InvokePolyGenStepTemplateData = {
|
|
16367
16789
|
body?: PolyGenInput;
|
|
16368
16790
|
path?: never;
|
|
@@ -17286,6 +17708,46 @@ export type InvokeVideoUpscalerStepTemplateResponses = {
|
|
|
17286
17708
|
};
|
|
17287
17709
|
export type InvokeVideoUpscalerStepTemplateResponse =
|
|
17288
17710
|
InvokeVideoUpscalerStepTemplateResponses[keyof InvokeVideoUpscalerStepTemplateResponses];
|
|
17711
|
+
export type InvokeWasmStepTemplateData = {
|
|
17712
|
+
body?: WasmInput;
|
|
17713
|
+
path?: never;
|
|
17714
|
+
query?: {
|
|
17715
|
+
experimental?: boolean;
|
|
17716
|
+
allowMatureContent?: boolean;
|
|
17717
|
+
whatif?: boolean;
|
|
17718
|
+
ephemeral?: boolean;
|
|
17719
|
+
/**
|
|
17720
|
+
* How a workflow is paid for.
|
|
17721
|
+
*/
|
|
17722
|
+
tier?: WorkflowTier;
|
|
17723
|
+
tags?: Array<string>;
|
|
17724
|
+
};
|
|
17725
|
+
url: '/v2/consumer/recipes/wasm';
|
|
17726
|
+
};
|
|
17727
|
+
export type InvokeWasmStepTemplateErrors = {
|
|
17728
|
+
/**
|
|
17729
|
+
* Bad Request
|
|
17730
|
+
*/
|
|
17731
|
+
400: ProblemDetails;
|
|
17732
|
+
/**
|
|
17733
|
+
* Unauthorized
|
|
17734
|
+
*/
|
|
17735
|
+
401: ProblemDetails;
|
|
17736
|
+
/**
|
|
17737
|
+
* Forbidden
|
|
17738
|
+
*/
|
|
17739
|
+
403: ProblemDetails;
|
|
17740
|
+
};
|
|
17741
|
+
export type InvokeWasmStepTemplateError =
|
|
17742
|
+
InvokeWasmStepTemplateErrors[keyof InvokeWasmStepTemplateErrors];
|
|
17743
|
+
export type InvokeWasmStepTemplateResponses = {
|
|
17744
|
+
/**
|
|
17745
|
+
* OK
|
|
17746
|
+
*/
|
|
17747
|
+
200: WasmOutput;
|
|
17748
|
+
};
|
|
17749
|
+
export type InvokeWasmStepTemplateResponse =
|
|
17750
|
+
InvokeWasmStepTemplateResponses[keyof InvokeWasmStepTemplateResponses];
|
|
17289
17751
|
export type InvokeWdTaggingStepTemplateData = {
|
|
17290
17752
|
body?: WdTaggingInput;
|
|
17291
17753
|
path?: never;
|
|
@@ -345,7 +345,10 @@ export const Priority = {
|
|
|
345
345
|
LOW: 'low',
|
|
346
346
|
IDLE: 'idle',
|
|
347
347
|
};
|
|
348
|
-
export const ResourceFeeType = {
|
|
348
|
+
export const ResourceFeeType = {
|
|
349
|
+
PER_IMAGE_BUZZ: 'perImageBuzz',
|
|
350
|
+
PERCENT_OF_COMPUTE: 'percentOfCompute',
|
|
351
|
+
};
|
|
349
352
|
/**
|
|
350
353
|
* A projection of the resource collection. There is no view that lists every known resource — resources
|
|
351
354
|
* are addressed by AIR and only materialise once something asks for them.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@civitai/orchestration-client",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9",
|
|
4
4
|
"description": "Civitai's javascript client for generating ai content",
|
|
5
5
|
"packageManager": "pnpm@10.34.4",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -56,4 +56,4 @@
|
|
|
56
56
|
"publishConfig": {
|
|
57
57
|
"access": "public"
|
|
58
58
|
}
|
|
59
|
-
}
|
|
59
|
+
}
|