@civitai/client 0.1.5-beta.0 → 0.1.6-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/schemas.gen.d.ts +109 -0
- package/dist/generated/schemas.gen.js +111 -2
- package/dist/generated/types.gen.d.ts +73 -18
- package/dist/generated/types.gen.js +13 -10
- package/package.json +3 -2
|
@@ -1,3 +1,106 @@
|
|
|
1
|
+
export declare const $ComfyInput: {
|
|
2
|
+
readonly required: readonly ['comfyWorkflow'];
|
|
3
|
+
readonly type: 'object';
|
|
4
|
+
readonly properties: {
|
|
5
|
+
readonly comfyWorkflow: {
|
|
6
|
+
readonly description: 'Get the comfy workflow that needs to be executed';
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
readonly additionalProperties: false;
|
|
10
|
+
};
|
|
11
|
+
export declare const $ComfyOutput: {
|
|
12
|
+
readonly type: 'object';
|
|
13
|
+
readonly additionalProperties: false;
|
|
14
|
+
};
|
|
15
|
+
export declare const $ComfyStep: {
|
|
16
|
+
readonly required: readonly ['$type', 'input', 'name'];
|
|
17
|
+
readonly type: 'object';
|
|
18
|
+
readonly allOf: readonly [
|
|
19
|
+
{
|
|
20
|
+
readonly $ref: '#/components/schemas/WorkflowStep';
|
|
21
|
+
},
|
|
22
|
+
];
|
|
23
|
+
readonly properties: {
|
|
24
|
+
readonly name: {
|
|
25
|
+
readonly minLength: 1;
|
|
26
|
+
readonly type: 'string';
|
|
27
|
+
readonly description: 'The name of the workflow step. Used to allow steps to refer to one another.';
|
|
28
|
+
};
|
|
29
|
+
readonly priority: {
|
|
30
|
+
readonly $ref: '#/components/schemas/Priority';
|
|
31
|
+
};
|
|
32
|
+
readonly timeout: {
|
|
33
|
+
readonly type: 'string';
|
|
34
|
+
readonly description: 'The maximum time to wait for this step to complete.';
|
|
35
|
+
readonly nullable: true;
|
|
36
|
+
readonly example: '00:00:00';
|
|
37
|
+
};
|
|
38
|
+
readonly retries: {
|
|
39
|
+
readonly type: 'integer';
|
|
40
|
+
readonly description: 'The maximum number of times this step should be retried.';
|
|
41
|
+
readonly format: 'int32';
|
|
42
|
+
readonly nullable: true;
|
|
43
|
+
};
|
|
44
|
+
readonly jobs: {
|
|
45
|
+
readonly type: 'array';
|
|
46
|
+
readonly items: {
|
|
47
|
+
readonly $ref: '#/components/schemas/WorkflowStepJob';
|
|
48
|
+
};
|
|
49
|
+
readonly description: 'The jobs generated by this step.';
|
|
50
|
+
};
|
|
51
|
+
readonly status: {
|
|
52
|
+
readonly $ref: '#/components/schemas/WorkflowStatus';
|
|
53
|
+
};
|
|
54
|
+
readonly startedAt: {
|
|
55
|
+
readonly type: 'string';
|
|
56
|
+
readonly description: 'The date / time the step was started. Null if not yet started.';
|
|
57
|
+
readonly format: 'date-time';
|
|
58
|
+
readonly nullable: true;
|
|
59
|
+
};
|
|
60
|
+
readonly completedAt: {
|
|
61
|
+
readonly type: 'string';
|
|
62
|
+
readonly description: 'The date / time the step was completed. Null if not yet completed.';
|
|
63
|
+
readonly format: 'date-time';
|
|
64
|
+
readonly nullable: true;
|
|
65
|
+
};
|
|
66
|
+
readonly metadata: {
|
|
67
|
+
readonly type: 'object';
|
|
68
|
+
readonly additionalProperties: {};
|
|
69
|
+
readonly description: 'A collection of user defined metadata for the workflow step.';
|
|
70
|
+
readonly nullable: true;
|
|
71
|
+
};
|
|
72
|
+
readonly input: {
|
|
73
|
+
readonly $ref: '#/components/schemas/ComfyInput';
|
|
74
|
+
};
|
|
75
|
+
readonly output: {
|
|
76
|
+
readonly $ref: '#/components/schemas/ComfyOutput';
|
|
77
|
+
};
|
|
78
|
+
readonly $type: {
|
|
79
|
+
readonly enum: readonly ['comfy'];
|
|
80
|
+
readonly type: 'string';
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
readonly additionalProperties: false;
|
|
84
|
+
};
|
|
85
|
+
export declare const $ComfyStepTemplate: {
|
|
86
|
+
readonly required: readonly ['$type', 'input'];
|
|
87
|
+
readonly type: 'object';
|
|
88
|
+
readonly allOf: readonly [
|
|
89
|
+
{
|
|
90
|
+
readonly $ref: '#/components/schemas/WorkflowStepTemplate';
|
|
91
|
+
},
|
|
92
|
+
];
|
|
93
|
+
readonly properties: {
|
|
94
|
+
readonly $type: {
|
|
95
|
+
readonly enum: readonly ['comfy'];
|
|
96
|
+
readonly type: 'string';
|
|
97
|
+
};
|
|
98
|
+
readonly input: {
|
|
99
|
+
readonly $ref: '#/components/schemas/ComfyInput';
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
readonly additionalProperties: false;
|
|
103
|
+
};
|
|
1
104
|
export declare const $ConfigurationOptions: {
|
|
2
105
|
readonly required: readonly ['selector', 'spec'];
|
|
3
106
|
readonly type: 'object';
|
|
@@ -1749,6 +1852,10 @@ export declare const $WorkerDetails: {
|
|
|
1749
1852
|
readonly description: 'The rate at which this worker has been evicting resources';
|
|
1750
1853
|
readonly format: 'double';
|
|
1751
1854
|
};
|
|
1855
|
+
readonly succeededThroughputSum: {
|
|
1856
|
+
readonly type: 'string';
|
|
1857
|
+
readonly nullable: true;
|
|
1858
|
+
};
|
|
1752
1859
|
};
|
|
1753
1860
|
readonly additionalProperties: false;
|
|
1754
1861
|
readonly description: 'Details for a particular worker.';
|
|
@@ -2228,6 +2335,7 @@ export declare const $WorkflowStep: {
|
|
|
2228
2335
|
readonly textToImage: '#/components/schemas/TextToImageStep';
|
|
2229
2336
|
readonly imageResourceTraining: '#/components/schemas/ImageResourceTrainingStep';
|
|
2230
2337
|
readonly echo: '#/components/schemas/EchoStep';
|
|
2338
|
+
readonly comfy: '#/components/schemas/ComfyStep';
|
|
2231
2339
|
};
|
|
2232
2340
|
};
|
|
2233
2341
|
};
|
|
@@ -2395,6 +2503,7 @@ export declare const $WorkflowStepTemplate: {
|
|
|
2395
2503
|
readonly textToImage: '#/components/schemas/TextToImageStepTemplate';
|
|
2396
2504
|
readonly imageResourceTraining: '#/components/schemas/ImageResourceTrainingStepTemplate';
|
|
2397
2505
|
readonly echo: '#/components/schemas/EchoStepTemplate';
|
|
2506
|
+
readonly comfy: '#/components/schemas/ComfyStepTemplate';
|
|
2398
2507
|
};
|
|
2399
2508
|
};
|
|
2400
2509
|
};
|
|
@@ -1,8 +1,111 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.$
|
|
5
|
-
exports.$WorkflowTemplate = exports.$WorkflowStepTemplate = exports.$WorkflowStepJobQueuePosition = exports.$WorkflowStepJobEvent = exports.$WorkflowStepJob = exports.$WorkflowStepEvent = exports.$WorkflowStep = exports.$WorkflowStatus = exports.$WorkflowEvent = exports.$WorkflowCallback = exports.$Workflow = exports.$WorkerType = exports.$WorkerSimilaritySearchCapabilities = exports.$WorkerResourceStatus = exports.$WorkerResourceAvailability = exports.$WorkerRegistration = exports.$WorkerModelPreparationCapabilities = exports.$WorkerMediaWDTaggingCapabilities = exports.$WorkerMediaTranscodeCapabilities = exports.$WorkerMediaTaggingCapabilities = exports.$WorkerMediaMovieRatingCapabilities = exports.$WorkerMediaComfyCapabilities = exports.$WorkerMediaCapabilities = exports.$WorkerImageTransformCapabilities = exports.$WorkerImageTextToImageCapabilities = exports.$WorkerImageResourceTrainingCapabilities = exports.$WorkerImageImageToImageCapabilities = exports.$WorkerImageEmbeddingCapabilities = exports.$WorkerImageCapabilities = exports.$WorkerDetails = exports.$WorkerConfigurationCapabilities = exports.$WorkerCapabilities = void 0;
|
|
4
|
+
exports.$TranscodeStep = exports.$TranscodeOutput = exports.$TranscodeInput = exports.$TransactionInfo = exports.$TextToImageV2Job = exports.$TextToImageStepTemplate = exports.$TextToImageStep = exports.$TextToImageOutput = exports.$TextToImageJobSlot = exports.$TextToImageJob = exports.$TextToImageInput = exports.$Subscription = exports.$SimilaritySearchJob = exports.$Scheduler = exports.$ResourceInfo = exports.$ProcessingStatistics = exports.$ProblemDetails = exports.$Priority = exports.$LLMPromptAugmentationJob = exports.$LLMPromptAugmentationCapabilities = exports.$JobSupport = exports.$Job = exports.$ImageTransformer = exports.$ImageResourceTrainingStepTemplate = exports.$ImageResourceTrainingStep = exports.$ImageResourceTrainingOutput = exports.$ImageResourceTrainingJob = exports.$ImageResourceTrainingInput = exports.$ImageJobParams = exports.$ImageJobNetworkParams = exports.$ImageJobControlNet = exports.$Image = exports.$Expression = exports.$EpochResult = exports.$EcosystemElement = exports.$EchoStepTemplate = exports.$EchoStep = exports.$EchoOutput = exports.$EchoInput = exports.$DynamicAssignment = exports.$CursedArrayOfTelemetryCursorAndWorkflow = exports.$CreateWorkerResult = exports.$CreateConfigurationResult = exports.$ContainerFormat = exports.$ConfigurationStatus = exports.$ConfigurationOptions = exports.$ComfyStepTemplate = exports.$ComfyStep = exports.$ComfyOutput = exports.$ComfyInput = void 0;
|
|
5
|
+
exports.$WorkflowTemplate = exports.$WorkflowStepTemplate = exports.$WorkflowStepJobQueuePosition = exports.$WorkflowStepJobEvent = exports.$WorkflowStepJob = exports.$WorkflowStepEvent = exports.$WorkflowStep = exports.$WorkflowStatus = exports.$WorkflowEvent = exports.$WorkflowCallback = exports.$Workflow = exports.$WorkerType = exports.$WorkerSimilaritySearchCapabilities = exports.$WorkerResourceStatus = exports.$WorkerResourceAvailability = exports.$WorkerRegistration = exports.$WorkerModelPreparationCapabilities = exports.$WorkerMediaWDTaggingCapabilities = exports.$WorkerMediaTranscodeCapabilities = exports.$WorkerMediaTaggingCapabilities = exports.$WorkerMediaMovieRatingCapabilities = exports.$WorkerMediaComfyCapabilities = exports.$WorkerMediaCapabilities = exports.$WorkerImageTransformCapabilities = exports.$WorkerImageTextToImageCapabilities = exports.$WorkerImageResourceTrainingCapabilities = exports.$WorkerImageImageToImageCapabilities = exports.$WorkerImageEmbeddingCapabilities = exports.$WorkerImageCapabilities = exports.$WorkerDetails = exports.$WorkerConfigurationCapabilities = exports.$WorkerCapabilities = exports.$UpdateWorkflowStepRequest = exports.$UpdateWorkflowStatus = exports.$UpdateWorkflowRequest = exports.$TranscodeStepTemplate = void 0;
|
|
6
|
+
exports.$ComfyInput = {
|
|
7
|
+
required: ['comfyWorkflow'],
|
|
8
|
+
type: 'object',
|
|
9
|
+
properties: {
|
|
10
|
+
comfyWorkflow: {
|
|
11
|
+
description: 'Get the comfy workflow that needs to be executed',
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
additionalProperties: false,
|
|
15
|
+
};
|
|
16
|
+
exports.$ComfyOutput = {
|
|
17
|
+
type: 'object',
|
|
18
|
+
additionalProperties: false,
|
|
19
|
+
};
|
|
20
|
+
exports.$ComfyStep = {
|
|
21
|
+
required: ['$type', 'input', 'name'],
|
|
22
|
+
type: 'object',
|
|
23
|
+
allOf: [
|
|
24
|
+
{
|
|
25
|
+
$ref: '#/components/schemas/WorkflowStep',
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
properties: {
|
|
29
|
+
name: {
|
|
30
|
+
minLength: 1,
|
|
31
|
+
type: 'string',
|
|
32
|
+
description: 'The name of the workflow step. Used to allow steps to refer to one another.',
|
|
33
|
+
},
|
|
34
|
+
priority: {
|
|
35
|
+
$ref: '#/components/schemas/Priority',
|
|
36
|
+
},
|
|
37
|
+
timeout: {
|
|
38
|
+
type: 'string',
|
|
39
|
+
description: 'The maximum time to wait for this step to complete.',
|
|
40
|
+
nullable: true,
|
|
41
|
+
example: '00:00:00',
|
|
42
|
+
},
|
|
43
|
+
retries: {
|
|
44
|
+
type: 'integer',
|
|
45
|
+
description: 'The maximum number of times this step should be retried.',
|
|
46
|
+
format: 'int32',
|
|
47
|
+
nullable: true,
|
|
48
|
+
},
|
|
49
|
+
jobs: {
|
|
50
|
+
type: 'array',
|
|
51
|
+
items: {
|
|
52
|
+
$ref: '#/components/schemas/WorkflowStepJob',
|
|
53
|
+
},
|
|
54
|
+
description: 'The jobs generated by this step.',
|
|
55
|
+
},
|
|
56
|
+
status: {
|
|
57
|
+
$ref: '#/components/schemas/WorkflowStatus',
|
|
58
|
+
},
|
|
59
|
+
startedAt: {
|
|
60
|
+
type: 'string',
|
|
61
|
+
description: 'The date / time the step was started. Null if not yet started.',
|
|
62
|
+
format: 'date-time',
|
|
63
|
+
nullable: true,
|
|
64
|
+
},
|
|
65
|
+
completedAt: {
|
|
66
|
+
type: 'string',
|
|
67
|
+
description: 'The date / time the step was completed. Null if not yet completed.',
|
|
68
|
+
format: 'date-time',
|
|
69
|
+
nullable: true,
|
|
70
|
+
},
|
|
71
|
+
metadata: {
|
|
72
|
+
type: 'object',
|
|
73
|
+
additionalProperties: {},
|
|
74
|
+
description: 'A collection of user defined metadata for the workflow step.',
|
|
75
|
+
nullable: true,
|
|
76
|
+
},
|
|
77
|
+
input: {
|
|
78
|
+
$ref: '#/components/schemas/ComfyInput',
|
|
79
|
+
},
|
|
80
|
+
output: {
|
|
81
|
+
$ref: '#/components/schemas/ComfyOutput',
|
|
82
|
+
},
|
|
83
|
+
$type: {
|
|
84
|
+
enum: ['comfy'],
|
|
85
|
+
type: 'string',
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
additionalProperties: false,
|
|
89
|
+
};
|
|
90
|
+
exports.$ComfyStepTemplate = {
|
|
91
|
+
required: ['$type', 'input'],
|
|
92
|
+
type: 'object',
|
|
93
|
+
allOf: [
|
|
94
|
+
{
|
|
95
|
+
$ref: '#/components/schemas/WorkflowStepTemplate',
|
|
96
|
+
},
|
|
97
|
+
],
|
|
98
|
+
properties: {
|
|
99
|
+
$type: {
|
|
100
|
+
enum: ['comfy'],
|
|
101
|
+
type: 'string',
|
|
102
|
+
},
|
|
103
|
+
input: {
|
|
104
|
+
$ref: '#/components/schemas/ComfyInput',
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
additionalProperties: false,
|
|
108
|
+
};
|
|
6
109
|
exports.$ConfigurationOptions = {
|
|
7
110
|
required: ['selector', 'spec'],
|
|
8
111
|
type: 'object',
|
|
@@ -1756,6 +1859,10 @@ exports.$WorkerDetails = {
|
|
|
1756
1859
|
description: 'The rate at which this worker has been evicting resources',
|
|
1757
1860
|
format: 'double',
|
|
1758
1861
|
},
|
|
1862
|
+
succeededThroughputSum: {
|
|
1863
|
+
type: 'string',
|
|
1864
|
+
nullable: true,
|
|
1865
|
+
},
|
|
1759
1866
|
},
|
|
1760
1867
|
additionalProperties: false,
|
|
1761
1868
|
description: 'Details for a particular worker.',
|
|
@@ -2229,6 +2336,7 @@ exports.$WorkflowStep = {
|
|
|
2229
2336
|
textToImage: '#/components/schemas/TextToImageStep',
|
|
2230
2337
|
imageResourceTraining: '#/components/schemas/ImageResourceTrainingStep',
|
|
2231
2338
|
echo: '#/components/schemas/EchoStep',
|
|
2339
|
+
comfy: '#/components/schemas/ComfyStep',
|
|
2232
2340
|
},
|
|
2233
2341
|
},
|
|
2234
2342
|
};
|
|
@@ -2396,6 +2504,7 @@ exports.$WorkflowStepTemplate = {
|
|
|
2396
2504
|
textToImage: '#/components/schemas/TextToImageStepTemplate',
|
|
2397
2505
|
imageResourceTraining: '#/components/schemas/ImageResourceTrainingStepTemplate',
|
|
2398
2506
|
echo: '#/components/schemas/EchoStepTemplate',
|
|
2507
|
+
comfy: '#/components/schemas/ComfyStepTemplate',
|
|
2399
2508
|
},
|
|
2400
2509
|
},
|
|
2401
2510
|
};
|
|
@@ -1,3 +1,57 @@
|
|
|
1
|
+
export type ComfyInput = {
|
|
2
|
+
/**
|
|
3
|
+
* Get the comfy workflow that needs to be executed
|
|
4
|
+
*/
|
|
5
|
+
comfyWorkflow: unknown;
|
|
6
|
+
};
|
|
7
|
+
export type ComfyOutput = {
|
|
8
|
+
[key: string]: unknown;
|
|
9
|
+
};
|
|
10
|
+
export type ComfyStep = WorkflowStep & {
|
|
11
|
+
/**
|
|
12
|
+
* The name of the workflow step. Used to allow steps to refer to one another.
|
|
13
|
+
*/
|
|
14
|
+
name: string;
|
|
15
|
+
priority?: Priority;
|
|
16
|
+
/**
|
|
17
|
+
* The maximum time to wait for this step to complete.
|
|
18
|
+
*/
|
|
19
|
+
timeout?: string | null;
|
|
20
|
+
/**
|
|
21
|
+
* The maximum number of times this step should be retried.
|
|
22
|
+
*/
|
|
23
|
+
retries?: number | null;
|
|
24
|
+
/**
|
|
25
|
+
* The jobs generated by this step.
|
|
26
|
+
*/
|
|
27
|
+
jobs?: Array<WorkflowStepJob>;
|
|
28
|
+
status?: WorkflowStatus;
|
|
29
|
+
/**
|
|
30
|
+
* The date / time the step was started. Null if not yet started.
|
|
31
|
+
*/
|
|
32
|
+
startedAt?: string | null;
|
|
33
|
+
/**
|
|
34
|
+
* The date / time the step was completed. Null if not yet completed.
|
|
35
|
+
*/
|
|
36
|
+
completedAt?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* A collection of user defined metadata for the workflow step.
|
|
39
|
+
*/
|
|
40
|
+
metadata?: {
|
|
41
|
+
[key: string]: unknown;
|
|
42
|
+
} | null;
|
|
43
|
+
input: ComfyInput;
|
|
44
|
+
output?: ComfyOutput;
|
|
45
|
+
$type: 'comfy';
|
|
46
|
+
};
|
|
47
|
+
export type $type = 'comfy';
|
|
48
|
+
export declare const $type: {
|
|
49
|
+
readonly COMFY: 'comfy';
|
|
50
|
+
};
|
|
51
|
+
export type ComfyStepTemplate = WorkflowStepTemplate & {
|
|
52
|
+
$type: 'comfy';
|
|
53
|
+
input: ComfyInput;
|
|
54
|
+
};
|
|
1
55
|
export type ConfigurationOptions = {
|
|
2
56
|
/**
|
|
3
57
|
* Get or set the priority of this configuration if multiple configurations apply to the same worker
|
|
@@ -93,8 +147,8 @@ export type EchoStep = WorkflowStep & {
|
|
|
93
147
|
output?: EchoOutput;
|
|
94
148
|
$type: 'echo';
|
|
95
149
|
};
|
|
96
|
-
export type $
|
|
97
|
-
export declare const $
|
|
150
|
+
export type $type2 = 'echo';
|
|
151
|
+
export declare const $type2: {
|
|
98
152
|
readonly ECHO: 'echo';
|
|
99
153
|
};
|
|
100
154
|
export type EchoStepTemplate = WorkflowStepTemplate & {
|
|
@@ -346,8 +400,8 @@ export type ImageResourceTrainingJob = Job & {
|
|
|
346
400
|
*/
|
|
347
401
|
claimDuration?: string;
|
|
348
402
|
};
|
|
349
|
-
export type $
|
|
350
|
-
export declare const $
|
|
403
|
+
export type $type3 = 'ImageResourceTrainingJob';
|
|
404
|
+
export declare const $type3: {
|
|
351
405
|
readonly IMAGE_RESOURCE_TRAINING_JOB: 'ImageResourceTrainingJob';
|
|
352
406
|
};
|
|
353
407
|
export type ImageResourceTrainingOutput = {
|
|
@@ -401,8 +455,8 @@ export type ImageResourceTrainingStep = WorkflowStep & {
|
|
|
401
455
|
output?: ImageResourceTrainingOutput;
|
|
402
456
|
$type: 'imageResourceTraining';
|
|
403
457
|
};
|
|
404
|
-
export type $
|
|
405
|
-
export declare const $
|
|
458
|
+
export type $type4 = 'imageResourceTraining';
|
|
459
|
+
export declare const $type4: {
|
|
406
460
|
readonly IMAGE_RESOURCE_TRAINING: 'imageResourceTraining';
|
|
407
461
|
};
|
|
408
462
|
export type ImageResourceTrainingStepTemplate = WorkflowStepTemplate & {
|
|
@@ -518,8 +572,8 @@ export type LLMPromptAugmentationJob = Job & {
|
|
|
518
572
|
temp?: number;
|
|
519
573
|
$type: 'LLMPromptAugmentationJob';
|
|
520
574
|
};
|
|
521
|
-
export type $
|
|
522
|
-
export declare const $
|
|
575
|
+
export type $type5 = 'LLMPromptAugmentationJob';
|
|
576
|
+
export declare const $type5: {
|
|
523
577
|
readonly LLMPROMPT_AUGMENTATION_JOB: 'LLMPromptAugmentationJob';
|
|
524
578
|
};
|
|
525
579
|
/**
|
|
@@ -723,8 +777,8 @@ export type SimilaritySearchJob = Job & {
|
|
|
723
777
|
cost?: number;
|
|
724
778
|
$type: 'SimilaritySearchJob';
|
|
725
779
|
};
|
|
726
|
-
export type $
|
|
727
|
-
export declare const $
|
|
780
|
+
export type $type6 = 'SimilaritySearchJob';
|
|
781
|
+
export declare const $type6: {
|
|
728
782
|
readonly SIMILARITY_SEARCH_JOB: 'SimilaritySearchJob';
|
|
729
783
|
};
|
|
730
784
|
/**
|
|
@@ -837,8 +891,8 @@ export type TextToImageJob = Job & {
|
|
|
837
891
|
claimDuration?: string;
|
|
838
892
|
$type: 'TextToImageJob';
|
|
839
893
|
};
|
|
840
|
-
export type $
|
|
841
|
-
export declare const $
|
|
894
|
+
export type $type7 = 'TextToImageJob';
|
|
895
|
+
export declare const $type7: {
|
|
842
896
|
readonly TEXT_TO_IMAGE_JOB: 'TextToImageJob';
|
|
843
897
|
};
|
|
844
898
|
/**
|
|
@@ -903,8 +957,8 @@ export type TextToImageStep = WorkflowStep & {
|
|
|
903
957
|
output?: TextToImageOutput;
|
|
904
958
|
$type: 'textToImage';
|
|
905
959
|
};
|
|
906
|
-
export type $
|
|
907
|
-
export declare const $
|
|
960
|
+
export type $type8 = 'textToImage';
|
|
961
|
+
export declare const $type8: {
|
|
908
962
|
readonly TEXT_TO_IMAGE: 'textToImage';
|
|
909
963
|
};
|
|
910
964
|
export type TextToImageStepTemplate = WorkflowStepTemplate & {
|
|
@@ -941,8 +995,8 @@ export type TextToImageV2Job = Job & {
|
|
|
941
995
|
claimDuration?: string;
|
|
942
996
|
$type: 'TextToImageV2Job';
|
|
943
997
|
};
|
|
944
|
-
export type $
|
|
945
|
-
export declare const $
|
|
998
|
+
export type $type9 = 'TextToImageV2Job';
|
|
999
|
+
export declare const $type9: {
|
|
946
1000
|
readonly TEXT_TO_IMAGE_V2JOB: 'TextToImageV2Job';
|
|
947
1001
|
};
|
|
948
1002
|
/**
|
|
@@ -1023,8 +1077,8 @@ export type TranscodeStep = WorkflowStep & {
|
|
|
1023
1077
|
output?: TranscodeOutput;
|
|
1024
1078
|
$type: 'transcode';
|
|
1025
1079
|
};
|
|
1026
|
-
export type $
|
|
1027
|
-
export declare const $
|
|
1080
|
+
export type $type10 = 'transcode';
|
|
1081
|
+
export declare const $type10: {
|
|
1028
1082
|
readonly TRANSCODE: 'transcode';
|
|
1029
1083
|
};
|
|
1030
1084
|
export type TranscodeStepTemplate = WorkflowStepTemplate & {
|
|
@@ -1151,6 +1205,7 @@ export type WorkerDetails = {
|
|
|
1151
1205
|
* The rate at which this worker has been evicting resources
|
|
1152
1206
|
*/
|
|
1153
1207
|
resourceEvictionRate?: number;
|
|
1208
|
+
succeededThroughputSum?: string | null;
|
|
1154
1209
|
};
|
|
1155
1210
|
/**
|
|
1156
1211
|
* Details of a worker's image capabilities.
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.WorkflowStatus = exports.WorkerType = exports.WorkerResourceAvailability = exports.UpdateWorkflowStatus = exports.$
|
|
4
|
+
exports.WorkflowStatus = exports.WorkerType = exports.WorkerResourceAvailability = exports.UpdateWorkflowStatus = exports.$type10 = exports.$type9 = exports.$type8 = exports.$type7 = exports.$type6 = exports.Scheduler = exports.Priority = exports.$type5 = exports.JobSupport = exports.ImageTransformer = exports.$type4 = exports.$type3 = exports.$type2 = exports.ContainerFormat = exports.$type = void 0;
|
|
5
|
+
exports.$type = {
|
|
6
|
+
COMFY: 'comfy',
|
|
7
|
+
};
|
|
5
8
|
exports.ContainerFormat = {
|
|
6
9
|
MP4: 'mp4',
|
|
7
10
|
WEB_M: 'webM',
|
|
8
11
|
};
|
|
9
|
-
exports.$
|
|
12
|
+
exports.$type2 = {
|
|
10
13
|
ECHO: 'echo',
|
|
11
14
|
};
|
|
12
|
-
exports.$
|
|
15
|
+
exports.$type3 = {
|
|
13
16
|
IMAGE_RESOURCE_TRAINING_JOB: 'ImageResourceTrainingJob',
|
|
14
17
|
};
|
|
15
|
-
exports.$
|
|
18
|
+
exports.$type4 = {
|
|
16
19
|
IMAGE_RESOURCE_TRAINING: 'imageResourceTraining',
|
|
17
20
|
};
|
|
18
21
|
/**
|
|
@@ -32,7 +35,7 @@ exports.JobSupport = {
|
|
|
32
35
|
UNAVAILABLE: 'unavailable',
|
|
33
36
|
AVAILABLE: 'available',
|
|
34
37
|
};
|
|
35
|
-
exports.$
|
|
38
|
+
exports.$type5 = {
|
|
36
39
|
LLMPROMPT_AUGMENTATION_JOB: 'LLMPromptAugmentationJob',
|
|
37
40
|
};
|
|
38
41
|
/**
|
|
@@ -72,19 +75,19 @@ exports.Scheduler = {
|
|
|
72
75
|
DDPM: 'ddpm',
|
|
73
76
|
DEIS: 'deis',
|
|
74
77
|
};
|
|
75
|
-
exports.$
|
|
78
|
+
exports.$type6 = {
|
|
76
79
|
SIMILARITY_SEARCH_JOB: 'SimilaritySearchJob',
|
|
77
80
|
};
|
|
78
|
-
exports.$
|
|
81
|
+
exports.$type7 = {
|
|
79
82
|
TEXT_TO_IMAGE_JOB: 'TextToImageJob',
|
|
80
83
|
};
|
|
81
|
-
exports.$
|
|
84
|
+
exports.$type8 = {
|
|
82
85
|
TEXT_TO_IMAGE: 'textToImage',
|
|
83
86
|
};
|
|
84
|
-
exports.$
|
|
87
|
+
exports.$type9 = {
|
|
85
88
|
TEXT_TO_IMAGE_V2JOB: 'TextToImageV2Job',
|
|
86
89
|
};
|
|
87
|
-
exports.$
|
|
90
|
+
exports.$type10 = {
|
|
88
91
|
TRANSCODE: 'transcode',
|
|
89
92
|
};
|
|
90
93
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@civitai/client",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6-beta.0",
|
|
4
4
|
"description": "Civitai's javascript client for generating ai content",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
"build": "tsc && eslint --fix dist",
|
|
24
24
|
"test": "jest",
|
|
25
25
|
"prepublishOnly": "npm test && npm run build",
|
|
26
|
-
"typecheck": "tsc --noEmit"
|
|
26
|
+
"typecheck": "tsc --noEmit",
|
|
27
|
+
"publish": "npm publish --tag beta"
|
|
27
28
|
},
|
|
28
29
|
"devDependencies": {
|
|
29
30
|
"@hey-api/openapi-ts": "^0.47.2",
|