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

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.
@@ -1,9 +1,6 @@
1
1
  export {
2
2
  addWorkflowTag,
3
- deleteApp,
4
3
  deleteWorkflow,
5
- getApp,
6
- getAppLatest,
7
4
  getBlob,
8
5
  getBlobArchive,
9
6
  getBlobContent,
@@ -24,7 +21,6 @@ export {
24
21
  invokeComfyStepTemplate,
25
22
  invokeComposeMediaStepTemplate,
26
23
  invokeConvertImageStepTemplate,
27
- invokeCustomAppStepTemplate,
28
24
  invokeCustomComfyStepTemplate,
29
25
  invokeEchoStepTemplate,
30
26
  invokeHumanoidImageMaskStepTemplate,
@@ -58,13 +54,11 @@ export {
58
54
  invokeVideoUpscalerStepTemplate,
59
55
  invokeWdTaggingStepTemplate,
60
56
  invokeXGuardModerationStepTemplate,
61
- listApps,
62
57
  type Options,
63
58
  patchWorkflow,
64
59
  patchWorkflowStep,
65
60
  queryWorkflows,
66
61
  refreshBlob,
67
- registerApp,
68
62
  removeAllWorkflowTags,
69
63
  removeWorkflowTag,
70
64
  submitWorkflow,
@@ -108,11 +102,9 @@ export {
108
102
  type AnimaImageGenInput,
109
103
  AnimalPoseBboxDetector,
110
104
  AnimalPoseEstimator,
105
+ type AnimaVariantImageGenInput,
111
106
  type AnimeRecognitionResult,
112
107
  AnylineMergeWith,
113
- type AppDefinition,
114
- type AppInvocation,
115
- type AppRequirements,
116
108
  ArchiveFormat,
117
109
  type AssistantMessage,
118
110
  type AudioBlob,
@@ -122,6 +114,7 @@ export {
122
114
  type AudioCaptioningStep,
123
115
  type AudioCaptioningStepTemplate,
124
116
  type AudioComposeMediaOutput,
117
+ type BasicAnimationsBlobs,
125
118
  type BatchOcrSafetyClassificationInput,
126
119
  type BatchOcrSafetyClassificationOutput,
127
120
  type BatchOcrSafetyClassificationResult,
@@ -162,6 +155,7 @@ export {
162
155
  CoarseMode,
163
156
  type ComfyAnimaCreateImageGenInput,
164
157
  type ComfyAnimaImageGenInput,
158
+ type ComfyAnimaVariantImageGenInput,
165
159
  type ComfyErnieImageGenInput,
166
160
  type ComfyErnieStandardCreateImageGenInput,
167
161
  type ComfyErnieStandardImageGenInput,
@@ -228,21 +222,12 @@ export {
228
222
  type ConvertImageStepTemplate,
229
223
  type CursedArrayOfTelemetryCursorAndWorkflow,
230
224
  type CursedArrayOfTelemetryCursorAndWorkflowWritable,
231
- type CustomAppInput,
232
- type CustomAppOutput,
233
- type CustomAppStep,
234
- type CustomAppStepTemplate,
235
225
  type CustomComfyHooks,
236
226
  type CustomComfyInput,
237
227
  type CustomComfyOutput,
238
228
  type CustomComfyStep,
239
229
  type CustomComfyStepTemplate,
240
230
  type CustomTextToSpeechInput,
241
- type DeleteAppData,
242
- type DeleteAppError,
243
- type DeleteAppErrors,
244
- type DeleteAppResponse,
245
- type DeleteAppResponses,
246
231
  type DeleteWorkflowData,
247
232
  type DeleteWorkflowError,
248
233
  type DeleteWorkflowErrors,
@@ -261,7 +246,6 @@ export {
261
246
  type EpochResult,
262
247
  type ErnieAiToolkitTrainingInput,
263
248
  type ErnieAiToolkitTrainingInputWritable,
264
- type ExecAppInvocation,
265
249
  type FaceDetection,
266
250
  type FaceDetectionInfo,
267
251
  type FaceRecognitionResult,
@@ -325,16 +309,6 @@ export {
325
309
  type Gemini25FlashEditImageGenInput,
326
310
  type Gemini25FlashImageGenInput,
327
311
  type GeminiImageGenInput,
328
- type GetAppData,
329
- type GetAppError,
330
- type GetAppErrors,
331
- type GetAppLatestData,
332
- type GetAppLatestError,
333
- type GetAppLatestErrors,
334
- type GetAppLatestResponse,
335
- type GetAppLatestResponses,
336
- type GetAppResponse,
337
- type GetAppResponses,
338
312
  type GetBlobArchiveData,
339
313
  type GetBlobArchiveError,
340
314
  type GetBlobArchiveErrors,
@@ -400,7 +374,6 @@ export {
400
374
  type HeadBlobResponses,
401
375
  type HiDreamO1AiToolkitTrainingInput,
402
376
  type HiDreamO1AiToolkitTrainingInputWritable,
403
- type HttpAppInvocation,
404
377
  HumanoidImageMaskCategory,
405
378
  type HumanoidImageMaskInput,
406
379
  type HumanoidImageMaskOutput,
@@ -487,11 +460,6 @@ export {
487
460
  type InvokeConvertImageStepTemplateErrors,
488
461
  type InvokeConvertImageStepTemplateResponse,
489
462
  type InvokeConvertImageStepTemplateResponses,
490
- type InvokeCustomAppStepTemplateData,
491
- type InvokeCustomAppStepTemplateError,
492
- type InvokeCustomAppStepTemplateErrors,
493
- type InvokeCustomAppStepTemplateResponse,
494
- type InvokeCustomAppStepTemplateResponses,
495
463
  type InvokeCustomComfyStepTemplateData,
496
464
  type InvokeCustomComfyStepTemplateError,
497
465
  type InvokeCustomComfyStepTemplateErrors,
@@ -680,11 +648,6 @@ export {
680
648
  LeresBoost,
681
649
  LightricksAspectRatio,
682
650
  type LightricksVideoGenInput,
683
- type ListAppsData,
684
- type ListAppsError,
685
- type ListAppsErrors,
686
- type ListAppsResponse,
687
- type ListAppsResponses,
688
651
  type Ltx23AiToolkitTrainingInput,
689
652
  type Ltx23AiToolkitTrainingInputWritable,
690
653
  type Ltx2AiToolkitTrainingInput,
@@ -891,12 +854,6 @@ export {
891
854
  type RefreshBlobErrors,
892
855
  type RefreshBlobResponse,
893
856
  type RefreshBlobResponses,
894
- type RegisterAppData,
895
- type RegisterAppError,
896
- type RegisterAppErrors,
897
- type RegisterAppRequest,
898
- type RegisterAppResponse,
899
- type RegisterAppResponses,
900
857
  type RemoveAllWorkflowTagsData,
901
858
  type RemoveAllWorkflowTagsError,
902
859
  type RemoveAllWorkflowTagsErrors,
@@ -1,3 +1,3 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
- export { addWorkflowTag, deleteApp, deleteWorkflow, getApp, getAppLatest, getBlob, getBlobArchive, getBlobContent, getBlockedContent, getConsumerBlobUploadUrl, getResource, getStreamingBlob, getWorkflow, getWorkflowStep, headBlob, invalidateUserCache, invokeAceStepAudioStepTemplate, invokeAgeClassificationStepTemplate, invokeAudioCaptioningStepTemplate, invokeBatchOcrSafetyClassificationStepTemplate, invokeBlobArchiveStepTemplate, invokeChatCompletionStepTemplate, invokeComfyStepTemplate, invokeComposeMediaStepTemplate, invokeConvertImageStepTemplate, invokeCustomAppStepTemplate, invokeCustomComfyStepTemplate, invokeEchoStepTemplate, invokeHumanoidImageMaskStepTemplate, invokeImageBackgroundRemovalStepTemplate, invokeImageGenStepTemplate, invokeImageResourceTrainingStepTemplate, invokeImageUploadStepTemplate, invokeImageUpscalerStepTemplate, invokeMediaCaptioningStepTemplate, invokeMediaHashStepTemplate, invokeMediaRatingStepTemplate, invokeModelClamScanStepTemplate, invokeModelHashStepTemplate, invokeModelParseMetadataStepTemplate, invokeModelPickleScanStepTemplate, invokePolyGenStepTemplate, invokePreprocessImageStepTemplate, invokePromptEnhancementStepTemplate, invokeRepeatStepTemplate, invokeTextToImageStepTemplate, invokeTextToSpeechStepTemplate, invokeTrainingStepTemplate, invokeTranscodeStepTemplate, invokeTranscriptionStepTemplate, invokeTryOnUStepTemplate, invokeVideoEnhancementStepTemplate, invokeVideoFrameExtractionStepTemplate, invokeVideoGenStepTemplate, invokeVideoInterpolationStepTemplate, invokeVideoMetadataStepTemplate, invokeVideoUpscalerStepTemplate, invokeWdTaggingStepTemplate, invokeXGuardModerationStepTemplate, listApps, patchWorkflow, patchWorkflowStep, queryWorkflows, refreshBlob, registerApp, removeAllWorkflowTags, removeWorkflowTag, submitWorkflow, updateWorkflow, updateWorkflowStep, uploadConsumerBlob, } from './sdk.gen';
2
+ export { addWorkflowTag, deleteWorkflow, getBlob, getBlobArchive, getBlobContent, getBlockedContent, getConsumerBlobUploadUrl, getResource, getStreamingBlob, getWorkflow, getWorkflowStep, headBlob, invalidateUserCache, invokeAceStepAudioStepTemplate, invokeAgeClassificationStepTemplate, invokeAudioCaptioningStepTemplate, invokeBatchOcrSafetyClassificationStepTemplate, invokeBlobArchiveStepTemplate, invokeChatCompletionStepTemplate, invokeComfyStepTemplate, invokeComposeMediaStepTemplate, invokeConvertImageStepTemplate, invokeCustomComfyStepTemplate, invokeEchoStepTemplate, invokeHumanoidImageMaskStepTemplate, invokeImageBackgroundRemovalStepTemplate, invokeImageGenStepTemplate, invokeImageResourceTrainingStepTemplate, invokeImageUploadStepTemplate, invokeImageUpscalerStepTemplate, invokeMediaCaptioningStepTemplate, invokeMediaHashStepTemplate, invokeMediaRatingStepTemplate, invokeModelClamScanStepTemplate, invokeModelHashStepTemplate, invokeModelParseMetadataStepTemplate, invokeModelPickleScanStepTemplate, invokePolyGenStepTemplate, invokePreprocessImageStepTemplate, invokePromptEnhancementStepTemplate, invokeRepeatStepTemplate, invokeTextToImageStepTemplate, invokeTextToSpeechStepTemplate, invokeTrainingStepTemplate, invokeTranscodeStepTemplate, invokeTranscriptionStepTemplate, invokeTryOnUStepTemplate, invokeVideoEnhancementStepTemplate, invokeVideoFrameExtractionStepTemplate, invokeVideoGenStepTemplate, invokeVideoInterpolationStepTemplate, invokeVideoMetadataStepTemplate, invokeVideoUpscalerStepTemplate, invokeWdTaggingStepTemplate, invokeXGuardModerationStepTemplate, patchWorkflow, patchWorkflowStep, queryWorkflows, refreshBlob, removeAllWorkflowTags, removeWorkflowTag, submitWorkflow, updateWorkflow, updateWorkflowStep, uploadConsumerBlob, } from './sdk.gen';
3
3
  export { AnimalPoseBboxDetector, AnimalPoseEstimator, AnylineMergeWith, ArchiveFormat, BlurRegionMode, BuzzClientAccount, CoarseMode, ComfySampler, ComfyScheduler, ContainerFormat, DensePoseColormap, DensePoseModel, DepthAnythingCheckpoint, DepthAnythingV2Checkpoint, DwPoseBboxDetector, DwPoseEstimator, FileFormat, HaiperVideoGenAspectRatio, HaiperVideoGenCameraMovement, HaiperVideoGenModel, HumanoidImageMaskCategory, ImageBackgroundRemovalFormat, ImageGenOutputFormat, ImageResouceTrainingModerationStatus, ImageTransformer, JobSupport, KlingMode, KlingModel, KlingV3Operation, KlingVideoGenAspectRatio, KlingVideoGenDuration, LeresBoost, LightricksAspectRatio, MediaContainer, MediaFit, MediaHashType, MediaOutputType, Metric3dBackbone, MiniMaxVideoGenModel, ModelClamScanStatus, ModelPickleScanStatus, NsfwLevel, OutputFormat, Priority, ResourceFeeType, SafeMode, Scheduler, SdCppSampleMethod, SdCppSchedule, SdCppUCacheMode, SeedanceModel, SeedreamVersion, SettlementCurrency, TrainingModerationStatus, TransactionType, UpdateWorkflowStatus, Veo3AspectRatio, Veo3GenerationMode, Veo3Version, ViduVideoGenModel, ViduVideoGenStyle, WorkflowStatus, WorkflowUpgradeMode, ZoeDepthEnvironment, } from './types.gen';
@@ -3,18 +3,9 @@ import type {
3
3
  AddWorkflowTagData,
4
4
  AddWorkflowTagErrors,
5
5
  AddWorkflowTagResponses,
6
- DeleteAppData,
7
- DeleteAppErrors,
8
- DeleteAppResponses,
9
6
  DeleteWorkflowData,
10
7
  DeleteWorkflowErrors,
11
8
  DeleteWorkflowResponses,
12
- GetAppData,
13
- GetAppErrors,
14
- GetAppLatestData,
15
- GetAppLatestErrors,
16
- GetAppLatestResponses,
17
- GetAppResponses,
18
9
  GetBlobArchiveData,
19
10
  GetBlobArchiveErrors,
20
11
  GetBlobArchiveResponses,
@@ -73,9 +64,6 @@ import type {
73
64
  InvokeConvertImageStepTemplateData,
74
65
  InvokeConvertImageStepTemplateErrors,
75
66
  InvokeConvertImageStepTemplateResponses,
76
- InvokeCustomAppStepTemplateData,
77
- InvokeCustomAppStepTemplateErrors,
78
- InvokeCustomAppStepTemplateResponses,
79
67
  InvokeCustomComfyStepTemplateData,
80
68
  InvokeCustomComfyStepTemplateErrors,
81
69
  InvokeCustomComfyStepTemplateResponses,
@@ -175,9 +163,6 @@ import type {
175
163
  InvokeXGuardModerationStepTemplateData,
176
164
  InvokeXGuardModerationStepTemplateErrors,
177
165
  InvokeXGuardModerationStepTemplateResponses,
178
- ListAppsData,
179
- ListAppsErrors,
180
- ListAppsResponses,
181
166
  PatchWorkflowData,
182
167
  PatchWorkflowErrors,
183
168
  PatchWorkflowResponses,
@@ -190,9 +175,6 @@ import type {
190
175
  RefreshBlobData,
191
176
  RefreshBlobErrors,
192
177
  RefreshBlobResponses,
193
- RegisterAppData,
194
- RegisterAppErrors,
195
- RegisterAppResponses,
196
178
  RemoveAllWorkflowTagsData,
197
179
  RemoveAllWorkflowTagsErrors,
198
180
  RemoveAllWorkflowTagsResponses,
@@ -228,41 +210,6 @@ export type Options<
228
210
  */
229
211
  meta?: Record<string, unknown>;
230
212
  };
231
- /**
232
- * List all apps registered by the authenticated user.
233
- */
234
- export declare const listApps: <ThrowOnError extends boolean = false>(
235
- options?: Options<ListAppsData, ThrowOnError>
236
- ) => import('./client').RequestResult<ListAppsResponses, ListAppsErrors, ThrowOnError, 'fields'>;
237
- /**
238
- * Register a new app version. Bump `version` to publish changes; the
239
- * same `(name, version)` cannot be registered twice (409).
240
- */
241
- export declare const registerApp: <ThrowOnError extends boolean = false>(
242
- options?: Options<RegisterAppData, ThrowOnError>
243
- ) => import('./client').RequestResult<
244
- RegisterAppResponses,
245
- RegisterAppErrors,
246
- ThrowOnError,
247
- 'fields'
248
- >;
249
- /**
250
- * Resolve an app by name. Returns the most recently registered version.
251
- */
252
- export declare const getAppLatest: <ThrowOnError extends boolean = false>(
253
- options: Options<GetAppLatestData, ThrowOnError>
254
- ) => import('./client').RequestResult<
255
- GetAppLatestResponses,
256
- GetAppLatestErrors,
257
- ThrowOnError,
258
- 'fields'
259
- >;
260
- export declare const deleteApp: <ThrowOnError extends boolean = false>(
261
- options: Options<DeleteAppData, ThrowOnError>
262
- ) => import('./client').RequestResult<DeleteAppResponses, DeleteAppErrors, ThrowOnError, 'fields'>;
263
- export declare const getApp: <ThrowOnError extends boolean = false>(
264
- options: Options<GetAppData, ThrowOnError>
265
- ) => import('./client').RequestResult<GetAppResponses, GetAppErrors, ThrowOnError, 'fields'>;
266
213
  /**
267
214
  * Get blob by ID. This will redirect to a cacheable content URL.
268
215
  */
@@ -465,23 +412,6 @@ export declare const invokeConvertImageStepTemplate: <ThrowOnError extends boole
465
412
  ThrowOnError,
466
413
  'fields'
467
414
  >;
468
- /**
469
- * Invokes a user-registered app (see <c>/v2/apps</c>) as a single workflow step.
470
- *
471
- * The orchestrator resolves the app by <c>owner/name@version</c>, snapshots its
472
- * /// definition (container image AIR, invocation contract, requirements) onto the
473
- * /// emitted <c>CustomAppJob</c>, and forwards the user's JSON input verbatim to
474
- * /// the container's invocation endpoint. Billing happens after execution based
475
- * /// on actual GPU-seconds the worker reports.
476
- */
477
- export declare const invokeCustomAppStepTemplate: <ThrowOnError extends boolean = false>(
478
- options?: Options<InvokeCustomAppStepTemplateData, ThrowOnError>
479
- ) => import('./client').RequestResult<
480
- InvokeCustomAppStepTemplateResponses,
481
- InvokeCustomAppStepTemplateErrors,
482
- ThrowOnError,
483
- 'fields'
484
- >;
485
415
  /**
486
416
  * CustomComfy
487
417
  *
@@ -1,54 +1,5 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
2
  import { client } from './client.gen';
3
- /**
4
- * List all apps registered by the authenticated user.
5
- */
6
- export const listApps = (options) => {
7
- var _a;
8
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).get({
9
- url: '/v2/apps',
10
- ...options,
11
- });
12
- };
13
- /**
14
- * Register a new app version. Bump `version` to publish changes; the
15
- * same `(name, version)` cannot be registered twice (409).
16
- */
17
- export const registerApp = (options) => {
18
- var _a;
19
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
20
- url: '/v2/apps',
21
- ...options,
22
- headers: {
23
- 'Content-Type': 'application/json',
24
- ...options === null || options === void 0 ? void 0 : options.headers,
25
- },
26
- });
27
- };
28
- /**
29
- * Resolve an app by name. Returns the most recently registered version.
30
- */
31
- export const getAppLatest = (options) => {
32
- var _a;
33
- return ((_a = options.client) !== null && _a !== void 0 ? _a : client).get({
34
- url: '/v2/apps/{owner}/{name}',
35
- ...options,
36
- });
37
- };
38
- export const deleteApp = (options) => {
39
- var _a;
40
- return ((_a = options.client) !== null && _a !== void 0 ? _a : client).delete({
41
- url: '/v2/apps/{owner}/{name}/{version}',
42
- ...options,
43
- });
44
- };
45
- export const getApp = (options) => {
46
- var _a;
47
- return ((_a = options.client) !== null && _a !== void 0 ? _a : client).get({
48
- url: '/v2/apps/{owner}/{name}/{version}',
49
- ...options,
50
- });
51
- };
52
3
  /**
53
4
  * Get blob by ID. This will redirect to a cacheable content URL.
54
5
  */
@@ -273,26 +224,6 @@ export const invokeConvertImageStepTemplate = (options) => {
273
224
  },
274
225
  });
275
226
  };
276
- /**
277
- * Invokes a user-registered app (see <c>/v2/apps</c>) as a single workflow step.
278
- *
279
- * The orchestrator resolves the app by <c>owner/name@version</c>, snapshots its
280
- * /// definition (container image AIR, invocation contract, requirements) onto the
281
- * /// emitted <c>CustomAppJob</c>, and forwards the user's JSON input verbatim to
282
- * /// the container's invocation endpoint. Billing happens after execution based
283
- * /// on actual GPU-seconds the worker reports.
284
- */
285
- export const invokeCustomAppStepTemplate = (options) => {
286
- var _a;
287
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
288
- url: '/v2/consumer/recipes/customApp',
289
- ...options,
290
- headers: {
291
- 'Content-Type': 'application/json',
292
- ...options === null || options === void 0 ? void 0 : options.headers,
293
- },
294
- });
295
- };
296
227
  /**
297
228
  * CustomComfy
298
229
  *
@@ -538,6 +538,21 @@ export type AnimaImageGenInput = Omit<SdCppImageGenInput, 'engine' | 'ecosystem'
538
538
  ecosystem: 'anima';
539
539
  engine: 'sdcpp';
540
540
  };
541
+ export type AnimaVariantImageGenInput = Omit<
542
+ AnimaImageGenInput,
543
+ 'engine' | 'ecosystem' | 'operation'
544
+ > & {
545
+ width?: number;
546
+ height?: number;
547
+ /**
548
+ * Either A URL, A DataURL or a Base64 string
549
+ */
550
+ image: string;
551
+ strength?: number;
552
+ operation: 'createVariant';
553
+ ecosystem: 'anima';
554
+ engine: 'sdcpp';
555
+ };
541
556
  export declare const AnimalPoseBboxDetector: {
542
557
  readonly YOLOX_L_TORCHSCRIPT_PT: 'yolox_l.torchscript.pt';
543
558
  readonly YOLOX_L_ONNX: 'yolox_l.onnx';
@@ -572,70 +587,6 @@ export declare const AnylineMergeWith: {
572
587
  readonly MANGA_LINE: 'manga_line';
573
588
  };
574
589
  export type AnylineMergeWith = (typeof AnylineMergeWith)[keyof typeof AnylineMergeWith];
575
- /**
576
- * A user-defined "app" registered against the orchestrator. Each app binds a container
577
- * image (referenced as an `oci:image` AIR) to an invocation contract and
578
- * declares its input/output JSON-schemas plus host requirements. Apps are immutable
579
- * per `(Owner, Name, Version)`; bump Civitai.Orchestration.Grains.Apps.AppDefinition.Version to publish changes.
580
- */
581
- export type AppDefinition = {
582
- /**
583
- * Owning user id. Set server-side from the auth principal on register; not
584
- * accepted from request bodies.
585
- */
586
- owner: number;
587
- name: string;
588
- version: string;
589
- /**
590
- * Container image as an AIR URN — e.g. `urn:air:oci:image:dockerhub:foo/bar@v1.0.0`.
591
- * The spine-controller's OCI image cache pulls (and locks) this for the lifetime of a claim.
592
- */
593
- image: string;
594
- invocation: AppInvocation;
595
- /**
596
- * AIRs the app needs for every invocation (models, embeddings, …). The worker
597
- * downloads/caches them before invoking and exposes them to the container under
598
- * `/mnt/resources`; their in-container paths are delivered via the injected
599
- * `_resources` map on the input JSON (and `{resource:<air>}` tokens
600
- * in exec commands). Per-invocation resources can be added via the step input's
601
- * `resources` field.
602
- */
603
- resources: Array<string>;
604
- /**
605
- * JSON-schema (draft-07) describing the shape of `CustomAppInput.Input`.
606
- * Published via `GET /v2/apps/{owner}/{name}` so SDKs can validate
607
- * client-side. v1 does not enforce server-side; the container itself is
608
- * the source of truth.
609
- */
610
- inputSchema?: null;
611
- /**
612
- * JSON-schema (draft-07) describing the shape of `CustomAppOutput.Result`.
613
- */
614
- outputSchema?: null;
615
- requirements?: AppRequirements;
616
- createdAt: string;
617
- };
618
- /**
619
- * How the worker invokes the app's container. Discriminated by `method`:
620
- * `"http"` POSTs the input to an endpoint the container serves;
621
- * `"exec"` runs a command inside the container per invocation.
622
- */
623
- export type AppInvocation = {
624
- method: string;
625
- /**
626
- * Wall-clock budget for a single invocation. Worker default applies when null.
627
- */
628
- timeoutSeconds?: null | number;
629
- };
630
- export type AppRequirements = {
631
- minVramGb?: null | number;
632
- gpuCount?: null | number;
633
- /**
634
- * Optional whitelist of GPU class names this app is willing to run on
635
- * (e.g. `["A100", "H100"]`). Empty / null means no restriction.
636
- */
637
- gpuClasses: Array<string>;
638
- };
639
590
  /**
640
591
  * Container format for a Civitai.Orchestration.Grains.Workflows.Steps.BlobArchive.BlobArchiveStep output.
641
592
  */
@@ -732,6 +683,14 @@ export type AudioComposeMediaOutput = Omit<ComposeMediaOutput, 'type'> & {
732
683
  audioBlob: AudioBlob;
733
684
  type: 'audio';
734
685
  };
686
+ export type BasicAnimationsBlobs = {
687
+ walkingModel?: Model3dBlob;
688
+ walkingFbxModel?: Model3dBlob;
689
+ walkingArmatureModel?: Model3dBlob;
690
+ runningModel?: Model3dBlob;
691
+ runningFbxModel?: Model3dBlob;
692
+ runningArmatureModel?: Model3dBlob;
693
+ };
735
694
  export type BatchOcrSafetyClassificationInput = {
736
695
  mediaUrls: Array<string>;
737
696
  };
@@ -1246,6 +1205,21 @@ export type ComfyAnimaImageGenInput = Omit<ComfyImageGenInput, 'engine' | 'ecosy
1246
1205
  ecosystem: 'anima';
1247
1206
  engine: 'comfy';
1248
1207
  };
1208
+ export type ComfyAnimaVariantImageGenInput = Omit<
1209
+ ComfyAnimaImageGenInput,
1210
+ 'engine' | 'ecosystem' | 'operation'
1211
+ > & {
1212
+ width?: number;
1213
+ height?: number;
1214
+ /**
1215
+ * Either A URL, A DataURL or a Base64 string
1216
+ */
1217
+ image: string;
1218
+ denoiseStrength?: number;
1219
+ operation: 'createVariant';
1220
+ ecosystem: 'anima';
1221
+ engine: 'comfy';
1222
+ };
1249
1223
  export type ComfyErnieImageGenInput = Omit<ComfyImageGenInput, 'engine' | 'ecosystem'> & {
1250
1224
  model: string;
1251
1225
  ecosystem: 'ernie';
@@ -2099,63 +2073,6 @@ export type CursedArrayOfTelemetryCursorAndWorkflow = {
2099
2073
  next: string;
2100
2074
  items: Array<Workflow>;
2101
2075
  };
2102
- /**
2103
- * Input for a CustomApp step.
2104
- */
2105
- export type CustomAppInput = {
2106
- /**
2107
- * Reference to the registered app. Format: `{owner}/{name}` for the latest
2108
- * published version, or `{owner}/{name}@{version}` to pin a specific one.
2109
- */
2110
- app: string;
2111
- /**
2112
- * JSON payload forwarded verbatim to the app's invocation endpoint. The
2113
- * app's published `inputSchema` describes the expected shape; the
2114
- * orchestrator does not enforce it server-side in v1 — the container is
2115
- * the source of truth. The wire format is a normal JSON object (the
2116
- * converter maps to/from a raw string in-process so Orleans/Mongo
2117
- * serialization stays trivial).
2118
- */
2119
- input: string;
2120
- /**
2121
- * Per-invocation resource AIRs, prepared on the worker in addition to the
2122
- * app's declared `resources`. In-container paths are delivered via the
2123
- * `_resources` map injected into the input JSON the app receives (and
2124
- * `{resource:<air>}` tokens in exec commands). An unparseable AIR
2125
- * fails the step at submission.
2126
- */
2127
- resources: Array<string>;
2128
- };
2129
- /**
2130
- * Output from a CustomApp step.
2131
- */
2132
- export type CustomAppOutput = {
2133
- /**
2134
- * JSON payload returned by the app. Shape is whatever the app's
2135
- * `outputSchema` declares; opaque to the orchestrator. Stored as a
2136
- * raw JSON string; the wire format on the response is a normal JSON object.
2137
- */
2138
- result?: null | string;
2139
- /**
2140
- * On-GPU active time reported by the worker, in seconds. Drives billing.
2141
- */
2142
- gpuSeconds: number;
2143
- };
2144
- /**
2145
- * Invokes a user-registered app (see `/v2/apps`) as a single workflow step.
2146
- */
2147
- export type CustomAppStep = Omit<WorkflowStep, '$type'> & {
2148
- input: CustomAppInput;
2149
- output?: CustomAppOutput;
2150
- $type: 'customApp';
2151
- };
2152
- /**
2153
- * Invokes a user-registered app (see `/v2/apps`) as a single workflow step.
2154
- */
2155
- export type CustomAppStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
2156
- input: CustomAppInput;
2157
- $type: 'customApp';
2158
- };
2159
2076
  export type CustomComfyHooks = {
2160
2077
  /**
2161
2078
  * WebSocket URL the worker forwards ComfyUI's `/ws` messages to.
@@ -2188,6 +2105,38 @@ export type CustomComfyInput = {
2188
2105
  * session affinity). Null = no preference, treated as a fresh session.
2189
2106
  */
2190
2107
  sessionId?: null | string;
2108
+ /**
2109
+ * Optional custom comfy container image, declared as an
2110
+ * `urn:air:oci:image:<source>:<repo>@<version|sha256:…>` AIR
2111
+ * (e.g. `urn:air:oci:image:ghcr:civitai/civitai-spine-comfy@v2.5.5`).
2112
+ * When set, the worker pulls and runs this image instead of its default
2113
+ * comfy image. Null = worker default.
2114
+ */
2115
+ comfyImage?: null | string;
2116
+ /**
2117
+ * Optional Civitai API token belonging to the session owner. When set,
2118
+ * the worker exposes it to the ComfyUI container as the
2119
+ * `CIVITAI_API_TOKEN` environment variable, so custom-pack recipe
2120
+ * nodes (e.g. civitai-comfy-nodes) can call the orchestrator and bill the
2121
+ * user. Sensitive: persisted on the workflow/job and forwarded to the
2122
+ * claiming worker — never log it. Null = no token exposed.
2123
+ */
2124
+ sessionOwnerApiToken?: null | string;
2125
+ /**
2126
+ * Optional minimum GPU VRAM (in GB) the claiming worker must have. The
2127
+ * scheduler only offers the job to workers whose reported host VRAM
2128
+ * (`WorkerCapabilities.HostResources.MaxVramGb`) is at least this.
2129
+ * Null = no requirement (any comfy-capable worker). Lets a session
2130
+ * request a higher-VRAM tier (e.g. 48) for heavy workflows.
2131
+ */
2132
+ minVramGb?: null | number;
2133
+ /**
2134
+ * Optional toggle for ComfyUI's Sage Attention. When true, the worker
2135
+ * launches ComfyUI with `--use-sage-attention`. Null/false = the
2136
+ * image's default (off for the cloud/slim images). The SageAttention
2137
+ * wheel is baked into the comfy images; this only flips the flag.
2138
+ */
2139
+ useSageAttention?: null | boolean;
2191
2140
  };
2192
2141
  /**
2193
2142
  * Output from a CustomComfy step.
@@ -2199,9 +2148,9 @@ export type CustomComfyOutput = {
2199
2148
  */
2200
2149
  workflow: unknown;
2201
2150
  /**
2202
- * Direct URIs to each generated asset (images, videos, etc).
2151
+ * Blobs generated by the executed workflow (images, videos, etc).
2203
2152
  */
2204
- assets: Array<string>;
2153
+ blobs: Array<Blob>;
2205
2154
  };
2206
2155
  /**
2207
2156
  * CustomComfy
@@ -2362,27 +2311,6 @@ export type ErnieAiToolkitTrainingInput = Omit<AiToolkitTrainingInput, 'engine'
2362
2311
  */
2363
2312
  batchSize?: null | number;
2364
2313
  };
2365
- /**
2366
- * Each invocation runs Civitai.Orchestration.Grains.Apps.ExecAppInvocation.Command inside the (held-alive) container —
2367
- * no server required, e.g. a plain python script. The input JSON is piped to the
2368
- * process on stdin; stdout must be the result JSON; stderr goes to logs; a
2369
- * non-zero exit code fails the invocation. The process starts fresh per
2370
- * invocation, so per-call startup cost (imports, model loads) is billed —
2371
- * prefer Civitai.Orchestration.Grains.Apps.HttpAppInvocation for heavy model serving.
2372
- */
2373
- export type ExecAppInvocation = Omit<AppInvocation, 'method'> & {
2374
- /**
2375
- * Argv executed inside the container (no shell). Arguments may embed
2376
- * `{input}` (the whole input JSON) or `{input.some.path}`
2377
- * (a value from the input; array indices are numeric segments) — tokens
2378
- * are substituted from the step's input at submission time, and an
2379
- * unresolvable token fails the step before any worker is involved.
2380
- * `{resource:<air>}` tokens resolve to the resource's
2381
- * in-container path on the worker once resources are prepared.
2382
- */
2383
- command: Array<string>;
2384
- method: 'exec';
2385
- };
2386
2314
  /**
2387
2315
  * Represents a single face detection with embeddings and landmarks.
2388
2316
  */
@@ -3161,21 +3089,6 @@ export type HiDreamO1AiToolkitTrainingInput = Omit<
3161
3089
  */
3162
3090
  batchSize?: null | number;
3163
3091
  };
3164
- /**
3165
- * The container runs a long-lived HTTP server; each invocation POSTs the input
3166
- * JSON to Civitai.Orchestration.Grains.Apps.HttpAppInvocation.Path on Civitai.Orchestration.Grains.Apps.HttpAppInvocation.Port. Best for apps with expensive
3167
- * startup (model loads) amortized across invocations.
3168
- */
3169
- export type HttpAppInvocation = Omit<AppInvocation, 'method'> & {
3170
- port: number;
3171
- path: string;
3172
- /**
3173
- * Optional health probe path. When set, the strategy GETs this on
3174
- * Civitai.Orchestration.Grains.Apps.HttpAppInvocation.Port until 2xx; when null, falls back to TCP-ready.
3175
- */
3176
- healthPath?: null | string;
3177
- method: 'http';
3178
- };
3179
3092
  export declare const HumanoidImageMaskCategory: {
3180
3093
  readonly DRESSES: 'dresses';
3181
3094
  readonly UPPER_BODY: 'upperBody';
@@ -3934,11 +3847,11 @@ export type MediaCaptioningInput = {
3934
3847
  /**
3935
3848
  * Sampling temperature for caption generation.
3936
3849
  */
3937
- temperature: number;
3850
+ temperature?: number;
3938
3851
  /**
3939
3852
  * Maximum number of tokens to generate.
3940
3853
  */
3941
- maxNewTokens: number;
3854
+ maxNewTokens?: number;
3942
3855
  /**
3943
3856
  * Optional extra instructions appended to the captioning prompt to steer
3944
3857
  * tone, structure, or formatting. Leave unset for the default caption.
@@ -4724,6 +4637,11 @@ export type PolyGenOutput = {
4724
4637
  model: Model3dBlob;
4725
4638
  fbxModel?: Model3dBlob;
4726
4639
  thumbnail?: ImageBlob;
4640
+ riggedModel?: Model3dBlob;
4641
+ riggedFbxModel?: Model3dBlob;
4642
+ animatedModel?: Model3dBlob;
4643
+ animatedFbxModel?: Model3dBlob;
4644
+ basicAnimations?: BasicAnimationsBlobs;
4727
4645
  };
4728
4646
  /**
4729
4647
  * 3D model generation
@@ -5227,16 +5145,6 @@ export type QwenImageGenInput = Omit<SdCppImageGenInput, 'engine' | 'ecosystem'>
5227
5145
  ecosystem: 'qwen';
5228
5146
  engine: 'sdcpp';
5229
5147
  };
5230
- export type RegisterAppRequest = {
5231
- name: string;
5232
- version: string;
5233
- image: string;
5234
- invocation: AppInvocation;
5235
- resources: Array<string>;
5236
- inputSchema?: null;
5237
- outputSchema?: null;
5238
- requirements?: AppRequirements;
5239
- };
5240
5148
  /**
5241
5149
  * Represents the "for" clause in a repeat step that specifies what to iterate over.
5242
5150
  */
@@ -7057,6 +6965,12 @@ export type Workflow = {
7057
6965
  * uniqueness per-user. See Civitai.Orchestration.Grains.Workflows.WorkflowTemplate.ExternalId.
7058
6966
  */
7059
6967
  externalId?: null | string;
6968
+ /**
6969
+ * Net buzz refunded because deliverable blobs were lost in the 2026-06-12 storage
6970
+ * incident (v2.20.1 wrote Default-tier blobs to the wrong store). Null = not yet
6971
+ * checked, 0 = checked and intact. A value > 0 also prevents re-charging on recovery.
6972
+ */
6973
+ lostBlobsRefund?: null | number;
7060
6974
  };
7061
6975
  /**
7062
6976
  * Details of a callback setup for a workflow.
@@ -8693,6 +8607,12 @@ export type WorkflowWritable = {
8693
8607
  * uniqueness per-user. See Civitai.Orchestration.Grains.Workflows.WorkflowTemplate.ExternalId.
8694
8608
  */
8695
8609
  externalId?: null | string;
8610
+ /**
8611
+ * Net buzz refunded because deliverable blobs were lost in the 2026-06-12 storage
8612
+ * incident (v2.20.1 wrote Default-tier blobs to the wrong store). Null = not yet
8613
+ * checked, 0 = checked and intact. A value > 0 also prevents re-charging on recovery.
8614
+ */
8615
+ lostBlobsRefund?: null | number;
8696
8616
  };
8697
8617
  export type WorkflowCostWritable = {
8698
8618
  /**
@@ -8976,145 +8896,6 @@ export type WorkflowStepTemplateWritable = {
8976
8896
  export type ChatCompletionMessageWritable = {
8977
8897
  role: string;
8978
8898
  };
8979
- export type ListAppsData = {
8980
- body?: never;
8981
- path?: never;
8982
- query?: never;
8983
- url: '/v2/apps';
8984
- };
8985
- export type ListAppsErrors = {
8986
- /**
8987
- * Unauthorized
8988
- */
8989
- 401: ProblemDetails;
8990
- };
8991
- export type ListAppsError = ListAppsErrors[keyof ListAppsErrors];
8992
- export type ListAppsResponses = {
8993
- /**
8994
- * OK
8995
- */
8996
- 200: Array<AppDefinition>;
8997
- };
8998
- export type ListAppsResponse = ListAppsResponses[keyof ListAppsResponses];
8999
- export type RegisterAppData = {
9000
- body?: RegisterAppRequest;
9001
- path?: never;
9002
- query?: never;
9003
- url: '/v2/apps';
9004
- };
9005
- export type RegisterAppErrors = {
9006
- /**
9007
- * Unauthorized
9008
- */
9009
- 401: ProblemDetails;
9010
- /**
9011
- * Conflict
9012
- */
9013
- 409: ProblemDetails;
9014
- };
9015
- export type RegisterAppError = RegisterAppErrors[keyof RegisterAppErrors];
9016
- export type RegisterAppResponses = {
9017
- /**
9018
- * Created
9019
- */
9020
- 201: AppDefinition;
9021
- };
9022
- export type RegisterAppResponse = RegisterAppResponses[keyof RegisterAppResponses];
9023
- export type GetAppLatestData = {
9024
- body?: never;
9025
- path: {
9026
- owner: number;
9027
- name: string;
9028
- };
9029
- query?: never;
9030
- url: '/v2/apps/{owner}/{name}';
9031
- };
9032
- export type GetAppLatestErrors = {
9033
- /**
9034
- * Unauthorized
9035
- */
9036
- 401: ProblemDetails;
9037
- /**
9038
- * Forbidden
9039
- */
9040
- 403: ProblemDetails;
9041
- /**
9042
- * Not Found
9043
- */
9044
- 404: ProblemDetails;
9045
- };
9046
- export type GetAppLatestError = GetAppLatestErrors[keyof GetAppLatestErrors];
9047
- export type GetAppLatestResponses = {
9048
- /**
9049
- * OK
9050
- */
9051
- 200: AppDefinition;
9052
- };
9053
- export type GetAppLatestResponse = GetAppLatestResponses[keyof GetAppLatestResponses];
9054
- export type DeleteAppData = {
9055
- body?: never;
9056
- path: {
9057
- owner: number;
9058
- name: string;
9059
- version: string;
9060
- };
9061
- query?: never;
9062
- url: '/v2/apps/{owner}/{name}/{version}';
9063
- };
9064
- export type DeleteAppErrors = {
9065
- /**
9066
- * Unauthorized
9067
- */
9068
- 401: ProblemDetails;
9069
- /**
9070
- * Forbidden
9071
- */
9072
- 403: ProblemDetails;
9073
- /**
9074
- * Not Found
9075
- */
9076
- 404: ProblemDetails;
9077
- };
9078
- export type DeleteAppError = DeleteAppErrors[keyof DeleteAppErrors];
9079
- export type DeleteAppResponses = {
9080
- /**
9081
- * No Content
9082
- */
9083
- 204: void;
9084
- };
9085
- export type DeleteAppResponse = DeleteAppResponses[keyof DeleteAppResponses];
9086
- export type GetAppData = {
9087
- body?: never;
9088
- path: {
9089
- owner: number;
9090
- name: string;
9091
- version: string;
9092
- };
9093
- query?: never;
9094
- url: '/v2/apps/{owner}/{name}/{version}';
9095
- };
9096
- export type GetAppErrors = {
9097
- /**
9098
- * Unauthorized
9099
- */
9100
- 401: ProblemDetails;
9101
- /**
9102
- * Forbidden
9103
- */
9104
- 403: ProblemDetails;
9105
- /**
9106
- * Not Found
9107
- */
9108
- 404: ProblemDetails;
9109
- };
9110
- export type GetAppError = GetAppErrors[keyof GetAppErrors];
9111
- export type GetAppResponses = {
9112
- /**
9113
- * OK
9114
- */
9115
- 200: AppDefinition;
9116
- };
9117
- export type GetAppResponse = GetAppResponses[keyof GetAppResponses];
9118
8899
  export type GetBlobData = {
9119
8900
  body?: never;
9120
8901
  path: {
@@ -9667,37 +9448,6 @@ export type InvokeConvertImageStepTemplateResponses = {
9667
9448
  };
9668
9449
  export type InvokeConvertImageStepTemplateResponse =
9669
9450
  InvokeConvertImageStepTemplateResponses[keyof InvokeConvertImageStepTemplateResponses];
9670
- export type InvokeCustomAppStepTemplateData = {
9671
- body?: CustomAppInput;
9672
- path?: never;
9673
- query?: {
9674
- experimental?: boolean;
9675
- allowMatureContent?: boolean;
9676
- whatif?: boolean;
9677
- ephemeral?: boolean;
9678
- };
9679
- url: '/v2/consumer/recipes/customApp';
9680
- };
9681
- export type InvokeCustomAppStepTemplateErrors = {
9682
- /**
9683
- * Bad Request
9684
- */
9685
- 400: ProblemDetails;
9686
- /**
9687
- * Unauthorized
9688
- */
9689
- 401: ProblemDetails;
9690
- };
9691
- export type InvokeCustomAppStepTemplateError =
9692
- InvokeCustomAppStepTemplateErrors[keyof InvokeCustomAppStepTemplateErrors];
9693
- export type InvokeCustomAppStepTemplateResponses = {
9694
- /**
9695
- * OK
9696
- */
9697
- 200: CustomAppOutput;
9698
- };
9699
- export type InvokeCustomAppStepTemplateResponse =
9700
- InvokeCustomAppStepTemplateResponses[keyof InvokeCustomAppStepTemplateResponses];
9701
9451
  export type InvokeCustomComfyStepTemplateData = {
9702
9452
  body?: CustomComfyInput;
9703
9453
  path?: never;
@@ -10932,7 +10682,7 @@ export type GetWorkflowData = {
10932
10682
  * The request may return a 202 if the clients waits for the workflow to complete and the workflow does not complete within the requested timeout.
10933
10683
  * In which case the client should use the token to query the status of the workflow.
10934
10684
  */
10935
- wait?: boolean;
10685
+ wait?: number;
10936
10686
  /**
10937
10687
  * When set to true, any blob that has mature won't be available and won't have a URL
10938
10688
  */
@@ -10956,6 +10706,10 @@ export type GetWorkflowResponses = {
10956
10706
  * OK
10957
10707
  */
10958
10708
  200: Workflow;
10709
+ /**
10710
+ * Accepted
10711
+ */
10712
+ 202: Workflow;
10959
10713
  };
10960
10714
  export type GetWorkflowResponse = GetWorkflowResponses[keyof GetWorkflowResponses];
10961
10715
  export type PatchWorkflowData = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@civitai/client",
3
- "version": "0.2.0-beta.71",
3
+ "version": "0.2.0-beta.72",
4
4
  "description": "Civitai's javascript client for generating ai content",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -54,4 +54,4 @@
54
54
  "publishConfig": {
55
55
  "access": "public"
56
56
  }
57
- }
57
+ }