@civitai/orchestration-client 0.2.6 → 0.2.8

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.
@@ -36,6 +36,7 @@ export {
36
36
  invokeConvertImageStepTemplate,
37
37
  invokeCustomComfyStepTemplate,
38
38
  invokeEchoStepTemplate,
39
+ invokeGitHubRunnerStepTemplate,
39
40
  invokeHumanoidImageMaskStepTemplate,
40
41
  invokeImageBackgroundRemovalStepTemplate,
41
42
  invokeImageGenStepTemplate,
@@ -59,6 +60,7 @@ export {
59
60
  invokeModelParseMetadataStepTemplate,
60
61
  invokeModelPickleScanStepTemplate,
61
62
  invokeMultimodalEmbeddingStepTemplate,
63
+ invokeOcrStepTemplate,
62
64
  invokePolyGenStepTemplate,
63
65
  invokePrepareResourceStepTemplate,
64
66
  invokePreprocessImageStepTemplate,
@@ -593,6 +595,10 @@ export {
593
595
  type GetWorkflowStepResponse,
594
596
  type GetWorkflowStepResponses,
595
597
  type GifOutputFormat,
598
+ type GitHubRunnerInput,
599
+ type GitHubRunnerOutput,
600
+ type GitHubRunnerStep,
601
+ type GitHubRunnerStepTemplate,
596
602
  type GoogleImageGenInput,
597
603
  type GrokCreateImageGenInput,
598
604
  type GrokEditImageGenInput,
@@ -647,6 +653,10 @@ export {
647
653
  type Ideogram45CreateFalImageGenInput,
648
654
  type Ideogram45EditFalImageGenInput,
649
655
  type Ideogram45FalImageGenInput,
656
+ type Ideogram46ContextWindowBox,
657
+ type Ideogram46CreateFalImageGenInput,
658
+ type Ideogram46EditFalImageGenInput,
659
+ type Ideogram46FalImageGenInput,
650
660
  type Ideogram4AiToolkitTrainingInput,
651
661
  type Ideogram4AiToolkitTrainingInputWritable,
652
662
  type IdolComfyPolyGenInput,
@@ -792,6 +802,11 @@ export {
792
802
  type InvokeEchoStepTemplateErrors,
793
803
  type InvokeEchoStepTemplateResponse,
794
804
  type InvokeEchoStepTemplateResponses,
805
+ type InvokeGitHubRunnerStepTemplateData,
806
+ type InvokeGitHubRunnerStepTemplateError,
807
+ type InvokeGitHubRunnerStepTemplateErrors,
808
+ type InvokeGitHubRunnerStepTemplateResponse,
809
+ type InvokeGitHubRunnerStepTemplateResponses,
795
810
  type InvokeHumanoidImageMaskStepTemplateData,
796
811
  type InvokeHumanoidImageMaskStepTemplateError,
797
812
  type InvokeHumanoidImageMaskStepTemplateErrors,
@@ -907,6 +922,11 @@ export {
907
922
  type InvokeMultimodalEmbeddingStepTemplateErrors,
908
923
  type InvokeMultimodalEmbeddingStepTemplateResponse,
909
924
  type InvokeMultimodalEmbeddingStepTemplateResponses,
925
+ type InvokeOcrStepTemplateData,
926
+ type InvokeOcrStepTemplateError,
927
+ type InvokeOcrStepTemplateErrors,
928
+ type InvokeOcrStepTemplateResponse,
929
+ type InvokeOcrStepTemplateResponses,
910
930
  type InvokePolyGenStepTemplateData,
911
931
  type InvokePolyGenStepTemplateError,
912
932
  type InvokePolyGenStepTemplateErrors,
@@ -1229,6 +1249,10 @@ export {
1229
1249
  type NanoBanana2LiteImageGenInput,
1230
1250
  type NanoBananaProImageGenInput,
1231
1251
  NsfwLevel,
1252
+ type OcrInput,
1253
+ type OcrOutput,
1254
+ type OcrStep,
1255
+ type OcrStepTemplate,
1232
1256
  type OmniSvgImageToSvgInput,
1233
1257
  type OmniVoiceTextToSpeechInput,
1234
1258
  type OpenAiDallE2CreateImageGenInput,
@@ -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, 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, 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,6 +109,9 @@ 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,
@@ -178,6 +181,9 @@ import type {
178
181
  InvokeMultimodalEmbeddingStepTemplateData,
179
182
  InvokeMultimodalEmbeddingStepTemplateErrors,
180
183
  InvokeMultimodalEmbeddingStepTemplateResponses,
184
+ InvokeOcrStepTemplateData,
185
+ InvokeOcrStepTemplateErrors,
186
+ InvokeOcrStepTemplateResponses,
181
187
  InvokePolyGenStepTemplateData,
182
188
  InvokePolyGenStepTemplateErrors,
183
189
  InvokePolyGenStepTemplateResponses,
@@ -690,6 +696,19 @@ export declare const invokeEchoStepTemplate: <ThrowOnError extends boolean = fal
690
696
  ThrowOnError,
691
697
  'fields'
692
698
  >;
699
+ /**
700
+ * GitHubRunner
701
+ *
702
+ * Runs one GitHub Actions job on a GPU worker. Its input hands over the job and its secrets, so it is restricted to managers and must be in an ephemeral workflow.
703
+ */
704
+ export declare const invokeGitHubRunnerStepTemplate: <ThrowOnError extends boolean = false>(
705
+ options?: Options<InvokeGitHubRunnerStepTemplateData, ThrowOnError>
706
+ ) => import('./client/types.gen.js').RequestResult<
707
+ InvokeGitHubRunnerStepTemplateResponses,
708
+ InvokeGitHubRunnerStepTemplateErrors,
709
+ ThrowOnError,
710
+ 'fields'
711
+ >;
693
712
  export declare const invokeHumanoidImageMaskStepTemplate: <ThrowOnError extends boolean = false>(
694
713
  options?: Options<InvokeHumanoidImageMaskStepTemplateData, ThrowOnError>
695
714
  ) => import('./client/types.gen.js').RequestResult<
@@ -974,6 +993,17 @@ export declare const invokeMultimodalEmbeddingStepTemplate: <ThrowOnError extend
974
993
  ThrowOnError,
975
994
  'fields'
976
995
  >;
996
+ /**
997
+ * Reads the text in an image as plain text, in reading order; the text is empty when the image has none.
998
+ */
999
+ export declare const invokeOcrStepTemplate: <ThrowOnError extends boolean = false>(
1000
+ options?: Options<InvokeOcrStepTemplateData, ThrowOnError>
1001
+ ) => import('./client/types.gen.js').RequestResult<
1002
+ InvokeOcrStepTemplateResponses,
1003
+ InvokeOcrStepTemplateErrors,
1004
+ ThrowOnError,
1005
+ 'fields'
1006
+ >;
977
1007
  /**
978
1008
  * 3D model generation
979
1009
  *
@@ -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 GPU worker. Its input hands over the job and its secrets, so it is restricted to managers and must be in an ephemeral workflow.
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({
@@ -750,6 +766,20 @@ export const invokeMultimodalEmbeddingStepTemplate = (options) => {
750
766
  },
751
767
  });
752
768
  };
769
+ /**
770
+ * Reads the text in an image as plain text, in reading order; the text is empty when the image has none.
771
+ */
772
+ export const invokeOcrStepTemplate = (options) => {
773
+ var _a;
774
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
775
+ url: '/v2/consumer/recipes/ocr',
776
+ ...options,
777
+ headers: {
778
+ 'Content-Type': 'application/json',
779
+ ...options === null || options === void 0 ? void 0 : options.headers,
780
+ },
781
+ });
782
+ };
753
783
  /**
754
784
  * 3D model generation
755
785
  *
@@ -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',
@@ -2085,6 +2106,7 @@ export declare const services: {
2085
2106
  readonly model: 'nano-banana-pro';
2086
2107
  },
2087
2108
  ];
2109
+ readonly OCRInput: readonly ['text', 'internal', 'ocr'];
2088
2110
  readonly OmniSvgImageToSvgInput: readonly [
2089
2111
  'image',
2090
2112
  'internal',
@@ -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,6 +178,8 @@ 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'],
@@ -239,6 +242,7 @@ export const services = {
239
242
  NanoBanana2ImageGenInput: ['image', 'partner', 'imageGen', { engine: 'google', model: 'nano-banana-2' }],
240
243
  NanoBanana2LiteImageGenInput: ['image', 'partner', 'imageGen', { engine: 'google', model: 'nano-banana-2-lite' }],
241
244
  NanoBananaProImageGenInput: ['image', 'partner', 'imageGen', { engine: 'google', model: 'nano-banana-pro' }],
245
+ OCRInput: ['text', 'internal', 'ocr'],
242
246
  OmniSvgImageToSvgInput: ['image', 'internal', 'imageToSvg', { engine: 'comfy', ecosystem: 'omnisvg' }],
243
247
  OmniVoiceTextToSpeechInput: ['audio', 'internal', 'textToSpeech', { engine: 'vllm-omni', ecosystem: 'omnivoice' }],
244
248
  OpenAIDallE2CreateImageGenInput: ['image', 'partner', 'imageGen', { engine: 'openai', model: 'dall-e-2', operation: 'createImage' }],
@@ -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.
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'
@@ -6208,7 +6311,7 @@ export type KlingVideoGenInput = Omit<VideoGenInput, 'engine'> & {
6208
6311
  };
6209
6312
  export type KohyaTrainingInput = Omit<TrainingInput, 'engine'> & {
6210
6313
  /**
6211
- * Any compatible SD1.5, SDXL (including Pony, Illustrious and NoobAI), FLUX.1 or Chroma checkpoint AIR.
6314
+ * Any compatible SD1.5, SDXL (including Pony, Illustrious and NoobAI), FLUX.1, Chroma or Anima checkpoint AIR.
6212
6315
  */
6213
6316
  model: string;
6214
6317
  /**
@@ -6270,7 +6373,7 @@ export type KohyaTrainingInput = Omit<TrainingInput, 'engine'> & {
6270
6373
  */
6271
6374
  lrSchedulerNumCycles: number;
6272
6375
  /**
6273
- * Min-SNR loss weighting; defaults to 5 for SD models and 0 for flow models.
6376
+ * Min-SNR loss weighting; defaults to 5 for SD models and 0 for flow models (FLUX.1, Chroma and Anima).
6274
6377
  */
6275
6378
  minSnrGamma?: null | number;
6276
6379
  /**
@@ -6290,7 +6393,7 @@ export type KohyaTrainingInput = Omit<TrainingInput, 'engine'> & {
6290
6393
  */
6291
6394
  optimizerType: 'AdamW' | 'AdamW8bit' | 'Adafactor' | 'Prodigy' | 'Lion' | 'Lion8bit';
6292
6395
  /**
6293
- * Train text encoder LoRAs; must match ContinueFrom coverage. FLUX supports CLIP-L; Chroma does not support this option.
6396
+ * 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
6397
  */
6295
6398
  trainTextEncoder?: null | boolean;
6296
6399
  /**
@@ -6306,7 +6409,7 @@ export type KohyaTrainingInput = Omit<TrainingInput, 'engine'> & {
6306
6409
  */
6307
6410
  clipLModel?: null | string;
6308
6411
  /**
6309
- * Optional FLUX or Chroma T5 text encoder resource override.
6412
+ * Optional text encoder resource override: T5 for FLUX or Chroma, Qwen3 for Anima.
6310
6413
  */
6311
6414
  textEncoderModel?: null | string;
6312
6415
  /**
@@ -8220,6 +8323,27 @@ export type NanoBananaProImageGenInput = Omit<GoogleImageGenInput, 'engine' | 'm
8220
8323
  images?: Array<string>;
8221
8324
  engine: 'google';
8222
8325
  };
8326
+ export type OcrInput = {
8327
+ /**
8328
+ * Image to read. URLs are imported into orchestrator blob storage before the job is queued.
8329
+ */
8330
+ image: string;
8331
+ };
8332
+ export type OcrOutput = {
8333
+ text: string;
8334
+ };
8335
+ export type OcrStep = Omit<WorkflowStep, '$type'> & {
8336
+ input: OcrInput;
8337
+ output?: OcrOutput;
8338
+ $type: 'ocr';
8339
+ };
8340
+ export type OcrStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
8341
+ /**
8342
+ * Input for the OCRStep step.
8343
+ */
8344
+ input: OcrInput;
8345
+ $type: 'ocr';
8346
+ };
8223
8347
  export type OmniSvgImageToSvgInput = Omit<ComfyImageToSvgInput, 'engine' | 'ecosystem'> & {
8224
8348
  model?: 'omnisvg-4b' | 'omnisvg-8b';
8225
8349
  maxLength?: number;
@@ -13249,7 +13373,7 @@ export type Ideogram4AiToolkitTrainingInputWritable = Omit<
13249
13373
  };
13250
13374
  export type KohyaTrainingInputWritable = Omit<TrainingInputWritable2, 'engine'> & {
13251
13375
  /**
13252
- * Any compatible SD1.5, SDXL (including Pony, Illustrious and NoobAI), FLUX.1 or Chroma checkpoint AIR.
13376
+ * Any compatible SD1.5, SDXL (including Pony, Illustrious and NoobAI), FLUX.1, Chroma or Anima checkpoint AIR.
13253
13377
  */
13254
13378
  model: string;
13255
13379
  /**
@@ -13311,7 +13435,7 @@ export type KohyaTrainingInputWritable = Omit<TrainingInputWritable2, 'engine'>
13311
13435
  */
13312
13436
  lrSchedulerNumCycles: number;
13313
13437
  /**
13314
- * Min-SNR loss weighting; defaults to 5 for SD models and 0 for flow models.
13438
+ * Min-SNR loss weighting; defaults to 5 for SD models and 0 for flow models (FLUX.1, Chroma and Anima).
13315
13439
  */
13316
13440
  minSnrGamma?: null | number;
13317
13441
  /**
@@ -13331,7 +13455,7 @@ export type KohyaTrainingInputWritable = Omit<TrainingInputWritable2, 'engine'>
13331
13455
  */
13332
13456
  optimizerType: 'AdamW' | 'AdamW8bit' | 'Adafactor' | 'Prodigy' | 'Lion' | 'Lion8bit';
13333
13457
  /**
13334
- * Train text encoder LoRAs; must match ContinueFrom coverage. FLUX supports CLIP-L; Chroma does not support this option.
13458
+ * 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
13459
  */
13336
13460
  trainTextEncoder?: null | boolean;
13337
13461
  /**
@@ -13347,7 +13471,7 @@ export type KohyaTrainingInputWritable = Omit<TrainingInputWritable2, 'engine'>
13347
13471
  */
13348
13472
  clipLModel?: null | string;
13349
13473
  /**
13350
- * Optional FLUX or Chroma T5 text encoder resource override.
13474
+ * Optional text encoder resource override: T5 for FLUX or Chroma, Qwen3 for Anima.
13351
13475
  */
13352
13476
  textEncoderModel?: null | string;
13353
13477
  /**
@@ -15437,6 +15561,46 @@ export type InvokeEchoStepTemplateResponses = {
15437
15561
  };
15438
15562
  export type InvokeEchoStepTemplateResponse =
15439
15563
  InvokeEchoStepTemplateResponses[keyof InvokeEchoStepTemplateResponses];
15564
+ export type InvokeGitHubRunnerStepTemplateData = {
15565
+ body?: GitHubRunnerInput;
15566
+ path?: never;
15567
+ query?: {
15568
+ experimental?: boolean;
15569
+ allowMatureContent?: boolean;
15570
+ whatif?: boolean;
15571
+ ephemeral?: boolean;
15572
+ /**
15573
+ * How a workflow is paid for.
15574
+ */
15575
+ tier?: WorkflowTier;
15576
+ tags?: Array<string>;
15577
+ };
15578
+ url: '/v2/consumer/recipes/gitHubRunner';
15579
+ };
15580
+ export type InvokeGitHubRunnerStepTemplateErrors = {
15581
+ /**
15582
+ * Bad Request
15583
+ */
15584
+ 400: ProblemDetails;
15585
+ /**
15586
+ * Unauthorized
15587
+ */
15588
+ 401: ProblemDetails;
15589
+ /**
15590
+ * Forbidden
15591
+ */
15592
+ 403: ProblemDetails;
15593
+ };
15594
+ export type InvokeGitHubRunnerStepTemplateError =
15595
+ InvokeGitHubRunnerStepTemplateErrors[keyof InvokeGitHubRunnerStepTemplateErrors];
15596
+ export type InvokeGitHubRunnerStepTemplateResponses = {
15597
+ /**
15598
+ * OK
15599
+ */
15600
+ 200: GitHubRunnerOutput;
15601
+ };
15602
+ export type InvokeGitHubRunnerStepTemplateResponse =
15603
+ InvokeGitHubRunnerStepTemplateResponses[keyof InvokeGitHubRunnerStepTemplateResponses];
15440
15604
  export type InvokeHumanoidImageMaskStepTemplateData = {
15441
15605
  body?: HumanoidImageMaskInput;
15442
15606
  path?: never;
@@ -16363,6 +16527,46 @@ export type InvokeMultimodalEmbeddingStepTemplateResponses = {
16363
16527
  };
16364
16528
  export type InvokeMultimodalEmbeddingStepTemplateResponse =
16365
16529
  InvokeMultimodalEmbeddingStepTemplateResponses[keyof InvokeMultimodalEmbeddingStepTemplateResponses];
16530
+ export type InvokeOcrStepTemplateData = {
16531
+ body?: OcrInput;
16532
+ path?: never;
16533
+ query?: {
16534
+ experimental?: boolean;
16535
+ allowMatureContent?: boolean;
16536
+ whatif?: boolean;
16537
+ ephemeral?: boolean;
16538
+ /**
16539
+ * How a workflow is paid for.
16540
+ */
16541
+ tier?: WorkflowTier;
16542
+ tags?: Array<string>;
16543
+ };
16544
+ url: '/v2/consumer/recipes/ocr';
16545
+ };
16546
+ export type InvokeOcrStepTemplateErrors = {
16547
+ /**
16548
+ * Bad Request
16549
+ */
16550
+ 400: ProblemDetails;
16551
+ /**
16552
+ * Unauthorized
16553
+ */
16554
+ 401: ProblemDetails;
16555
+ /**
16556
+ * Forbidden
16557
+ */
16558
+ 403: ProblemDetails;
16559
+ };
16560
+ export type InvokeOcrStepTemplateError =
16561
+ InvokeOcrStepTemplateErrors[keyof InvokeOcrStepTemplateErrors];
16562
+ export type InvokeOcrStepTemplateResponses = {
16563
+ /**
16564
+ * OK
16565
+ */
16566
+ 200: OcrOutput;
16567
+ };
16568
+ export type InvokeOcrStepTemplateResponse =
16569
+ InvokeOcrStepTemplateResponses[keyof InvokeOcrStepTemplateResponses];
16366
16570
  export type InvokePolyGenStepTemplateData = {
16367
16571
  body?: PolyGenInput;
16368
16572
  path?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@civitai/orchestration-client",
3
- "version": "0.2.6",
3
+ "version": "0.2.8",
4
4
  "description": "Civitai's javascript client for generating ai content",
5
5
  "packageManager": "pnpm@10.34.4",
6
6
  "main": "dist/index.js",