@civitai/client 0.1.9-beta.1 → 0.1.9-beta.2

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.
@@ -28,6 +28,9 @@ export declare const $Blob: {
28
28
  readonly description: 'Get the id of the job that is associated with this blob.';
29
29
  readonly nullable: true;
30
30
  };
31
+ readonly nsfwLevel: {
32
+ readonly $ref: '#/components/schemas/NSFWLevel';
33
+ };
31
34
  };
32
35
  readonly additionalProperties: false;
33
36
  readonly description: 'Represents a blob that gets produced as part of a specific job';
@@ -51,6 +54,11 @@ export declare const $ComfyInput: {
51
54
  readonly format: 'int32';
52
55
  readonly default: 1;
53
56
  };
57
+ readonly imageMetadata: {
58
+ readonly type: 'string';
59
+ readonly description: 'External metadata that will be stored with the image';
60
+ readonly nullable: true;
61
+ };
54
62
  };
55
63
  readonly additionalProperties: false;
56
64
  };
@@ -847,16 +855,6 @@ export declare const $ImageResourceTrainingJob: {
847
855
  readonly additionalProperties: {};
848
856
  readonly description: 'A untyped set of parameters that are associated with this job';
849
857
  };
850
- readonly cost: {
851
- readonly type: 'number';
852
- readonly description: 'Get cost associated with this job';
853
- readonly format: 'double';
854
- };
855
- readonly customCost: {
856
- readonly type: 'number';
857
- readonly description: 'Get or set a custom cost value for this job';
858
- readonly format: 'double';
859
- };
860
858
  readonly output: {
861
859
  readonly type: 'string';
862
860
  readonly description: 'An application provided output of the current status of this job';
@@ -1028,7 +1026,7 @@ export declare const $Job: {
1028
1026
  };
1029
1027
  readonly cost: {
1030
1028
  readonly type: 'number';
1031
- readonly description: 'Get a cost estimate for this job';
1029
+ readonly description: 'Get a cost for this job';
1032
1030
  readonly format: 'double';
1033
1031
  };
1034
1032
  readonly maxRetryAttempt: {
@@ -1085,6 +1083,54 @@ export declare const $JobSupport: {
1085
1083
  readonly type: 'string';
1086
1084
  readonly description: 'Available levels of job support.';
1087
1085
  };
1086
+ export declare const $JsonPatchDocument: {
1087
+ readonly type: 'array';
1088
+ readonly items: {
1089
+ readonly $ref: '#/components/schemas/JsonPatchOperation';
1090
+ };
1091
+ readonly description: 'Array of operations to perform';
1092
+ };
1093
+ export declare const $JsonPatchOperation: {
1094
+ readonly required: readonly ['op', 'path'];
1095
+ readonly type: 'object';
1096
+ readonly properties: {
1097
+ readonly op: {
1098
+ readonly enum: readonly ['add', 'remove', 'replace', 'move', 'copy', 'test'];
1099
+ readonly type: 'string';
1100
+ readonly description: "The operation type. Allowed values: 'add', 'remove', 'replace', 'move', 'copy', 'test'.";
1101
+ };
1102
+ readonly path: {
1103
+ readonly type: 'string';
1104
+ readonly description: 'The JSON Pointer path to the property in the target document where the operation is to be applied.';
1105
+ };
1106
+ readonly from: {
1107
+ readonly type: 'string';
1108
+ readonly description: 'Should be a path, required when using move, copy';
1109
+ };
1110
+ readonly value: {
1111
+ readonly anyOf: readonly [
1112
+ {
1113
+ readonly type: 'string';
1114
+ },
1115
+ {
1116
+ readonly type: 'number';
1117
+ },
1118
+ {
1119
+ readonly type: 'boolean';
1120
+ },
1121
+ {
1122
+ readonly type: 'object';
1123
+ },
1124
+ {
1125
+ readonly type: 'array';
1126
+ },
1127
+ ];
1128
+ readonly description: "The value to apply for 'add', 'replace', or 'test' operations. Not required for 'remove', 'move', or 'copy'.";
1129
+ readonly nullable: true;
1130
+ };
1131
+ };
1132
+ readonly description: 'Describes a single operation in a JSON Patch document. Includes the operation type, the target property path, and the value to be used.';
1133
+ };
1088
1134
  export declare const $LLMPromptAugmentationCapabilities: {
1089
1135
  readonly type: 'object';
1090
1136
  readonly additionalProperties: false;
@@ -1128,6 +1174,11 @@ export declare const $LLMPromptAugmentationJob: {
1128
1174
  };
1129
1175
  readonly additionalProperties: false;
1130
1176
  };
1177
+ export declare const $NSFWLevel: {
1178
+ readonly enum: readonly ['pg', 'pG13', 'r', 'x', 'xxx'];
1179
+ readonly type: 'string';
1180
+ readonly nullable: true;
1181
+ };
1131
1182
  export declare const $Priority: {
1132
1183
  readonly enum: readonly ['high', 'normal', 'low'];
1133
1184
  readonly type: 'string';
@@ -1278,10 +1329,24 @@ export declare const $ResourceInfo: {
1278
1329
  };
1279
1330
  readonly invalidateAt: {
1280
1331
  readonly type: 'string';
1281
- readonly description: 'A date time to invalidate at.';
1332
+ readonly description: 'The date time to invalidate at.';
1333
+ readonly format: 'date-time';
1334
+ readonly nullable: true;
1335
+ };
1336
+ readonly earlyAccessEndsAt: {
1337
+ readonly type: 'string';
1338
+ readonly description: 'A DateTime representing when early access for the resource ends.';
1282
1339
  readonly format: 'date-time';
1283
1340
  readonly nullable: true;
1284
1341
  };
1342
+ readonly checkPermission: {
1343
+ readonly type: 'boolean';
1344
+ readonly description: 'A bool indicating if permission is required to use this resource.';
1345
+ };
1346
+ readonly canGenerate: {
1347
+ readonly type: 'boolean';
1348
+ readonly description: 'A bool indicating if generation is enabled for this resource.';
1349
+ };
1285
1350
  };
1286
1351
  readonly additionalProperties: false;
1287
1352
  readonly description: 'Details for a specific resource.';
@@ -1345,11 +1410,6 @@ export declare const $SimilaritySearchJob: {
1345
1410
  readonly additionalProperties: {};
1346
1411
  readonly description: 'A collection of parameters.';
1347
1412
  };
1348
- readonly cost: {
1349
- readonly type: 'number';
1350
- readonly description: 'A value representing the cost of the job.';
1351
- readonly format: 'double';
1352
- };
1353
1413
  readonly $type: {
1354
1414
  readonly enum: readonly ['SimilaritySearchJob'];
1355
1415
  readonly type: 'string';
@@ -1468,6 +1528,11 @@ export declare const $TextToImageInput: {
1468
1528
  readonly format: 'int32';
1469
1529
  readonly default: 2;
1470
1530
  };
1531
+ readonly imageMetadata: {
1532
+ readonly type: 'string';
1533
+ readonly description: 'External metadata that will be stored with the image';
1534
+ readonly nullable: true;
1535
+ };
1471
1536
  };
1472
1537
  readonly additionalProperties: false;
1473
1538
  readonly description: 'Input for an text to image step.';
@@ -1518,11 +1583,6 @@ export declare const $TextToImageJob: {
1518
1583
  };
1519
1584
  readonly description: 'Get or set a list of control nets that should be applied with this textToImage job.';
1520
1585
  };
1521
- readonly cost: {
1522
- readonly type: 'number';
1523
- readonly description: 'A value representing the cost of the job.';
1524
- readonly format: 'double';
1525
- };
1526
1586
  readonly claimDuration: {
1527
1587
  readonly type: 'string';
1528
1588
  readonly description: 'The duration for which this job can be claimed for.';
@@ -1703,10 +1763,10 @@ export declare const $TextToImageV2Job: {
1703
1763
  };
1704
1764
  readonly description: 'Get or set a list of control nets that should be applied with this textToImage job';
1705
1765
  };
1706
- readonly cost: {
1707
- readonly type: 'number';
1708
- readonly description: 'A value representing the cost of the job.';
1709
- readonly format: 'double';
1766
+ readonly imageMetadata: {
1767
+ readonly type: 'string';
1768
+ readonly description: 'Get or set additional metadata that will be embedded with generated images';
1769
+ readonly nullable: true;
1710
1770
  };
1711
1771
  readonly claimDuration: {
1712
1772
  readonly type: 'string';
@@ -1721,7 +1781,7 @@ export declare const $TextToImageV2Job: {
1721
1781
  readonly additionalProperties: false;
1722
1782
  };
1723
1783
  export declare const $TransactionInfo: {
1724
- readonly required: readonly ['amount', 'id', 'type'];
1784
+ readonly required: readonly ['amount', 'type'];
1725
1785
  readonly type: 'object';
1726
1786
  readonly properties: {
1727
1787
  readonly type: {
@@ -1735,7 +1795,6 @@ export declare const $TransactionInfo: {
1735
1795
  readonly format: 'int32';
1736
1796
  };
1737
1797
  readonly id: {
1738
- readonly minLength: 1;
1739
1798
  readonly type: 'string';
1740
1799
  readonly description: 'The transaction ID.';
1741
1800
  readonly nullable: true;
@@ -2060,6 +2119,14 @@ export declare const $UpdateWorkflowRequest: {
2060
2119
  readonly description: 'An optional set of new properties to set on the workflow.';
2061
2120
  readonly nullable: true;
2062
2121
  };
2122
+ readonly tags: {
2123
+ readonly type: 'array';
2124
+ readonly items: {
2125
+ readonly type: 'string';
2126
+ };
2127
+ readonly description: 'An optional set of new tags to set on the workflow.';
2128
+ readonly nullable: true;
2129
+ };
2063
2130
  };
2064
2131
  readonly additionalProperties: false;
2065
2132
  readonly description: 'An request for updating a workflow.';
@@ -2082,6 +2149,42 @@ export declare const $UpdateWorkflowStepRequest: {
2082
2149
  };
2083
2150
  readonly additionalProperties: false;
2084
2151
  };
2152
+ export declare const $ValidationProblemDetails: {
2153
+ readonly type: 'object';
2154
+ readonly properties: {
2155
+ readonly type: {
2156
+ readonly type: 'string';
2157
+ readonly nullable: true;
2158
+ };
2159
+ readonly title: {
2160
+ readonly type: 'string';
2161
+ readonly nullable: true;
2162
+ };
2163
+ readonly status: {
2164
+ readonly type: 'integer';
2165
+ readonly format: 'int32';
2166
+ readonly nullable: true;
2167
+ };
2168
+ readonly detail: {
2169
+ readonly type: 'string';
2170
+ readonly nullable: true;
2171
+ };
2172
+ readonly instance: {
2173
+ readonly type: 'string';
2174
+ readonly nullable: true;
2175
+ };
2176
+ readonly errors: {
2177
+ readonly type: 'object';
2178
+ readonly additionalProperties: {
2179
+ readonly type: 'array';
2180
+ readonly items: {
2181
+ readonly type: 'string';
2182
+ };
2183
+ };
2184
+ };
2185
+ };
2186
+ readonly additionalProperties: {};
2187
+ };
2085
2188
  export declare const $ValueTupleOfStringAndInt32: {
2086
2189
  readonly type: 'object';
2087
2190
  readonly additionalProperties: false;
@@ -2570,6 +2673,9 @@ export declare const $Workflow: {
2570
2673
  readonly cost: {
2571
2674
  readonly $ref: '#/components/schemas/WorkflowCost';
2572
2675
  };
2676
+ readonly nsfwLevel: {
2677
+ readonly $ref: '#/components/schemas/NSFWLevel';
2678
+ };
2573
2679
  };
2574
2680
  readonly additionalProperties: false;
2575
2681
  readonly description: 'Details of a workflow.';
@@ -2823,6 +2929,11 @@ export declare const $WorkflowStepJob: {
2823
2929
  readonly queuePosition: {
2824
2930
  readonly $ref: '#/components/schemas/WorkflowStepJobQueuePosition';
2825
2931
  };
2932
+ readonly cost: {
2933
+ readonly type: 'number';
2934
+ readonly description: "The job's cost.";
2935
+ readonly format: 'double';
2936
+ };
2826
2937
  };
2827
2938
  readonly additionalProperties: false;
2828
2939
  readonly description: 'Details of a job produced by a workflow step.';
@@ -2979,6 +3090,9 @@ export declare const $WorkflowTemplate: {
2979
3090
  readonly additionalProperties: {};
2980
3091
  readonly description: 'Get an associated collection of arguments';
2981
3092
  };
3093
+ readonly nsfwLevel: {
3094
+ readonly $ref: '#/components/schemas/NSFWLevel';
3095
+ };
2982
3096
  };
2983
3097
  readonly additionalProperties: false;
2984
3098
  readonly description: 'Details of a requested workflow.';
@@ -1,9 +1,9 @@
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.$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.$HumanoidImageMaskStepTemplate = exports.$HumanoidImageMaskStep = exports.$HumanoidImageMaskOutput = exports.$HumanoidImageMaskInput = exports.$HumanoidImageMaskCategory = 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.$ComfyNode = exports.$ComfyInput = exports.$Blob = void 0;
5
- exports.$WorkflowStepJobEvent = exports.$WorkflowStepJob = exports.$WorkflowStepEvent = exports.$WorkflowStep = exports.$WorkflowStatus = exports.$WorkflowEvent = exports.$WorkflowCostTips = exports.$WorkflowCost = exports.$WorkflowCallback = exports.$Workflow = exports.$WorkerType = exports.$WorkerTryOnUCapabilities = 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.$WorkerHumanoidImageMaskCapabilities = exports.$WorkerDetails = exports.$WorkerConfigurationCapabilities = exports.$WorkerCapabilities = exports.$ValueTupleOfStringAndInt32 = exports.$UpdateWorkflowStepRequest = exports.$UpdateWorkflowStatus = exports.$UpdateWorkflowRequest = exports.$TryOnUStepTemplate = exports.$TryOnUStep = exports.$TryOnUOutput = exports.$TryOnUInput = exports.$TranscodeStepTemplate = exports.$TranscodeStep = exports.$TranscodeOutput = exports.$TranscodeInput = exports.$TransactionType = exports.$TransactionSummary = exports.$TransactionInfo = exports.$TextToImageV2Job = exports.$TextToImageStepTemplate = void 0;
6
- exports.$WorkflowTips = exports.$WorkflowTemplate = exports.$WorkflowStepTemplate = exports.$WorkflowStepJobQueuePosition = void 0;
4
+ exports.$TextToImageJob = exports.$TextToImageInput = exports.$Subscription = exports.$SimilaritySearchJob = exports.$Scheduler = exports.$ResourceInfo = exports.$ProcessingStatistics = exports.$ProblemDetails = exports.$Priority = exports.$NSFWLevel = exports.$LLMPromptAugmentationJob = exports.$LLMPromptAugmentationCapabilities = exports.$JsonPatchOperation = exports.$JsonPatchDocument = exports.$JobSupport = exports.$Job = exports.$ImageTransformer = exports.$ImageResourceTrainingStepTemplate = exports.$ImageResourceTrainingStep = exports.$ImageResourceTrainingOutput = exports.$ImageResourceTrainingJob = exports.$ImageResourceTrainingInput = exports.$ImageJobParams = exports.$ImageJobNetworkParams = exports.$ImageJobControlNet = exports.$HumanoidImageMaskStepTemplate = exports.$HumanoidImageMaskStep = exports.$HumanoidImageMaskOutput = exports.$HumanoidImageMaskInput = exports.$HumanoidImageMaskCategory = 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.$ComfyNode = exports.$ComfyInput = exports.$Blob = void 0;
5
+ exports.$WorkflowStatus = exports.$WorkflowEvent = exports.$WorkflowCostTips = exports.$WorkflowCost = exports.$WorkflowCallback = exports.$Workflow = exports.$WorkerType = exports.$WorkerTryOnUCapabilities = 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.$WorkerHumanoidImageMaskCapabilities = exports.$WorkerDetails = exports.$WorkerConfigurationCapabilities = exports.$WorkerCapabilities = exports.$ValueTupleOfStringAndInt32 = exports.$ValidationProblemDetails = exports.$UpdateWorkflowStepRequest = exports.$UpdateWorkflowStatus = exports.$UpdateWorkflowRequest = exports.$TryOnUStepTemplate = exports.$TryOnUStep = exports.$TryOnUOutput = exports.$TryOnUInput = exports.$TranscodeStepTemplate = exports.$TranscodeStep = exports.$TranscodeOutput = exports.$TranscodeInput = exports.$TransactionType = exports.$TransactionSummary = exports.$TransactionInfo = exports.$TextToImageV2Job = exports.$TextToImageStepTemplate = exports.$TextToImageStep = exports.$TextToImageOutput = exports.$TextToImageJobSlot = void 0;
6
+ exports.$WorkflowTips = exports.$WorkflowTemplate = exports.$WorkflowStepTemplate = exports.$WorkflowStepJobQueuePosition = exports.$WorkflowStepJobEvent = exports.$WorkflowStepJob = exports.$WorkflowStepEvent = exports.$WorkflowStep = void 0;
7
7
  exports.$Blob = {
8
8
  required: ['available', 'id'],
9
9
  type: 'object',
@@ -34,6 +34,9 @@ exports.$Blob = {
34
34
  description: 'Get the id of the job that is associated with this blob.',
35
35
  nullable: true,
36
36
  },
37
+ nsfwLevel: {
38
+ $ref: '#/components/schemas/NSFWLevel',
39
+ },
37
40
  },
38
41
  additionalProperties: false,
39
42
  description: 'Represents a blob that gets produced as part of a specific job',
@@ -57,6 +60,11 @@ exports.$ComfyInput = {
57
60
  format: 'int32',
58
61
  default: 1,
59
62
  },
63
+ imageMetadata: {
64
+ type: 'string',
65
+ description: 'External metadata that will be stored with the image',
66
+ nullable: true,
67
+ },
60
68
  },
61
69
  additionalProperties: false,
62
70
  };
@@ -853,16 +861,6 @@ exports.$ImageResourceTrainingJob = {
853
861
  additionalProperties: {},
854
862
  description: 'A untyped set of parameters that are associated with this job',
855
863
  },
856
- cost: {
857
- type: 'number',
858
- description: 'Get cost associated with this job',
859
- format: 'double',
860
- },
861
- customCost: {
862
- type: 'number',
863
- description: 'Get or set a custom cost value for this job',
864
- format: 'double',
865
- },
866
864
  output: {
867
865
  type: 'string',
868
866
  description: 'An application provided output of the current status of this job',
@@ -1036,7 +1034,7 @@ exports.$Job = {
1036
1034
  },
1037
1035
  cost: {
1038
1036
  type: 'number',
1039
- description: 'Get a cost estimate for this job',
1037
+ description: 'Get a cost for this job',
1040
1038
  format: 'double',
1041
1039
  },
1042
1040
  maxRetryAttempt: {
@@ -1093,6 +1091,54 @@ exports.$JobSupport = {
1093
1091
  type: 'string',
1094
1092
  description: 'Available levels of job support.',
1095
1093
  };
1094
+ exports.$JsonPatchDocument = {
1095
+ type: 'array',
1096
+ items: {
1097
+ $ref: '#/components/schemas/JsonPatchOperation',
1098
+ },
1099
+ description: 'Array of operations to perform',
1100
+ };
1101
+ exports.$JsonPatchOperation = {
1102
+ required: ['op', 'path'],
1103
+ type: 'object',
1104
+ properties: {
1105
+ op: {
1106
+ enum: ['add', 'remove', 'replace', 'move', 'copy', 'test'],
1107
+ type: 'string',
1108
+ description: "The operation type. Allowed values: 'add', 'remove', 'replace', 'move', 'copy', 'test'.",
1109
+ },
1110
+ path: {
1111
+ type: 'string',
1112
+ description: 'The JSON Pointer path to the property in the target document where the operation is to be applied.',
1113
+ },
1114
+ from: {
1115
+ type: 'string',
1116
+ description: 'Should be a path, required when using move, copy',
1117
+ },
1118
+ value: {
1119
+ anyOf: [
1120
+ {
1121
+ type: 'string',
1122
+ },
1123
+ {
1124
+ type: 'number',
1125
+ },
1126
+ {
1127
+ type: 'boolean',
1128
+ },
1129
+ {
1130
+ type: 'object',
1131
+ },
1132
+ {
1133
+ type: 'array',
1134
+ },
1135
+ ],
1136
+ description: "The value to apply for 'add', 'replace', or 'test' operations. Not required for 'remove', 'move', or 'copy'.",
1137
+ nullable: true,
1138
+ },
1139
+ },
1140
+ description: 'Describes a single operation in a JSON Patch document. Includes the operation type, the target property path, and the value to be used.',
1141
+ };
1096
1142
  exports.$LLMPromptAugmentationCapabilities = {
1097
1143
  type: 'object',
1098
1144
  additionalProperties: false,
@@ -1136,6 +1182,11 @@ exports.$LLMPromptAugmentationJob = {
1136
1182
  },
1137
1183
  additionalProperties: false,
1138
1184
  };
1185
+ exports.$NSFWLevel = {
1186
+ enum: ['pg', 'pG13', 'r', 'x', 'xxx'],
1187
+ type: 'string',
1188
+ nullable: true,
1189
+ };
1139
1190
  exports.$Priority = {
1140
1191
  enum: ['high', 'normal', 'low'],
1141
1192
  type: 'string',
@@ -1286,10 +1337,24 @@ exports.$ResourceInfo = {
1286
1337
  },
1287
1338
  invalidateAt: {
1288
1339
  type: 'string',
1289
- description: 'A date time to invalidate at.',
1340
+ description: 'The date time to invalidate at.',
1290
1341
  format: 'date-time',
1291
1342
  nullable: true,
1292
1343
  },
1344
+ earlyAccessEndsAt: {
1345
+ type: 'string',
1346
+ description: 'A DateTime representing when early access for the resource ends.',
1347
+ format: 'date-time',
1348
+ nullable: true,
1349
+ },
1350
+ checkPermission: {
1351
+ type: 'boolean',
1352
+ description: 'A bool indicating if permission is required to use this resource.',
1353
+ },
1354
+ canGenerate: {
1355
+ type: 'boolean',
1356
+ description: 'A bool indicating if generation is enabled for this resource.',
1357
+ },
1293
1358
  },
1294
1359
  additionalProperties: false,
1295
1360
  description: 'Details for a specific resource.',
@@ -1353,11 +1418,6 @@ exports.$SimilaritySearchJob = {
1353
1418
  additionalProperties: {},
1354
1419
  description: 'A collection of parameters.',
1355
1420
  },
1356
- cost: {
1357
- type: 'number',
1358
- description: 'A value representing the cost of the job.',
1359
- format: 'double',
1360
- },
1361
1421
  $type: {
1362
1422
  enum: ['SimilaritySearchJob'],
1363
1423
  type: 'string',
@@ -1476,6 +1536,11 @@ exports.$TextToImageInput = {
1476
1536
  format: 'int32',
1477
1537
  default: 2,
1478
1538
  },
1539
+ imageMetadata: {
1540
+ type: 'string',
1541
+ description: 'External metadata that will be stored with the image',
1542
+ nullable: true,
1543
+ },
1479
1544
  },
1480
1545
  additionalProperties: false,
1481
1546
  description: 'Input for an text to image step.',
@@ -1526,11 +1591,6 @@ exports.$TextToImageJob = {
1526
1591
  },
1527
1592
  description: 'Get or set a list of control nets that should be applied with this textToImage job.',
1528
1593
  },
1529
- cost: {
1530
- type: 'number',
1531
- description: 'A value representing the cost of the job.',
1532
- format: 'double',
1533
- },
1534
1594
  claimDuration: {
1535
1595
  type: 'string',
1536
1596
  description: 'The duration for which this job can be claimed for.',
@@ -1711,10 +1771,10 @@ exports.$TextToImageV2Job = {
1711
1771
  },
1712
1772
  description: 'Get or set a list of control nets that should be applied with this textToImage job',
1713
1773
  },
1714
- cost: {
1715
- type: 'number',
1716
- description: 'A value representing the cost of the job.',
1717
- format: 'double',
1774
+ imageMetadata: {
1775
+ type: 'string',
1776
+ description: 'Get or set additional metadata that will be embedded with generated images',
1777
+ nullable: true,
1718
1778
  },
1719
1779
  claimDuration: {
1720
1780
  type: 'string',
@@ -1729,7 +1789,7 @@ exports.$TextToImageV2Job = {
1729
1789
  additionalProperties: false,
1730
1790
  };
1731
1791
  exports.$TransactionInfo = {
1732
- required: ['amount', 'id', 'type'],
1792
+ required: ['amount', 'type'],
1733
1793
  type: 'object',
1734
1794
  properties: {
1735
1795
  type: {
@@ -1743,7 +1803,6 @@ exports.$TransactionInfo = {
1743
1803
  format: 'int32',
1744
1804
  },
1745
1805
  id: {
1746
- minLength: 1,
1747
1806
  type: 'string',
1748
1807
  description: 'The transaction ID.',
1749
1808
  nullable: true,
@@ -2068,6 +2127,14 @@ exports.$UpdateWorkflowRequest = {
2068
2127
  description: 'An optional set of new properties to set on the workflow.',
2069
2128
  nullable: true,
2070
2129
  },
2130
+ tags: {
2131
+ type: 'array',
2132
+ items: {
2133
+ type: 'string',
2134
+ },
2135
+ description: 'An optional set of new tags to set on the workflow.',
2136
+ nullable: true,
2137
+ },
2071
2138
  },
2072
2139
  additionalProperties: false,
2073
2140
  description: 'An request for updating a workflow.',
@@ -2090,6 +2157,42 @@ exports.$UpdateWorkflowStepRequest = {
2090
2157
  },
2091
2158
  additionalProperties: false,
2092
2159
  };
2160
+ exports.$ValidationProblemDetails = {
2161
+ type: 'object',
2162
+ properties: {
2163
+ type: {
2164
+ type: 'string',
2165
+ nullable: true,
2166
+ },
2167
+ title: {
2168
+ type: 'string',
2169
+ nullable: true,
2170
+ },
2171
+ status: {
2172
+ type: 'integer',
2173
+ format: 'int32',
2174
+ nullable: true,
2175
+ },
2176
+ detail: {
2177
+ type: 'string',
2178
+ nullable: true,
2179
+ },
2180
+ instance: {
2181
+ type: 'string',
2182
+ nullable: true,
2183
+ },
2184
+ errors: {
2185
+ type: 'object',
2186
+ additionalProperties: {
2187
+ type: 'array',
2188
+ items: {
2189
+ type: 'string',
2190
+ },
2191
+ },
2192
+ },
2193
+ },
2194
+ additionalProperties: {},
2195
+ };
2093
2196
  exports.$ValueTupleOfStringAndInt32 = {
2094
2197
  type: 'object',
2095
2198
  additionalProperties: false,
@@ -2572,6 +2675,9 @@ exports.$Workflow = {
2572
2675
  cost: {
2573
2676
  $ref: '#/components/schemas/WorkflowCost',
2574
2677
  },
2678
+ nsfwLevel: {
2679
+ $ref: '#/components/schemas/NSFWLevel',
2680
+ },
2575
2681
  },
2576
2682
  additionalProperties: false,
2577
2683
  description: 'Details of a workflow.',
@@ -2825,6 +2931,11 @@ exports.$WorkflowStepJob = {
2825
2931
  queuePosition: {
2826
2932
  $ref: '#/components/schemas/WorkflowStepJobQueuePosition',
2827
2933
  },
2934
+ cost: {
2935
+ type: 'number',
2936
+ description: "The job's cost.",
2937
+ format: 'double',
2938
+ },
2828
2939
  },
2829
2940
  additionalProperties: false,
2830
2941
  description: 'Details of a job produced by a workflow step.',
@@ -2983,6 +3094,9 @@ At most 10 tags can be assigned to a workflow. Each tag can be at most 200 chara
2983
3094
  additionalProperties: {},
2984
3095
  description: 'Get an associated collection of arguments',
2985
3096
  },
3097
+ nsfwLevel: {
3098
+ $ref: '#/components/schemas/NSFWLevel',
3099
+ },
2986
3100
  },
2987
3101
  additionalProperties: false,
2988
3102
  description: 'Details of a requested workflow.',
@@ -15,14 +15,22 @@ import type {
15
15
  DeleteWorkerData,
16
16
  GetRegistrationData,
17
17
  UpdateWorkerRegistrationData,
18
- PathWorkerResourcesData,
18
+ PatchWorkerResourcesData,
19
19
  SubmitWorkflowData,
20
20
  QueryWorkflowsData,
21
21
  GetWorkflowData,
22
22
  UpdateWorkflowData,
23
+ PatchWorkflowData,
23
24
  DeleteWorkflowData,
25
+ AddWorkflowTagData,
26
+ AddWorkflowTagError,
27
+ RemoveAllWorkflowTagsData,
28
+ RemoveAllWorkflowTagsError,
29
+ RemoveWorkflowTagData,
30
+ RemoveWorkflowTagError,
24
31
  GetWorkflowStepData,
25
32
  UpdateWorkflowStepData,
33
+ PatchWorkflowStepData,
26
34
  } from './types.gen';
27
35
  export declare const putV2ProvidersBlobsByBlobKey: (
28
36
  options: Options<PutV2ProvidersBlobsByBlobKeyData>
@@ -138,8 +146,8 @@ export declare const updateWorkerRegistration: (
138
146
  /**
139
147
  * Patch a worker's registration resources
140
148
  */
141
- export declare const pathWorkerResources: (
142
- options: Options<PathWorkerResourcesData>
149
+ export declare const patchWorkerResources: (
150
+ options: Options<PatchWorkerResourcesData>
143
151
  ) => import('@hey-api/client-fetch').RequestResult<void, import('./types.gen').ProblemDetails>;
144
152
  /**
145
153
  * Submit a workflow for processing
@@ -174,12 +182,33 @@ export declare const getWorkflow: (
174
182
  export declare const updateWorkflow: (
175
183
  options: Options<UpdateWorkflowData>
176
184
  ) => import('@hey-api/client-fetch').RequestResult<void, import('./types.gen').ProblemDetails>;
185
+ export declare const patchWorkflow: (
186
+ options: Options<PatchWorkflowData>
187
+ ) => import('@hey-api/client-fetch').RequestResult<void, import('./types.gen').ProblemDetails>;
177
188
  /**
178
189
  * Deletes a workflow and all its jobs.
179
190
  */
180
191
  export declare const deleteWorkflow: (
181
192
  options: Options<DeleteWorkflowData>
182
193
  ) => import('@hey-api/client-fetch').RequestResult<void, import('./types.gen').ProblemDetails>;
194
+ /**
195
+ * Submit a tag to be added to a workflow.
196
+ */
197
+ export declare const addWorkflowTag: (
198
+ options: Options<AddWorkflowTagData>
199
+ ) => import('@hey-api/client-fetch').RequestResult<void, AddWorkflowTagError>;
200
+ /**
201
+ * Delete all tags for a workflow.
202
+ */
203
+ export declare const removeAllWorkflowTags: (
204
+ options: Options<RemoveAllWorkflowTagsData>
205
+ ) => import('@hey-api/client-fetch').RequestResult<void, RemoveAllWorkflowTagsError>;
206
+ /**
207
+ * Submit a tag to be removed from a workflow.
208
+ */
209
+ export declare const removeWorkflowTag: (
210
+ options: Options<RemoveWorkflowTagData>
211
+ ) => import('@hey-api/client-fetch').RequestResult<void, RemoveWorkflowTagError>;
183
212
  /**
184
213
  * Get the status of a workflow step
185
214
  */
@@ -195,3 +224,6 @@ export declare const getWorkflowStep: (
195
224
  export declare const updateWorkflowStep: (
196
225
  options: Options<UpdateWorkflowStepData>
197
226
  ) => import('@hey-api/client-fetch').RequestResult<void, import('./types.gen').ProblemDetails>;
227
+ export declare const patchWorkflowStep: (
228
+ options: Options<PatchWorkflowStepData>
229
+ ) => import('@hey-api/client-fetch').RequestResult<void, import('./types.gen').ProblemDetails>;