@civitai/client 0.1.1-beta.0 → 0.1.3-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/client/CivitaiClient.js +1 -1
- package/dist/generated/GeneratedClient.d.ts +2 -2
- package/dist/generated/GeneratedClient.js +1 -1
- package/dist/generated/enums.gen.d.ts +6 -2
- package/dist/generated/enums.gen.js +7 -3
- package/dist/generated/schemas.gen.d.ts +248 -97
- package/dist/generated/schemas.gen.js +244 -93
- package/dist/generated/services.gen.d.ts +18 -18
- package/dist/generated/services.gen.js +17 -17
- package/dist/generated/types.gen.d.ts +145 -74
- package/package.json +3 -2
|
@@ -9,7 +9,7 @@ class CivitaiClient extends GeneratedClient_1.GeneratedClient {
|
|
|
9
9
|
super({
|
|
10
10
|
BASE: config.env === 'dev'
|
|
11
11
|
? 'https://orchestration-dev.civitai.com'
|
|
12
|
-
: 'https://orchestration
|
|
12
|
+
: 'https://orchestration.civitai.com',
|
|
13
13
|
HEADERS: { Authorization: `Bearer ${config.auth}` },
|
|
14
14
|
interceptors: {
|
|
15
15
|
request: (_b = (_a = config === null || config === void 0 ? void 0 : config.interceptors) === null || _a === void 0 ? void 0 : _a.request) !== null && _b !== void 0 ? _b : new OpenAPI_1.Interceptors(),
|
|
@@ -2,7 +2,7 @@ import type { BaseHttpRequest } from './core/BaseHttpRequest';
|
|
|
2
2
|
import type { OpenAPIConfig } from './core/OpenAPI';
|
|
3
3
|
import { BlobsService } from './services.gen';
|
|
4
4
|
import { ConfigurationsService } from './services.gen';
|
|
5
|
-
import {
|
|
5
|
+
import { ResourcesService } from './services.gen';
|
|
6
6
|
import { WorkerJobsService } from './services.gen';
|
|
7
7
|
import { WorkersService } from './services.gen';
|
|
8
8
|
import { WorkflowsService } from './services.gen';
|
|
@@ -10,7 +10,7 @@ type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
|
10
10
|
export declare class GeneratedClient {
|
|
11
11
|
readonly blobs: BlobsService;
|
|
12
12
|
readonly configurations: ConfigurationsService;
|
|
13
|
-
readonly
|
|
13
|
+
readonly resources: ResourcesService;
|
|
14
14
|
readonly workerJobs: WorkerJobsService;
|
|
15
15
|
readonly workers: WorkersService;
|
|
16
16
|
readonly workflows: WorkflowsService;
|
|
@@ -29,7 +29,7 @@ class GeneratedClient {
|
|
|
29
29
|
});
|
|
30
30
|
this.blobs = new services_gen_1.BlobsService(this.request);
|
|
31
31
|
this.configurations = new services_gen_2.ConfigurationsService(this.request);
|
|
32
|
-
this.
|
|
32
|
+
this.resources = new services_gen_3.ResourcesService(this.request);
|
|
33
33
|
this.workerJobs = new services_gen_4.WorkerJobsService(this.request);
|
|
34
34
|
this.workers = new services_gen_5.WorkersService(this.request);
|
|
35
35
|
this.workflows = new services_gen_6.WorkflowsService(this.request);
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
export declare const ContainerFormatEnum: {
|
|
2
|
+
readonly MP4: 'mp4';
|
|
3
|
+
readonly WEB_M: 'webM';
|
|
4
|
+
};
|
|
1
5
|
export declare const $typeEnum: {
|
|
2
6
|
readonly ECHO: 'echo';
|
|
3
7
|
};
|
|
@@ -62,9 +66,9 @@ export declare const UpdateWorkflowStatusEnum: {
|
|
|
62
66
|
readonly CANCELED: 'canceled';
|
|
63
67
|
};
|
|
64
68
|
/**
|
|
65
|
-
* Options for representing the status for a
|
|
69
|
+
* Options for representing the status for a resource on a worker.
|
|
66
70
|
*/
|
|
67
|
-
export declare const
|
|
71
|
+
export declare const WorkerResourceAvailabilityEnum: {
|
|
68
72
|
readonly UNKNOWN: 'unknown';
|
|
69
73
|
readonly UNSUPPORTED: 'unsupported';
|
|
70
74
|
readonly UNAVAILABLE: 'unavailable';
|
|
@@ -1,7 +1,11 @@
|
|
|
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.WorkflowStatusEnum = exports.WorkerTypeEnum = exports.
|
|
4
|
+
exports.WorkflowStatusEnum = exports.WorkerTypeEnum = exports.WorkerResourceAvailabilityEnum = exports.UpdateWorkflowStatusEnum = exports.SchedulerEnum = exports.PriorityEnum = exports.JobSupportEnum = exports.ImageTransformerEnum = exports.$typeEnum = exports.ContainerFormatEnum = void 0;
|
|
5
|
+
exports.ContainerFormatEnum = {
|
|
6
|
+
MP4: 'mp4',
|
|
7
|
+
WEB_M: 'webM',
|
|
8
|
+
};
|
|
5
9
|
exports.$typeEnum = {
|
|
6
10
|
ECHO: 'echo',
|
|
7
11
|
};
|
|
@@ -66,9 +70,9 @@ exports.UpdateWorkflowStatusEnum = {
|
|
|
66
70
|
CANCELED: 'canceled',
|
|
67
71
|
};
|
|
68
72
|
/**
|
|
69
|
-
* Options for representing the status for a
|
|
73
|
+
* Options for representing the status for a resource on a worker.
|
|
70
74
|
*/
|
|
71
|
-
exports.
|
|
75
|
+
exports.WorkerResourceAvailabilityEnum = {
|
|
72
76
|
UNKNOWN: 'unknown',
|
|
73
77
|
UNSUPPORTED: 'unsupported',
|
|
74
78
|
UNAVAILABLE: 'unavailable',
|
|
@@ -40,6 +40,10 @@ export declare const $ConfigurationStatus: {
|
|
|
40
40
|
};
|
|
41
41
|
readonly additionalProperties: false;
|
|
42
42
|
};
|
|
43
|
+
export declare const $ContainerFormat: {
|
|
44
|
+
readonly enum: readonly ['mp4', 'webM'];
|
|
45
|
+
readonly type: 'string';
|
|
46
|
+
};
|
|
43
47
|
export declare const $CreateConfigurationResult: {
|
|
44
48
|
readonly required: readonly ['configurationId'];
|
|
45
49
|
readonly type: 'object';
|
|
@@ -829,55 +833,6 @@ export declare const $LLMPromptAugmentationJob: {
|
|
|
829
833
|
};
|
|
830
834
|
readonly additionalProperties: false;
|
|
831
835
|
};
|
|
832
|
-
export declare const $ModelInfo: {
|
|
833
|
-
readonly required: readonly ['air', 'downloadUrls', 'hashes', 'size'];
|
|
834
|
-
readonly type: 'object';
|
|
835
|
-
readonly properties: {
|
|
836
|
-
readonly air: {
|
|
837
|
-
readonly pattern: '^(?:urn:)?(?:air:)?(?:(?<ecosystem>[a-zA-Z0-9_-/]+):)?(?:(?<type>[a-zA-Z0-9_-/]+):)?(?<source>[a-zA-Z0-9_-/]+):(?<id>[a-zA-Z0-9_-/.]+)(?:@(?<version>[a-zA-Z0-9_-.]+))?(?:.(?<format>[a-zA-Z0-9_-]+))?$';
|
|
838
|
-
readonly type: 'string';
|
|
839
|
-
readonly description: 'An AIR ID for the model.';
|
|
840
|
-
};
|
|
841
|
-
readonly size: {
|
|
842
|
-
readonly type: 'integer';
|
|
843
|
-
readonly description: 'The model size in bytes.';
|
|
844
|
-
readonly format: 'int64';
|
|
845
|
-
};
|
|
846
|
-
readonly hashes: {
|
|
847
|
-
readonly type: 'object';
|
|
848
|
-
readonly additionalProperties: {
|
|
849
|
-
readonly type: 'string';
|
|
850
|
-
};
|
|
851
|
-
readonly description: 'A collection of hashes.';
|
|
852
|
-
};
|
|
853
|
-
readonly downloadUrls: {
|
|
854
|
-
readonly type: 'array';
|
|
855
|
-
readonly items: {
|
|
856
|
-
readonly type: 'string';
|
|
857
|
-
readonly format: 'uri';
|
|
858
|
-
};
|
|
859
|
-
readonly description: 'An array of download urls.';
|
|
860
|
-
};
|
|
861
|
-
readonly modelName: {
|
|
862
|
-
readonly type: 'string';
|
|
863
|
-
readonly description: 'The name of the model.';
|
|
864
|
-
readonly nullable: true;
|
|
865
|
-
};
|
|
866
|
-
readonly versionName: {
|
|
867
|
-
readonly type: 'string';
|
|
868
|
-
readonly description: 'The name of the version.';
|
|
869
|
-
readonly nullable: true;
|
|
870
|
-
};
|
|
871
|
-
readonly invalidateAt: {
|
|
872
|
-
readonly type: 'string';
|
|
873
|
-
readonly description: 'A date time to invalidate at.';
|
|
874
|
-
readonly format: 'date-time';
|
|
875
|
-
readonly nullable: true;
|
|
876
|
-
};
|
|
877
|
-
};
|
|
878
|
-
readonly additionalProperties: false;
|
|
879
|
-
readonly description: 'Details for a specific model.';
|
|
880
|
-
};
|
|
881
836
|
export declare const $Priority: {
|
|
882
837
|
readonly enum: readonly ['high', 'normal', 'low'];
|
|
883
838
|
readonly type: 'string';
|
|
@@ -987,6 +942,55 @@ export declare const $ProcessingStatistics: {
|
|
|
987
942
|
readonly additionalProperties: false;
|
|
988
943
|
readonly description: 'Details of processing statistics.';
|
|
989
944
|
};
|
|
945
|
+
export declare const $ResourceInfo: {
|
|
946
|
+
readonly required: readonly ['air', 'downloadUrls', 'hashes', 'size'];
|
|
947
|
+
readonly type: 'object';
|
|
948
|
+
readonly properties: {
|
|
949
|
+
readonly air: {
|
|
950
|
+
readonly pattern: '^(?:urn:)?(?:air:)?(?:(?<ecosystem>[a-zA-Z0-9_-/]+):)?(?:(?<type>[a-zA-Z0-9_-/]+):)?(?<source>[a-zA-Z0-9_-/]+):(?<id>[a-zA-Z0-9_-/.]+)(?:@(?<version>[a-zA-Z0-9_-.]+))?(?:.(?<format>[a-zA-Z0-9_-]+))?$';
|
|
951
|
+
readonly type: 'string';
|
|
952
|
+
readonly description: 'An AIR ID for the resource.';
|
|
953
|
+
};
|
|
954
|
+
readonly size: {
|
|
955
|
+
readonly type: 'integer';
|
|
956
|
+
readonly description: 'The resource size in bytes.';
|
|
957
|
+
readonly format: 'int64';
|
|
958
|
+
};
|
|
959
|
+
readonly hashes: {
|
|
960
|
+
readonly type: 'object';
|
|
961
|
+
readonly additionalProperties: {
|
|
962
|
+
readonly type: 'string';
|
|
963
|
+
};
|
|
964
|
+
readonly description: 'A collection of hashes.';
|
|
965
|
+
};
|
|
966
|
+
readonly downloadUrls: {
|
|
967
|
+
readonly type: 'array';
|
|
968
|
+
readonly items: {
|
|
969
|
+
readonly type: 'string';
|
|
970
|
+
readonly format: 'uri';
|
|
971
|
+
};
|
|
972
|
+
readonly description: 'An array of download urls.';
|
|
973
|
+
};
|
|
974
|
+
readonly resourceName: {
|
|
975
|
+
readonly type: 'string';
|
|
976
|
+
readonly description: 'The name of the resource.';
|
|
977
|
+
readonly nullable: true;
|
|
978
|
+
};
|
|
979
|
+
readonly versionName: {
|
|
980
|
+
readonly type: 'string';
|
|
981
|
+
readonly description: 'The name of the version.';
|
|
982
|
+
readonly nullable: true;
|
|
983
|
+
};
|
|
984
|
+
readonly invalidateAt: {
|
|
985
|
+
readonly type: 'string';
|
|
986
|
+
readonly description: 'A date time to invalidate at.';
|
|
987
|
+
readonly format: 'date-time';
|
|
988
|
+
readonly nullable: true;
|
|
989
|
+
};
|
|
990
|
+
};
|
|
991
|
+
readonly additionalProperties: false;
|
|
992
|
+
readonly description: 'Details for a specific resource.';
|
|
993
|
+
};
|
|
990
994
|
export declare const $Scheduler: {
|
|
991
995
|
readonly enum: readonly [
|
|
992
996
|
'eulerA',
|
|
@@ -1084,7 +1088,7 @@ export declare const $TextToImageInput: {
|
|
|
1084
1088
|
readonly maximum: 100;
|
|
1085
1089
|
readonly minimum: 1;
|
|
1086
1090
|
readonly type: 'integer';
|
|
1087
|
-
readonly description: '
|
|
1091
|
+
readonly description: 'The number of batches to run.';
|
|
1088
1092
|
readonly format: 'int32';
|
|
1089
1093
|
readonly default: 1;
|
|
1090
1094
|
};
|
|
@@ -1440,6 +1444,145 @@ export declare const $TransactionInfo: {
|
|
|
1440
1444
|
readonly additionalProperties: false;
|
|
1441
1445
|
readonly description: 'Transaction information.';
|
|
1442
1446
|
};
|
|
1447
|
+
export declare const $TranscodeInput: {
|
|
1448
|
+
readonly required: readonly ['sourceUrl'];
|
|
1449
|
+
readonly type: 'object';
|
|
1450
|
+
readonly properties: {
|
|
1451
|
+
readonly sourceUrl: {
|
|
1452
|
+
readonly type: 'string';
|
|
1453
|
+
readonly format: 'uri';
|
|
1454
|
+
};
|
|
1455
|
+
readonly containerFormat: {
|
|
1456
|
+
readonly $ref: '#/components/schemas/ContainerFormat';
|
|
1457
|
+
};
|
|
1458
|
+
readonly width: {
|
|
1459
|
+
readonly type: 'integer';
|
|
1460
|
+
readonly format: 'int32';
|
|
1461
|
+
};
|
|
1462
|
+
readonly destinationUrl: {
|
|
1463
|
+
readonly type: 'string';
|
|
1464
|
+
readonly format: 'uri';
|
|
1465
|
+
readonly nullable: true;
|
|
1466
|
+
};
|
|
1467
|
+
};
|
|
1468
|
+
readonly additionalProperties: false;
|
|
1469
|
+
};
|
|
1470
|
+
export declare const $TranscodeOutput: {
|
|
1471
|
+
readonly required: readonly ['available', 'id', 'jobId'];
|
|
1472
|
+
readonly type: 'object';
|
|
1473
|
+
readonly properties: {
|
|
1474
|
+
readonly id: {
|
|
1475
|
+
readonly minLength: 1;
|
|
1476
|
+
readonly type: 'string';
|
|
1477
|
+
readonly description: 'Gets the id of the blob that contains the media.';
|
|
1478
|
+
};
|
|
1479
|
+
readonly available: {
|
|
1480
|
+
readonly type: 'boolean';
|
|
1481
|
+
readonly description: 'Gets a value indicating whether the media is available.';
|
|
1482
|
+
};
|
|
1483
|
+
readonly url: {
|
|
1484
|
+
readonly type: 'string';
|
|
1485
|
+
readonly description: 'Gets a url that can be used to preview the media.';
|
|
1486
|
+
readonly format: 'uri';
|
|
1487
|
+
readonly nullable: true;
|
|
1488
|
+
};
|
|
1489
|
+
readonly urlExpiresAt: {
|
|
1490
|
+
readonly type: 'string';
|
|
1491
|
+
readonly description: 'Get when the url is set to expire';
|
|
1492
|
+
readonly format: 'date-time';
|
|
1493
|
+
readonly nullable: true;
|
|
1494
|
+
};
|
|
1495
|
+
readonly jobId: {
|
|
1496
|
+
readonly minLength: 1;
|
|
1497
|
+
readonly type: 'string';
|
|
1498
|
+
readonly description: 'Get the id of the job that is associated with this media.';
|
|
1499
|
+
};
|
|
1500
|
+
};
|
|
1501
|
+
readonly additionalProperties: false;
|
|
1502
|
+
};
|
|
1503
|
+
export declare const $TranscodeStep: {
|
|
1504
|
+
readonly required: readonly ['$type', 'input'];
|
|
1505
|
+
readonly type: 'object';
|
|
1506
|
+
readonly allOf: readonly [
|
|
1507
|
+
{
|
|
1508
|
+
readonly $ref: '#/components/schemas/WorkflowStep';
|
|
1509
|
+
},
|
|
1510
|
+
];
|
|
1511
|
+
readonly properties: {
|
|
1512
|
+
readonly name: {
|
|
1513
|
+
readonly type: 'string';
|
|
1514
|
+
readonly description: 'The name of the workflow step. Used to allow steps to refer to one another.';
|
|
1515
|
+
readonly nullable: true;
|
|
1516
|
+
};
|
|
1517
|
+
readonly priority: {
|
|
1518
|
+
readonly $ref: '#/components/schemas/Priority';
|
|
1519
|
+
};
|
|
1520
|
+
readonly timeout: {
|
|
1521
|
+
readonly type: 'string';
|
|
1522
|
+
readonly description: 'The maximum time to wait for this step to complete.';
|
|
1523
|
+
readonly nullable: true;
|
|
1524
|
+
readonly example: '00:00:00';
|
|
1525
|
+
};
|
|
1526
|
+
readonly retries: {
|
|
1527
|
+
readonly type: 'integer';
|
|
1528
|
+
readonly description: 'The maximum number of times this step should be retried.';
|
|
1529
|
+
readonly format: 'int32';
|
|
1530
|
+
readonly nullable: true;
|
|
1531
|
+
};
|
|
1532
|
+
readonly jobs: {
|
|
1533
|
+
readonly type: 'array';
|
|
1534
|
+
readonly items: {
|
|
1535
|
+
readonly $ref: '#/components/schemas/WorkflowStepJob';
|
|
1536
|
+
};
|
|
1537
|
+
readonly description: 'The jobs generated by this step.';
|
|
1538
|
+
};
|
|
1539
|
+
readonly status: {
|
|
1540
|
+
readonly $ref: '#/components/schemas/WorkflowStatus';
|
|
1541
|
+
};
|
|
1542
|
+
readonly startedAt: {
|
|
1543
|
+
readonly type: 'string';
|
|
1544
|
+
readonly description: 'The date / time the step was started. Null if not yet started.';
|
|
1545
|
+
readonly format: 'date-time';
|
|
1546
|
+
readonly nullable: true;
|
|
1547
|
+
};
|
|
1548
|
+
readonly completedAt: {
|
|
1549
|
+
readonly type: 'string';
|
|
1550
|
+
readonly description: 'The date / time the step was completed. Null if not yet completed.';
|
|
1551
|
+
readonly format: 'date-time';
|
|
1552
|
+
readonly nullable: true;
|
|
1553
|
+
};
|
|
1554
|
+
readonly input: {
|
|
1555
|
+
readonly $ref: '#/components/schemas/TranscodeInput';
|
|
1556
|
+
};
|
|
1557
|
+
readonly output: {
|
|
1558
|
+
readonly $ref: '#/components/schemas/TranscodeOutput';
|
|
1559
|
+
};
|
|
1560
|
+
readonly $type: {
|
|
1561
|
+
readonly enum: readonly ['transcode'];
|
|
1562
|
+
readonly type: 'string';
|
|
1563
|
+
};
|
|
1564
|
+
};
|
|
1565
|
+
readonly additionalProperties: false;
|
|
1566
|
+
};
|
|
1567
|
+
export declare const $TranscodeStepTemplate: {
|
|
1568
|
+
readonly required: readonly ['$type', 'input'];
|
|
1569
|
+
readonly type: 'object';
|
|
1570
|
+
readonly allOf: readonly [
|
|
1571
|
+
{
|
|
1572
|
+
readonly $ref: '#/components/schemas/WorkflowStepTemplate';
|
|
1573
|
+
},
|
|
1574
|
+
];
|
|
1575
|
+
readonly properties: {
|
|
1576
|
+
readonly $type: {
|
|
1577
|
+
readonly enum: readonly ['transcode'];
|
|
1578
|
+
readonly type: 'string';
|
|
1579
|
+
};
|
|
1580
|
+
readonly input: {
|
|
1581
|
+
readonly $ref: '#/components/schemas/TranscodeInput';
|
|
1582
|
+
};
|
|
1583
|
+
};
|
|
1584
|
+
readonly additionalProperties: false;
|
|
1585
|
+
};
|
|
1443
1586
|
export declare const $UpdateWorkflowRequest: {
|
|
1444
1587
|
readonly type: 'object';
|
|
1445
1588
|
readonly properties: {
|
|
@@ -1580,6 +1723,16 @@ export declare const $WorkerDetails: {
|
|
|
1580
1723
|
readonly format: 'date-time';
|
|
1581
1724
|
readonly nullable: true;
|
|
1582
1725
|
};
|
|
1726
|
+
readonly resourceDownloadRate: {
|
|
1727
|
+
readonly type: 'number';
|
|
1728
|
+
readonly description: 'The rate at which this worker has been downloading';
|
|
1729
|
+
readonly format: 'double';
|
|
1730
|
+
};
|
|
1731
|
+
readonly resourceEvictionRate: {
|
|
1732
|
+
readonly type: 'number';
|
|
1733
|
+
readonly description: 'The rate at which this worker has been evicting resources';
|
|
1734
|
+
readonly format: 'double';
|
|
1735
|
+
};
|
|
1583
1736
|
};
|
|
1584
1737
|
readonly additionalProperties: false;
|
|
1585
1738
|
readonly description: 'Details for a particular worker.';
|
|
@@ -1701,6 +1854,9 @@ export declare const $WorkerMediaCapabilities: {
|
|
|
1701
1854
|
readonly movieRating: {
|
|
1702
1855
|
readonly $ref: '#/components/schemas/WorkerMediaMovieRatingCapabilities';
|
|
1703
1856
|
};
|
|
1857
|
+
readonly transcode: {
|
|
1858
|
+
readonly $ref: '#/components/schemas/WorkerMediaTranscodeCapabilities';
|
|
1859
|
+
};
|
|
1704
1860
|
};
|
|
1705
1861
|
readonly additionalProperties: false;
|
|
1706
1862
|
readonly description: "Details of a worker's media capabilities.";
|
|
@@ -1720,70 +1876,36 @@ export declare const $WorkerMediaTaggingCapabilities: {
|
|
|
1720
1876
|
readonly additionalProperties: false;
|
|
1721
1877
|
readonly description: "Details of a worker's media tagging capabilities.";
|
|
1722
1878
|
};
|
|
1879
|
+
export declare const $WorkerMediaTranscodeCapabilities: {
|
|
1880
|
+
readonly type: 'object';
|
|
1881
|
+
readonly additionalProperties: false;
|
|
1882
|
+
};
|
|
1723
1883
|
export declare const $WorkerMediaWDTaggingCapabilities: {
|
|
1724
1884
|
readonly type: 'object';
|
|
1725
1885
|
readonly additionalProperties: false;
|
|
1726
1886
|
readonly description: "Details of a worker's media WD tagging capabilities.";
|
|
1727
1887
|
};
|
|
1728
|
-
export declare const $WorkerModelAvailability: {
|
|
1729
|
-
readonly enum: readonly [
|
|
1730
|
-
'unknown',
|
|
1731
|
-
'unsupported',
|
|
1732
|
-
'unavailable',
|
|
1733
|
-
'available',
|
|
1734
|
-
'providerUnsupported',
|
|
1735
|
-
];
|
|
1736
|
-
readonly type: 'string';
|
|
1737
|
-
readonly description: 'Options for representing the status for a model on a worker.';
|
|
1738
|
-
};
|
|
1739
1888
|
export declare const $WorkerModelPreparationCapabilities: {
|
|
1740
1889
|
readonly type: 'object';
|
|
1741
1890
|
readonly additionalProperties: false;
|
|
1742
1891
|
readonly description: "Details of a worker's model preparation capabilities.";
|
|
1743
1892
|
};
|
|
1744
|
-
export declare const $WorkerModelStatus: {
|
|
1745
|
-
readonly required: readonly ['availability'];
|
|
1746
|
-
readonly type: 'object';
|
|
1747
|
-
readonly properties: {
|
|
1748
|
-
readonly availability: {
|
|
1749
|
-
readonly $ref: '#/components/schemas/WorkerModelAvailability';
|
|
1750
|
-
};
|
|
1751
|
-
readonly cost: {
|
|
1752
|
-
readonly type: 'number';
|
|
1753
|
-
readonly description: 'The cost associated with this model.';
|
|
1754
|
-
readonly format: 'float';
|
|
1755
|
-
};
|
|
1756
|
-
};
|
|
1757
|
-
readonly additionalProperties: false;
|
|
1758
|
-
readonly description: 'Details for the status of a model on a particular worker.';
|
|
1759
|
-
};
|
|
1760
1893
|
export declare const $WorkerRegistration: {
|
|
1761
1894
|
readonly required: readonly ['name'];
|
|
1762
1895
|
readonly type: 'object';
|
|
1763
1896
|
readonly properties: {
|
|
1764
|
-
readonly legacyName: {
|
|
1765
|
-
readonly type: 'string';
|
|
1766
|
-
readonly nullable: true;
|
|
1767
|
-
};
|
|
1768
1897
|
readonly name: {
|
|
1769
1898
|
readonly minLength: 1;
|
|
1770
1899
|
readonly type: 'string';
|
|
1771
1900
|
readonly description: "The worker's name.";
|
|
1772
1901
|
};
|
|
1773
|
-
readonly
|
|
1774
|
-
readonly type: 'array';
|
|
1775
|
-
readonly items: {
|
|
1776
|
-
readonly type: 'string';
|
|
1777
|
-
};
|
|
1778
|
-
readonly description: 'An array of asset types the worker can retrieve on demand.';
|
|
1779
|
-
};
|
|
1780
|
-
readonly onDemandModelTypes: {
|
|
1902
|
+
readonly onDemandResourceTypes: {
|
|
1781
1903
|
readonly uniqueItems: true;
|
|
1782
1904
|
readonly type: 'array';
|
|
1783
1905
|
readonly items: {
|
|
1784
1906
|
readonly type: 'string';
|
|
1785
1907
|
};
|
|
1786
|
-
readonly description: 'A hash set of
|
|
1908
|
+
readonly description: 'A hash set of resource types the worker can retrieve on demand.';
|
|
1787
1909
|
};
|
|
1788
1910
|
readonly capabilities: {
|
|
1789
1911
|
readonly $ref: '#/components/schemas/WorkerCapabilities';
|
|
@@ -1806,12 +1928,12 @@ export declare const $WorkerRegistration: {
|
|
|
1806
1928
|
};
|
|
1807
1929
|
readonly description: 'A collection of ecosystems the worker supports.';
|
|
1808
1930
|
};
|
|
1809
|
-
readonly
|
|
1931
|
+
readonly resources: {
|
|
1810
1932
|
readonly type: 'object';
|
|
1811
1933
|
readonly additionalProperties: {
|
|
1812
|
-
readonly $ref: '#/components/schemas/
|
|
1934
|
+
readonly $ref: '#/components/schemas/WorkerResourceStatus';
|
|
1813
1935
|
};
|
|
1814
|
-
readonly description: 'A collection of information about the availability of particular
|
|
1936
|
+
readonly description: 'A collection of information about the availability of particular resources on this worker.';
|
|
1815
1937
|
};
|
|
1816
1938
|
readonly cacheLevel: {
|
|
1817
1939
|
readonly type: 'string';
|
|
@@ -1824,7 +1946,7 @@ export declare const $WorkerRegistration: {
|
|
|
1824
1946
|
readonly format: 'int32';
|
|
1825
1947
|
readonly nullable: true;
|
|
1826
1948
|
};
|
|
1827
|
-
readonly
|
|
1949
|
+
readonly maxPendingResourceSize: {
|
|
1828
1950
|
readonly type: 'integer';
|
|
1829
1951
|
readonly description: 'The max size in Mb of downloads that can be pending.';
|
|
1830
1952
|
readonly format: 'int32';
|
|
@@ -1843,6 +1965,33 @@ export declare const $WorkerRegistration: {
|
|
|
1843
1965
|
readonly additionalProperties: false;
|
|
1844
1966
|
readonly description: "Details of a worker's registration.";
|
|
1845
1967
|
};
|
|
1968
|
+
export declare const $WorkerResourceAvailability: {
|
|
1969
|
+
readonly enum: readonly [
|
|
1970
|
+
'unknown',
|
|
1971
|
+
'unsupported',
|
|
1972
|
+
'unavailable',
|
|
1973
|
+
'available',
|
|
1974
|
+
'providerUnsupported',
|
|
1975
|
+
];
|
|
1976
|
+
readonly type: 'string';
|
|
1977
|
+
readonly description: 'Options for representing the status for a resource on a worker.';
|
|
1978
|
+
};
|
|
1979
|
+
export declare const $WorkerResourceStatus: {
|
|
1980
|
+
readonly required: readonly ['availability'];
|
|
1981
|
+
readonly type: 'object';
|
|
1982
|
+
readonly properties: {
|
|
1983
|
+
readonly availability: {
|
|
1984
|
+
readonly $ref: '#/components/schemas/WorkerResourceAvailability';
|
|
1985
|
+
};
|
|
1986
|
+
readonly cost: {
|
|
1987
|
+
readonly type: 'number';
|
|
1988
|
+
readonly description: 'The cost associated with this resource.';
|
|
1989
|
+
readonly format: 'float';
|
|
1990
|
+
};
|
|
1991
|
+
};
|
|
1992
|
+
readonly additionalProperties: false;
|
|
1993
|
+
readonly description: 'Details for the status of a resource on a particular worker.';
|
|
1994
|
+
};
|
|
1846
1995
|
export declare const $WorkerSimilaritySearchCapabilities: {
|
|
1847
1996
|
readonly type: 'object';
|
|
1848
1997
|
readonly additionalProperties: false;
|
|
@@ -2046,6 +2195,7 @@ export declare const $WorkflowStep: {
|
|
|
2046
2195
|
readonly discriminator: {
|
|
2047
2196
|
readonly propertyName: '$type';
|
|
2048
2197
|
readonly mapping: {
|
|
2198
|
+
readonly transcode: '#/components/schemas/TranscodeStep';
|
|
2049
2199
|
readonly textToImage: '#/components/schemas/TextToImageStep';
|
|
2050
2200
|
readonly imageResourceTraining: '#/components/schemas/ImageResourceTrainingStep';
|
|
2051
2201
|
readonly echo: '#/components/schemas/EchoStep';
|
|
@@ -2206,9 +2356,10 @@ export declare const $WorkflowStepTemplate: {
|
|
|
2206
2356
|
readonly discriminator: {
|
|
2207
2357
|
readonly propertyName: '$type';
|
|
2208
2358
|
readonly mapping: {
|
|
2209
|
-
readonly
|
|
2210
|
-
readonly
|
|
2211
|
-
readonly
|
|
2359
|
+
readonly transcode: '#/components/schemas/TranscodeStepTemplate';
|
|
2360
|
+
readonly textToImage: '#/components/schemas/TextToImageStepTemplate';
|
|
2361
|
+
readonly imageResourceTraining: '#/components/schemas/ImageResourceTrainingStepTemplate';
|
|
2362
|
+
readonly echo: '#/components/schemas/EchoStepTemplate';
|
|
2212
2363
|
};
|
|
2213
2364
|
};
|
|
2214
2365
|
};
|