@civitai/orchestration-client 0.2.0-beta.120 → 0.2.0-beta.122
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,13 +1,17 @@
|
|
|
1
1
|
export {
|
|
2
2
|
addWorkflowTag,
|
|
3
3
|
appendStreamingBlob,
|
|
4
|
+
createFund,
|
|
5
|
+
deleteFund,
|
|
4
6
|
deleteWorkflow,
|
|
7
|
+
depositIntoFund,
|
|
5
8
|
getBlob,
|
|
6
9
|
getBlobArchive,
|
|
7
10
|
getBlobContent,
|
|
8
11
|
getBlockedContent,
|
|
9
12
|
getConsumerBlobUploadUrl,
|
|
10
13
|
getFreeTier,
|
|
14
|
+
getFund,
|
|
11
15
|
getResource,
|
|
12
16
|
getService,
|
|
13
17
|
getStreamingBlob,
|
|
@@ -87,6 +91,7 @@ export {
|
|
|
87
91
|
removeAllWorkflowTags,
|
|
88
92
|
removeWorkflowTag,
|
|
89
93
|
submitWorkflow,
|
|
94
|
+
updateFund,
|
|
90
95
|
updateWorkflow,
|
|
91
96
|
updateWorkflowStep,
|
|
92
97
|
uploadConsumerBlob,
|
|
@@ -313,6 +318,10 @@ export {
|
|
|
313
318
|
type ComfyQwen21EditImageGenInput,
|
|
314
319
|
type ComfyQwen21EditImageGenInputWritable,
|
|
315
320
|
type ComfyQwen21ImageGenInput,
|
|
321
|
+
type ComfyQwen21TurboCreateImageGenInput,
|
|
322
|
+
type ComfyQwen21TurboEditImageGenInput,
|
|
323
|
+
type ComfyQwen21TurboEditImageGenInputWritable,
|
|
324
|
+
type ComfyQwen21TurboImageGenInput,
|
|
316
325
|
type ComfyQwenImageGenInput,
|
|
317
326
|
ComfySampler,
|
|
318
327
|
ComfyScheduler,
|
|
@@ -344,6 +353,11 @@ export {
|
|
|
344
353
|
type ConvertImageOutput,
|
|
345
354
|
type ConvertImageStep,
|
|
346
355
|
type ConvertImageStepTemplate,
|
|
356
|
+
type CreateFundData,
|
|
357
|
+
type CreateFundError,
|
|
358
|
+
type CreateFundErrors,
|
|
359
|
+
type CreateFundResponse,
|
|
360
|
+
type CreateFundResponses,
|
|
347
361
|
type CursedArrayOfStringAndResourceInfo,
|
|
348
362
|
type CursedArrayOfTelemetryCursorAndWorkflow,
|
|
349
363
|
type CursedArrayOfTelemetryCursorAndWorkflowWritable,
|
|
@@ -353,6 +367,11 @@ export {
|
|
|
353
367
|
type CustomComfyStepTemplate,
|
|
354
368
|
type CustomComfyUsage,
|
|
355
369
|
type CustomTextToSpeechInput,
|
|
370
|
+
type DeleteFundData,
|
|
371
|
+
type DeleteFundError,
|
|
372
|
+
type DeleteFundErrors,
|
|
373
|
+
type DeleteFundResponse,
|
|
374
|
+
type DeleteFundResponses,
|
|
356
375
|
type DeleteWorkflowData,
|
|
357
376
|
type DeleteWorkflowError,
|
|
358
377
|
type DeleteWorkflowErrors,
|
|
@@ -360,6 +379,11 @@ export {
|
|
|
360
379
|
type DeleteWorkflowResponses,
|
|
361
380
|
DensePoseColormap,
|
|
362
381
|
DensePoseModel,
|
|
382
|
+
type DepositIntoFundData,
|
|
383
|
+
type DepositIntoFundError,
|
|
384
|
+
type DepositIntoFundErrors,
|
|
385
|
+
type DepositIntoFundResponse,
|
|
386
|
+
type DepositIntoFundResponses,
|
|
363
387
|
DepthAnythingCheckpoint,
|
|
364
388
|
DepthAnythingV2Checkpoint,
|
|
365
389
|
DwPoseBboxDetector,
|
|
@@ -448,6 +472,10 @@ export {
|
|
|
448
472
|
type FreeTierModelResponse,
|
|
449
473
|
type FreeTierResponse,
|
|
450
474
|
type FreeTierWindowResponse,
|
|
475
|
+
type FundDeposit,
|
|
476
|
+
type FundResponse,
|
|
477
|
+
type FundTemplate,
|
|
478
|
+
type FundUpdate,
|
|
451
479
|
type Gemini25FlashCreateImageGenInput,
|
|
452
480
|
type Gemini25FlashEditImageGenInput,
|
|
453
481
|
type Gemini25FlashImageGenInput,
|
|
@@ -480,6 +508,11 @@ export {
|
|
|
480
508
|
type GetFreeTierErrors,
|
|
481
509
|
type GetFreeTierResponse,
|
|
482
510
|
type GetFreeTierResponses,
|
|
511
|
+
type GetFundData,
|
|
512
|
+
type GetFundError,
|
|
513
|
+
type GetFundErrors,
|
|
514
|
+
type GetFundResponse,
|
|
515
|
+
type GetFundResponses,
|
|
483
516
|
type GetResourceData,
|
|
484
517
|
type GetResourceError,
|
|
485
518
|
type GetResourceErrors,
|
|
@@ -949,6 +982,7 @@ export {
|
|
|
949
982
|
type Krea2CreateFalImageGenInput,
|
|
950
983
|
type Krea2FalImageGenInput,
|
|
951
984
|
type Krea2StyleReference,
|
|
985
|
+
type Krea3ImageGenInput,
|
|
952
986
|
type KreaCreateImageGenInput,
|
|
953
987
|
type KreaImageGenInput,
|
|
954
988
|
LeresBoost,
|
|
@@ -1397,6 +1431,11 @@ export {
|
|
|
1397
1431
|
type UniRigPolyGenInput,
|
|
1398
1432
|
type UniRigRigPolyGenInput,
|
|
1399
1433
|
type UnsupportedResourceAvailability,
|
|
1434
|
+
type UpdateFundData,
|
|
1435
|
+
type UpdateFundError,
|
|
1436
|
+
type UpdateFundErrors,
|
|
1437
|
+
type UpdateFundResponse,
|
|
1438
|
+
type UpdateFundResponses,
|
|
1400
1439
|
type UpdateWorkflowData,
|
|
1401
1440
|
type UpdateWorkflowError,
|
|
1402
1441
|
type UpdateWorkflowErrors,
|
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, deleteWorkflow, getBlob, getBlobArchive, getBlobContent, getBlockedContent, getConsumerBlobUploadUrl, getFreeTier, getResource, getService, getStreamingBlob, getWorkflow, getWorkflowStep, headBlob, ingestConsumerBlob, invalidateUserCache, invalidateUserTokens, invokeAceStepAudioStepTemplate, invokeAgeClassificationStepTemplate, invokeAudioCaptioningStepTemplate, invokeBatchOcrSafetyClassificationStepTemplate, invokeBlobArchiveStepTemplate, invokeChatCompletionStepTemplate, invokeComfyNodepackSnapshotStepTemplate, invokeComfyStepTemplate, invokeComposeMediaStepTemplate, invokeConvertImageStepTemplate, invokeCustomComfyStepTemplate, invokeEchoStepTemplate, invokeHumanoidImageMaskStepTemplate, invokeImageBackgroundRemovalStepTemplate, invokeImageGenStepTemplate, invokeImageResourceTrainingStepTemplate, invokeImageScanningStepTemplate, invokeImageToSvgStepTemplate, invokeImageUploadStepTemplate, invokeImageUpscalerStepTemplate, invokeLiveTextToSpeechStepTemplate, invokeLiveTranscriptionStepTemplate, invokeMediaCaptioningStepTemplate, invokeMediaHashStepTemplate, invokeMediaRatingStepTemplate, invokeMergeStepTemplate, invokeMiniMaxMusic3StepTemplate, invokeModel3dPreviewStepTemplate, invokeModelClamScanStepTemplate, invokeModelHashStepTemplate, invokeModelParseMetadataStepTemplate, invokeModelPickleScanStepTemplate, 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, removeAllWorkflowTags, removeWorkflowTag, submitWorkflow, updateWorkflow, updateWorkflowStep, uploadConsumerBlob, } from './sdk.gen';
|
|
2
|
+
export { addWorkflowTag, appendStreamingBlob, createFund, deleteFund, deleteWorkflow, depositIntoFund, getBlob, getBlobArchive, getBlobContent, getBlockedContent, getConsumerBlobUploadUrl, getFreeTier, getFund, getResource, getService, getStreamingBlob, getWorkflow, getWorkflowStep, headBlob, ingestConsumerBlob, invalidateUserCache, invalidateUserTokens, invokeAceStepAudioStepTemplate, invokeAgeClassificationStepTemplate, invokeAudioCaptioningStepTemplate, invokeBatchOcrSafetyClassificationStepTemplate, invokeBlobArchiveStepTemplate, invokeChatCompletionStepTemplate, invokeComfyNodepackSnapshotStepTemplate, invokeComfyStepTemplate, invokeComposeMediaStepTemplate, invokeConvertImageStepTemplate, invokeCustomComfyStepTemplate, invokeEchoStepTemplate, invokeHumanoidImageMaskStepTemplate, invokeImageBackgroundRemovalStepTemplate, invokeImageGenStepTemplate, invokeImageResourceTrainingStepTemplate, invokeImageScanningStepTemplate, invokeImageToSvgStepTemplate, invokeImageUploadStepTemplate, invokeImageUpscalerStepTemplate, invokeLiveTextToSpeechStepTemplate, invokeLiveTranscriptionStepTemplate, invokeMediaCaptioningStepTemplate, invokeMediaHashStepTemplate, invokeMediaRatingStepTemplate, invokeMergeStepTemplate, invokeMiniMaxMusic3StepTemplate, invokeModel3dPreviewStepTemplate, invokeModelClamScanStepTemplate, invokeModelHashStepTemplate, invokeModelParseMetadataStepTemplate, invokeModelPickleScanStepTemplate, 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, removeAllWorkflowTags, removeWorkflowTag, submitWorkflow, updateFund, 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, GeminiOmniModel, GeminiOmniResolution, HaiperVideoGenAspectRatio, HaiperVideoGenCameraMovement, HaiperVideoGenModel, HiDreamI1Precision, HiDreamI1Variant, HumanoidImageMaskCategory, ImageBackgroundRemovalFormat, ImageGenOutputFormat, ImageResouceTrainingModerationStatus, ImageTransformer, JobSupport, KlingMode, KlingModel, KlingV3Operation, KlingVideoGenAspectRatio, KlingVideoGenDuration, LeresBoost, LightricksAspectRatio, MediaContainer, MediaFit, MediaHashType, MediaOutputType, MergeMissingBehavior, MergeReducer, Metric3dBackbone, 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';
|
|
@@ -6,9 +6,18 @@ import type {
|
|
|
6
6
|
AppendStreamingBlobData,
|
|
7
7
|
AppendStreamingBlobErrors,
|
|
8
8
|
AppendStreamingBlobResponses,
|
|
9
|
+
CreateFundData,
|
|
10
|
+
CreateFundErrors,
|
|
11
|
+
CreateFundResponses,
|
|
12
|
+
DeleteFundData,
|
|
13
|
+
DeleteFundErrors,
|
|
14
|
+
DeleteFundResponses,
|
|
9
15
|
DeleteWorkflowData,
|
|
10
16
|
DeleteWorkflowErrors,
|
|
11
17
|
DeleteWorkflowResponses,
|
|
18
|
+
DepositIntoFundData,
|
|
19
|
+
DepositIntoFundErrors,
|
|
20
|
+
DepositIntoFundResponses,
|
|
12
21
|
GetBlobArchiveData,
|
|
13
22
|
GetBlobArchiveErrors,
|
|
14
23
|
GetBlobArchiveResponses,
|
|
@@ -25,6 +34,9 @@ import type {
|
|
|
25
34
|
GetFreeTierData,
|
|
26
35
|
GetFreeTierErrors,
|
|
27
36
|
GetFreeTierResponses,
|
|
37
|
+
GetFundData,
|
|
38
|
+
GetFundErrors,
|
|
39
|
+
GetFundResponses,
|
|
28
40
|
GetResourceData,
|
|
29
41
|
GetResourceErrors,
|
|
30
42
|
GetResourceResponses,
|
|
@@ -259,6 +271,9 @@ import type {
|
|
|
259
271
|
SubmitWorkflowData,
|
|
260
272
|
SubmitWorkflowErrors,
|
|
261
273
|
SubmitWorkflowResponses,
|
|
274
|
+
UpdateFundData,
|
|
275
|
+
UpdateFundErrors,
|
|
276
|
+
UpdateFundResponses,
|
|
262
277
|
UpdateWorkflowData,
|
|
263
278
|
UpdateWorkflowErrors,
|
|
264
279
|
UpdateWorkflowResponses,
|
|
@@ -402,6 +417,50 @@ export declare const getFreeTier: <ThrowOnError extends boolean = false>(
|
|
|
402
417
|
ThrowOnError,
|
|
403
418
|
'fields'
|
|
404
419
|
>;
|
|
420
|
+
/**
|
|
421
|
+
* The id is the only way to reach the fund, so keep it secret, in your app's state.
|
|
422
|
+
*/
|
|
423
|
+
export declare const createFund: <ThrowOnError extends boolean = false>(
|
|
424
|
+
options?: Options<CreateFundData, ThrowOnError>
|
|
425
|
+
) => import('./client').RequestResult<
|
|
426
|
+
CreateFundResponses,
|
|
427
|
+
CreateFundErrors,
|
|
428
|
+
ThrowOnError,
|
|
429
|
+
'fields'
|
|
430
|
+
>;
|
|
431
|
+
/**
|
|
432
|
+
* Whatever is left goes to Civitai, not back to the depositors. A fund is also deleted on its own at `expiresAt`.
|
|
433
|
+
*/
|
|
434
|
+
export declare const deleteFund: <ThrowOnError extends boolean = false>(
|
|
435
|
+
options: Options<DeleteFundData, ThrowOnError>
|
|
436
|
+
) => import('./client').RequestResult<
|
|
437
|
+
DeleteFundResponses,
|
|
438
|
+
DeleteFundErrors,
|
|
439
|
+
ThrowOnError,
|
|
440
|
+
'fields'
|
|
441
|
+
>;
|
|
442
|
+
export declare const getFund: <ThrowOnError extends boolean = false>(
|
|
443
|
+
options: Options<GetFundData, ThrowOnError>
|
|
444
|
+
) => import('./client').RequestResult<GetFundResponses, GetFundErrors, ThrowOnError, 'fields'>;
|
|
445
|
+
/**
|
|
446
|
+
* Sets the fund to expire `ttl` from now, so a long-running session can keep rolling it over.
|
|
447
|
+
*/
|
|
448
|
+
export declare const updateFund: <ThrowOnError extends boolean = false>(
|
|
449
|
+
options: Options<UpdateFundData, ThrowOnError>
|
|
450
|
+
) => import('./client').RequestResult<
|
|
451
|
+
UpdateFundResponses,
|
|
452
|
+
UpdateFundErrors,
|
|
453
|
+
ThrowOnError,
|
|
454
|
+
'fields'
|
|
455
|
+
>;
|
|
456
|
+
export declare const depositIntoFund: <ThrowOnError extends boolean = false>(
|
|
457
|
+
options: Options<DepositIntoFundData, ThrowOnError>
|
|
458
|
+
) => import('./client').RequestResult<
|
|
459
|
+
DepositIntoFundResponses,
|
|
460
|
+
DepositIntoFundErrors,
|
|
461
|
+
ThrowOnError,
|
|
462
|
+
'fields'
|
|
463
|
+
>;
|
|
405
464
|
/**
|
|
406
465
|
* Generates full songs from text descriptions and structured lyrics with ACE Step 1.5.
|
|
407
466
|
*/
|
|
@@ -105,6 +105,62 @@ export const getFreeTier = (options) => {
|
|
|
105
105
|
...options,
|
|
106
106
|
});
|
|
107
107
|
};
|
|
108
|
+
/**
|
|
109
|
+
* The id is the only way to reach the fund, so keep it secret, in your app's state.
|
|
110
|
+
*/
|
|
111
|
+
export const createFund = (options) => {
|
|
112
|
+
var _a;
|
|
113
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
114
|
+
url: '/v2/consumer/funds',
|
|
115
|
+
...options,
|
|
116
|
+
headers: {
|
|
117
|
+
'Content-Type': 'application/json',
|
|
118
|
+
...options === null || options === void 0 ? void 0 : options.headers,
|
|
119
|
+
},
|
|
120
|
+
});
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* Whatever is left goes to Civitai, not back to the depositors. A fund is also deleted on its own at `expiresAt`.
|
|
124
|
+
*/
|
|
125
|
+
export const deleteFund = (options) => {
|
|
126
|
+
var _a;
|
|
127
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client).delete({
|
|
128
|
+
url: '/v2/consumer/funds/{fundId}',
|
|
129
|
+
...options,
|
|
130
|
+
});
|
|
131
|
+
};
|
|
132
|
+
export const getFund = (options) => {
|
|
133
|
+
var _a;
|
|
134
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client).get({
|
|
135
|
+
url: '/v2/consumer/funds/{fundId}',
|
|
136
|
+
...options,
|
|
137
|
+
});
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* Sets the fund to expire `ttl` from now, so a long-running session can keep rolling it over.
|
|
141
|
+
*/
|
|
142
|
+
export const updateFund = (options) => {
|
|
143
|
+
var _a;
|
|
144
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client).patch({
|
|
145
|
+
url: '/v2/consumer/funds/{fundId}',
|
|
146
|
+
...options,
|
|
147
|
+
headers: {
|
|
148
|
+
'Content-Type': 'application/json-patch+json',
|
|
149
|
+
...options.headers,
|
|
150
|
+
},
|
|
151
|
+
});
|
|
152
|
+
};
|
|
153
|
+
export const depositIntoFund = (options) => {
|
|
154
|
+
var _a;
|
|
155
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
156
|
+
url: '/v2/consumer/funds/{fundId}/deposits',
|
|
157
|
+
...options,
|
|
158
|
+
headers: {
|
|
159
|
+
'Content-Type': 'application/json',
|
|
160
|
+
...options.headers,
|
|
161
|
+
},
|
|
162
|
+
});
|
|
163
|
+
};
|
|
108
164
|
/**
|
|
109
165
|
* Generates full songs from text descriptions and structured lyrics with ACE Step 1.5.
|
|
110
166
|
*/
|