@civitai/orchestration-client 0.2.0-beta.104 → 0.2.0-beta.105
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.
|
@@ -1098,6 +1098,7 @@ export {
|
|
|
1098
1098
|
type QueryWorkflowsErrors,
|
|
1099
1099
|
type QueryWorkflowsResponse,
|
|
1100
1100
|
type QueryWorkflowsResponses,
|
|
1101
|
+
type QueuedResourceAvailability,
|
|
1101
1102
|
type Qwen20bCreateImageGenInput,
|
|
1102
1103
|
type Qwen20bEditImageGenInput,
|
|
1103
1104
|
type Qwen20bEditImageGenInputWritable,
|
|
@@ -1384,6 +1385,7 @@ export {
|
|
|
1384
1385
|
type WorkflowStepJobEvent,
|
|
1385
1386
|
type WorkflowStepJobEventWritable,
|
|
1386
1387
|
type WorkflowStepPreparation,
|
|
1388
|
+
type WorkflowStepPreparationResource,
|
|
1387
1389
|
type WorkflowStepQueuePosition,
|
|
1388
1390
|
type WorkflowStepTemplate,
|
|
1389
1391
|
type WorkflowStepTemplateWritable,
|
|
@@ -5589,12 +5589,20 @@ export type LightricksVideoGenInput = Omit<VideoGenInput, 'engine'> & {
|
|
|
5589
5589
|
expandPrompt?: boolean;
|
|
5590
5590
|
engine: 'lightricks';
|
|
5591
5591
|
};
|
|
5592
|
+
/**
|
|
5593
|
+
* Transferring. No queue position — it is no longer waiting.
|
|
5594
|
+
*/
|
|
5592
5595
|
export type LoadingResourceAvailability = Omit<ResourceAvailability, 'status'> & {
|
|
5593
5596
|
progress: number;
|
|
5594
5597
|
workers: number;
|
|
5595
5598
|
startedAt?: null | string;
|
|
5596
5599
|
lastProgressAt?: null | string;
|
|
5597
5600
|
etaSeconds?: null | number;
|
|
5601
|
+
lane?: Priority;
|
|
5602
|
+
/**
|
|
5603
|
+
* Inferred from reported progress over elapsed time; the worker's byte counters never leave it.
|
|
5604
|
+
*/
|
|
5605
|
+
bytesPerSecond?: null | number;
|
|
5598
5606
|
status: 'loading';
|
|
5599
5607
|
};
|
|
5600
5608
|
/**
|
|
@@ -7336,6 +7344,19 @@ export type PromptIssue = {
|
|
|
7336
7344
|
*/
|
|
7337
7345
|
severity?: null | string;
|
|
7338
7346
|
};
|
|
7347
|
+
/**
|
|
7348
|
+
* Waiting in a download lane. No progress or speed — nothing is transferring yet.
|
|
7349
|
+
*/
|
|
7350
|
+
export type QueuedResourceAvailability = Omit<ResourceAvailability, 'status'> & {
|
|
7351
|
+
queuePosition: number;
|
|
7352
|
+
lane: Priority;
|
|
7353
|
+
etaSeconds?: null | number;
|
|
7354
|
+
/**
|
|
7355
|
+
* What Civitai.Orchestration.Grains.Resources.QueuedResourceAvailability.EtaSeconds would become in the High lane. Null when already High.
|
|
7356
|
+
*/
|
|
7357
|
+
boostedEtaSeconds?: null | number;
|
|
7358
|
+
status: 'queued';
|
|
7359
|
+
};
|
|
7339
7360
|
export type Qwen20bCreateImageGenInput = Omit<
|
|
7340
7361
|
Qwen20bImageGenInput,
|
|
7341
7362
|
'engine' | 'ecosystem' | 'model' | 'operation'
|
|
@@ -8879,8 +8900,11 @@ export type TryOnUInput = {
|
|
|
8879
8900
|
export type TryOnUOutput = {
|
|
8880
8901
|
blob: Blob;
|
|
8881
8902
|
};
|
|
8903
|
+
/**
|
|
8904
|
+
* Eligible, but nothing is pulling it. A resource waiting in a download lane reports
|
|
8905
|
+
* Civitai.Orchestration.Grains.Resources.QueuedResourceAvailability instead.
|
|
8906
|
+
*/
|
|
8882
8907
|
export type UnavailableResourceAvailability = Omit<ResourceAvailability, 'status'> & {
|
|
8883
|
-
queuePosition?: null | number;
|
|
8884
8908
|
status: 'unavailable';
|
|
8885
8909
|
};
|
|
8886
8910
|
export type UnsupportedResourceAvailability = Omit<ResourceAvailability, 'status'> & {
|
|
@@ -8905,6 +8929,7 @@ export type UpdateWorkflowRequest = {
|
|
|
8905
8929
|
* Set to true to remove the mature content restriction on the workflow.
|
|
8906
8930
|
*/
|
|
8907
8931
|
allowMatureContent?: null | boolean;
|
|
8932
|
+
downloadPriority?: Priority;
|
|
8908
8933
|
};
|
|
8909
8934
|
/**
|
|
8910
8935
|
* Available statuses for updating workflows.
|
|
@@ -10102,6 +10127,7 @@ export type Workflow = {
|
|
|
10102
10127
|
* consumer reads and queries treat the workflow as gone.
|
|
10103
10128
|
*/
|
|
10104
10129
|
deletedAt?: null | string;
|
|
10130
|
+
downloadPriority?: Priority;
|
|
10105
10131
|
};
|
|
10106
10132
|
/**
|
|
10107
10133
|
* Details of a callback setup for a workflow.
|
|
@@ -10420,7 +10446,8 @@ export type WorkflowStepJobEvent = {
|
|
|
10420
10446
|
matureContent?: null | boolean;
|
|
10421
10447
|
};
|
|
10422
10448
|
/**
|
|
10423
|
-
* The resource
|
|
10449
|
+
* The resource downloads a step is waiting on while its status is preparing. Absent rather than
|
|
10450
|
+
* partially filled: without a resource and its place in the queue it says nothing the status doesn't.
|
|
10424
10451
|
*/
|
|
10425
10452
|
export type WorkflowStepPreparation = {
|
|
10426
10453
|
/**
|
|
@@ -10436,9 +10463,32 @@ export type WorkflowStepPreparation = {
|
|
|
10436
10463
|
*/
|
|
10437
10464
|
progress?: null | number;
|
|
10438
10465
|
/**
|
|
10439
|
-
* Estimated seconds until the download completes.
|
|
10466
|
+
* Estimated seconds until the download completes.
|
|
10440
10467
|
*/
|
|
10441
10468
|
etaSeconds?: null | number;
|
|
10469
|
+
lane: Priority;
|
|
10470
|
+
/**
|
|
10471
|
+
* What Civitai.Orchestration.Grains.Workflows.WorkflowStepPreparation.EtaSeconds would become in the High lane. Null when already High.
|
|
10472
|
+
*/
|
|
10473
|
+
boostedEtaSeconds?: null | number;
|
|
10474
|
+
/**
|
|
10475
|
+
* Every resource this step is waiting on, gating resource first.
|
|
10476
|
+
*/
|
|
10477
|
+
resources: Array<WorkflowStepPreparationResource>;
|
|
10478
|
+
};
|
|
10479
|
+
/**
|
|
10480
|
+
* One resource a step is waiting on. A queued resource reports a position and no progress; one that
|
|
10481
|
+
* is transferring reports the reverse.
|
|
10482
|
+
*/
|
|
10483
|
+
export type WorkflowStepPreparationResource = {
|
|
10484
|
+
resource: string;
|
|
10485
|
+
sizeBytes: number;
|
|
10486
|
+
lane: Priority;
|
|
10487
|
+
queuePosition?: null | number;
|
|
10488
|
+
progress?: null | number;
|
|
10489
|
+
bytesPerSecond?: null | number;
|
|
10490
|
+
etaSeconds?: null | number;
|
|
10491
|
+
boostedEtaSeconds?: null | number;
|
|
10442
10492
|
};
|
|
10443
10493
|
/**
|
|
10444
10494
|
* Details of a workflow step's position in the queue.
|
|
@@ -10515,6 +10565,7 @@ export type WorkflowTemplate = {
|
|
|
10515
10565
|
[key: string]: unknown;
|
|
10516
10566
|
};
|
|
10517
10567
|
nsfwLevel?: NsfwLevel;
|
|
10568
|
+
downloadPriority?: Priority;
|
|
10518
10569
|
/**
|
|
10519
10570
|
* Get or set whether this workflow is experimental
|
|
10520
10571
|
*/
|
|
@@ -12207,6 +12258,7 @@ export type WorkflowWritable = {
|
|
|
12207
12258
|
* consumer reads and queries treat the workflow as gone.
|
|
12208
12259
|
*/
|
|
12209
12260
|
deletedAt?: null | string;
|
|
12261
|
+
downloadPriority?: Priority;
|
|
12210
12262
|
};
|
|
12211
12263
|
export type WorkflowCostWritable = {
|
|
12212
12264
|
/**
|
|
@@ -14874,7 +14926,12 @@ export type UpdateWorkflowData = {
|
|
|
14874
14926
|
*/
|
|
14875
14927
|
workflowId: string;
|
|
14876
14928
|
};
|
|
14877
|
-
query?:
|
|
14929
|
+
query?: {
|
|
14930
|
+
/**
|
|
14931
|
+
* Whether to apply the update or return what it would cost.
|
|
14932
|
+
*/
|
|
14933
|
+
whatif?: boolean;
|
|
14934
|
+
};
|
|
14878
14935
|
url: '/v2/consumer/workflows/{workflowId}';
|
|
14879
14936
|
};
|
|
14880
14937
|
export type UpdateWorkflowErrors = {
|
|
@@ -14894,9 +14951,9 @@ export type UpdateWorkflowErrors = {
|
|
|
14894
14951
|
export type UpdateWorkflowError = UpdateWorkflowErrors[keyof UpdateWorkflowErrors];
|
|
14895
14952
|
export type UpdateWorkflowResponses = {
|
|
14896
14953
|
/**
|
|
14897
|
-
*
|
|
14954
|
+
* OK
|
|
14898
14955
|
*/
|
|
14899
|
-
|
|
14956
|
+
200: Workflow;
|
|
14900
14957
|
};
|
|
14901
14958
|
export type UpdateWorkflowResponse = UpdateWorkflowResponses[keyof UpdateWorkflowResponses];
|
|
14902
14959
|
export type RemoveAllWorkflowTagsData = {
|
package/package.json
CHANGED