@civitai/client 0.1.9-beta.0 → 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
  };
@@ -148,6 +156,7 @@ export declare const $ComfyStep: {
148
156
  readonly $ref: '#/components/schemas/WorkflowStepJob';
149
157
  };
150
158
  readonly description: 'The jobs generated by this step.';
159
+ readonly nullable: true;
151
160
  };
152
161
  readonly status: {
153
162
  readonly $ref: '#/components/schemas/WorkflowStatus';
@@ -366,6 +375,7 @@ export declare const $EchoStep: {
366
375
  readonly $ref: '#/components/schemas/WorkflowStepJob';
367
376
  };
368
377
  readonly description: 'The jobs generated by this step.';
378
+ readonly nullable: true;
369
379
  };
370
380
  readonly status: {
371
381
  readonly $ref: '#/components/schemas/WorkflowStatus';
@@ -519,6 +529,7 @@ export declare const $HumanoidImageMaskStep: {
519
529
  readonly $ref: '#/components/schemas/WorkflowStepJob';
520
530
  };
521
531
  readonly description: 'The jobs generated by this step.';
532
+ readonly nullable: true;
522
533
  };
523
534
  readonly status: {
524
535
  readonly $ref: '#/components/schemas/WorkflowStatus';
@@ -844,16 +855,6 @@ export declare const $ImageResourceTrainingJob: {
844
855
  readonly additionalProperties: {};
845
856
  readonly description: 'A untyped set of parameters that are associated with this job';
846
857
  };
847
- readonly cost: {
848
- readonly type: 'number';
849
- readonly description: 'Get cost associated with this job';
850
- readonly format: 'double';
851
- };
852
- readonly customCost: {
853
- readonly type: 'number';
854
- readonly description: 'Get or set a custom cost value for this job';
855
- readonly format: 'double';
856
- };
857
858
  readonly output: {
858
859
  readonly type: 'string';
859
860
  readonly description: 'An application provided output of the current status of this job';
@@ -925,6 +926,7 @@ export declare const $ImageResourceTrainingStep: {
925
926
  readonly $ref: '#/components/schemas/WorkflowStepJob';
926
927
  };
927
928
  readonly description: 'The jobs generated by this step.';
929
+ readonly nullable: true;
928
930
  };
929
931
  readonly status: {
930
932
  readonly $ref: '#/components/schemas/WorkflowStatus';
@@ -1024,7 +1026,7 @@ export declare const $Job: {
1024
1026
  };
1025
1027
  readonly cost: {
1026
1028
  readonly type: 'number';
1027
- readonly description: 'Get a cost estimate for this job';
1029
+ readonly description: 'Get a cost for this job';
1028
1030
  readonly format: 'double';
1029
1031
  };
1030
1032
  readonly maxRetryAttempt: {
@@ -1081,6 +1083,54 @@ export declare const $JobSupport: {
1081
1083
  readonly type: 'string';
1082
1084
  readonly description: 'Available levels of job support.';
1083
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
+ };
1084
1134
  export declare const $LLMPromptAugmentationCapabilities: {
1085
1135
  readonly type: 'object';
1086
1136
  readonly additionalProperties: false;
@@ -1124,6 +1174,11 @@ export declare const $LLMPromptAugmentationJob: {
1124
1174
  };
1125
1175
  readonly additionalProperties: false;
1126
1176
  };
1177
+ export declare const $NSFWLevel: {
1178
+ readonly enum: readonly ['pg', 'pG13', 'r', 'x', 'xxx'];
1179
+ readonly type: 'string';
1180
+ readonly nullable: true;
1181
+ };
1127
1182
  export declare const $Priority: {
1128
1183
  readonly enum: readonly ['high', 'normal', 'low'];
1129
1184
  readonly type: 'string';
@@ -1274,10 +1329,24 @@ export declare const $ResourceInfo: {
1274
1329
  };
1275
1330
  readonly invalidateAt: {
1276
1331
  readonly type: 'string';
1277
- 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.';
1278
1339
  readonly format: 'date-time';
1279
1340
  readonly nullable: true;
1280
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
+ };
1281
1350
  };
1282
1351
  readonly additionalProperties: false;
1283
1352
  readonly description: 'Details for a specific resource.';
@@ -1341,11 +1410,6 @@ export declare const $SimilaritySearchJob: {
1341
1410
  readonly additionalProperties: {};
1342
1411
  readonly description: 'A collection of parameters.';
1343
1412
  };
1344
- readonly cost: {
1345
- readonly type: 'number';
1346
- readonly description: 'A value representing the cost of the job.';
1347
- readonly format: 'double';
1348
- };
1349
1413
  readonly $type: {
1350
1414
  readonly enum: readonly ['SimilaritySearchJob'];
1351
1415
  readonly type: 'string';
@@ -1464,6 +1528,11 @@ export declare const $TextToImageInput: {
1464
1528
  readonly format: 'int32';
1465
1529
  readonly default: 2;
1466
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
+ };
1467
1536
  };
1468
1537
  readonly additionalProperties: false;
1469
1538
  readonly description: 'Input for an text to image step.';
@@ -1514,11 +1583,6 @@ export declare const $TextToImageJob: {
1514
1583
  };
1515
1584
  readonly description: 'Get or set a list of control nets that should be applied with this textToImage job.';
1516
1585
  };
1517
- readonly cost: {
1518
- readonly type: 'number';
1519
- readonly description: 'A value representing the cost of the job.';
1520
- readonly format: 'double';
1521
- };
1522
1586
  readonly claimDuration: {
1523
1587
  readonly type: 'string';
1524
1588
  readonly description: 'The duration for which this job can be claimed for.';
@@ -1600,6 +1664,7 @@ export declare const $TextToImageStep: {
1600
1664
  readonly $ref: '#/components/schemas/WorkflowStepJob';
1601
1665
  };
1602
1666
  readonly description: 'The jobs generated by this step.';
1667
+ readonly nullable: true;
1603
1668
  };
1604
1669
  readonly status: {
1605
1670
  readonly $ref: '#/components/schemas/WorkflowStatus';
@@ -1698,10 +1763,10 @@ export declare const $TextToImageV2Job: {
1698
1763
  };
1699
1764
  readonly description: 'Get or set a list of control nets that should be applied with this textToImage job';
1700
1765
  };
1701
- readonly cost: {
1702
- readonly type: 'number';
1703
- readonly description: 'A value representing the cost of the job.';
1704
- 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;
1705
1770
  };
1706
1771
  readonly claimDuration: {
1707
1772
  readonly type: 'string';
@@ -1716,19 +1781,20 @@ export declare const $TextToImageV2Job: {
1716
1781
  readonly additionalProperties: false;
1717
1782
  };
1718
1783
  export declare const $TransactionInfo: {
1719
- readonly required: readonly ['amount', 'id', 'type'];
1784
+ readonly required: readonly ['amount', 'type'];
1720
1785
  readonly type: 'object';
1721
1786
  readonly properties: {
1722
1787
  readonly type: {
1723
1788
  readonly $ref: '#/components/schemas/TransactionType';
1724
1789
  };
1725
1790
  readonly amount: {
1791
+ readonly maximum: 2147483647;
1792
+ readonly minimum: 0;
1726
1793
  readonly type: 'integer';
1727
1794
  readonly description: 'The transaction amount.';
1728
1795
  readonly format: 'int32';
1729
1796
  };
1730
1797
  readonly id: {
1731
- readonly minLength: 1;
1732
1798
  readonly type: 'string';
1733
1799
  readonly description: 'The transaction ID.';
1734
1800
  readonly nullable: true;
@@ -1740,17 +1806,12 @@ export declare const $TransactionInfo: {
1740
1806
  export declare const $TransactionSummary: {
1741
1807
  readonly type: 'object';
1742
1808
  readonly properties: {
1743
- readonly sum: {
1744
- readonly type: 'integer';
1745
- readonly description: 'Get the sum of all transactions';
1746
- readonly format: 'int32';
1747
- };
1748
1809
  readonly list: {
1749
1810
  readonly type: 'array';
1750
1811
  readonly items: {
1751
1812
  readonly $ref: '#/components/schemas/TransactionInfo';
1752
1813
  };
1753
- readonly description: 'Get a list of individual transactions';
1814
+ readonly description: 'Get a list of individual transactions.';
1754
1815
  };
1755
1816
  };
1756
1817
  readonly additionalProperties: false;
@@ -1850,6 +1911,7 @@ export declare const $TranscodeStep: {
1850
1911
  readonly $ref: '#/components/schemas/WorkflowStepJob';
1851
1912
  };
1852
1913
  readonly description: 'The jobs generated by this step.';
1914
+ readonly nullable: true;
1853
1915
  };
1854
1916
  readonly status: {
1855
1917
  readonly $ref: '#/components/schemas/WorkflowStatus';
@@ -1990,6 +2052,7 @@ export declare const $TryOnUStep: {
1990
2052
  readonly $ref: '#/components/schemas/WorkflowStepJob';
1991
2053
  };
1992
2054
  readonly description: 'The jobs generated by this step.';
2055
+ readonly nullable: true;
1993
2056
  };
1994
2057
  readonly status: {
1995
2058
  readonly $ref: '#/components/schemas/WorkflowStatus';
@@ -2056,6 +2119,14 @@ export declare const $UpdateWorkflowRequest: {
2056
2119
  readonly description: 'An optional set of new properties to set on the workflow.';
2057
2120
  readonly nullable: true;
2058
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
+ };
2059
2130
  };
2060
2131
  readonly additionalProperties: false;
2061
2132
  readonly description: 'An request for updating a workflow.';
@@ -2078,6 +2149,42 @@ export declare const $UpdateWorkflowStepRequest: {
2078
2149
  };
2079
2150
  readonly additionalProperties: false;
2080
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
+ };
2081
2188
  export declare const $ValueTupleOfStringAndInt32: {
2082
2189
  readonly type: 'object';
2083
2190
  readonly additionalProperties: false;
@@ -2560,6 +2667,15 @@ export declare const $Workflow: {
2560
2667
  };
2561
2668
  readonly description: 'An array of callback details for the workflow.';
2562
2669
  };
2670
+ readonly tips: {
2671
+ readonly $ref: '#/components/schemas/WorkflowTips';
2672
+ };
2673
+ readonly cost: {
2674
+ readonly $ref: '#/components/schemas/WorkflowCost';
2675
+ };
2676
+ readonly nsfwLevel: {
2677
+ readonly $ref: '#/components/schemas/NSFWLevel';
2678
+ };
2563
2679
  };
2564
2680
  readonly additionalProperties: false;
2565
2681
  readonly description: 'Details of a workflow.';
@@ -2608,6 +2724,53 @@ export declare const $WorkflowCallback: {
2608
2724
  readonly additionalProperties: false;
2609
2725
  readonly description: 'Details of a callback setup for a workflow.';
2610
2726
  };
2727
+ export declare const $WorkflowCost: {
2728
+ readonly type: 'object';
2729
+ readonly properties: {
2730
+ readonly base: {
2731
+ readonly type: 'integer';
2732
+ readonly description: 'The base cost of this request, excludsing any tips';
2733
+ readonly format: 'int32';
2734
+ };
2735
+ readonly factors: {
2736
+ readonly type: 'object';
2737
+ readonly additionalProperties: {
2738
+ readonly type: 'number';
2739
+ readonly format: 'double';
2740
+ readonly nullable: true;
2741
+ };
2742
+ readonly description: 'A breakdown of the cost factors for this request';
2743
+ readonly nullable: true;
2744
+ };
2745
+ readonly tips: {
2746
+ readonly $ref: '#/components/schemas/WorkflowCostTips';
2747
+ };
2748
+ readonly total: {
2749
+ readonly type: 'integer';
2750
+ readonly description: 'The total cost of this request, including tips';
2751
+ readonly format: 'int32';
2752
+ };
2753
+ };
2754
+ readonly additionalProperties: false;
2755
+ };
2756
+ export declare const $WorkflowCostTips: {
2757
+ readonly required: readonly ['civitai', 'creators'];
2758
+ readonly type: 'object';
2759
+ readonly properties: {
2760
+ readonly civitai: {
2761
+ readonly type: 'integer';
2762
+ readonly description: 'The buzz tipped to Civitai';
2763
+ readonly format: 'int32';
2764
+ };
2765
+ readonly creators: {
2766
+ readonly type: 'integer';
2767
+ readonly description: "The buzz tipped to the Creators who's resources were used";
2768
+ readonly format: 'int32';
2769
+ };
2770
+ };
2771
+ readonly additionalProperties: false;
2772
+ readonly description: 'Get the cost of tips';
2773
+ };
2611
2774
  export declare const $WorkflowEvent: {
2612
2775
  readonly required: readonly ['status', 'workflowId'];
2613
2776
  readonly type: 'object';
@@ -2675,6 +2838,7 @@ export declare const $WorkflowStep: {
2675
2838
  readonly $ref: '#/components/schemas/WorkflowStepJob';
2676
2839
  };
2677
2840
  readonly description: 'The jobs generated by this step.';
2841
+ readonly nullable: true;
2678
2842
  };
2679
2843
  readonly status: {
2680
2844
  readonly $ref: '#/components/schemas/WorkflowStatus';
@@ -2739,7 +2903,7 @@ export declare const $WorkflowStepEvent: {
2739
2903
  readonly description: 'Details of a workflow step event.';
2740
2904
  };
2741
2905
  export declare const $WorkflowStepJob: {
2742
- readonly required: readonly ['cost', 'id'];
2906
+ readonly required: readonly ['id'];
2743
2907
  readonly type: 'object';
2744
2908
  readonly properties: {
2745
2909
  readonly id: {
@@ -2747,11 +2911,6 @@ export declare const $WorkflowStepJob: {
2747
2911
  readonly type: 'string';
2748
2912
  readonly description: "The job's ID.";
2749
2913
  };
2750
- readonly cost: {
2751
- readonly type: 'number';
2752
- readonly description: "The job's cost.";
2753
- readonly format: 'double';
2754
- };
2755
2914
  readonly status: {
2756
2915
  readonly $ref: '#/components/schemas/WorkflowStatus';
2757
2916
  };
@@ -2770,6 +2929,11 @@ export declare const $WorkflowStepJob: {
2770
2929
  readonly queuePosition: {
2771
2930
  readonly $ref: '#/components/schemas/WorkflowStepJobQueuePosition';
2772
2931
  };
2932
+ readonly cost: {
2933
+ readonly type: 'number';
2934
+ readonly description: "The job's cost.";
2935
+ readonly format: 'double';
2936
+ };
2773
2937
  };
2774
2938
  readonly additionalProperties: false;
2775
2939
  readonly description: 'Details of a job produced by a workflow step.';
@@ -2918,12 +3082,34 @@ export declare const $WorkflowTemplate: {
2918
3082
  };
2919
3083
  readonly description: 'An array of callbacks to be triggered during the lifetime of the workflow.';
2920
3084
  };
3085
+ readonly tips: {
3086
+ readonly $ref: '#/components/schemas/WorkflowTips';
3087
+ };
2921
3088
  readonly arguments: {
2922
3089
  readonly type: 'object';
2923
3090
  readonly additionalProperties: {};
2924
3091
  readonly description: 'Get an associated collection of arguments';
2925
3092
  };
3093
+ readonly nsfwLevel: {
3094
+ readonly $ref: '#/components/schemas/NSFWLevel';
3095
+ };
2926
3096
  };
2927
3097
  readonly additionalProperties: false;
2928
3098
  readonly description: 'Details of a requested workflow.';
2929
3099
  };
3100
+ export declare const $WorkflowTips: {
3101
+ readonly type: 'object';
3102
+ readonly properties: {
3103
+ readonly civitai: {
3104
+ readonly type: 'number';
3105
+ readonly description: 'The rate of tipping that should be allocated to civitai';
3106
+ readonly format: 'double';
3107
+ };
3108
+ readonly creators: {
3109
+ readonly type: 'number';
3110
+ readonly description: 'The rate of tipping that should be allocated to creators involved in this workflow';
3111
+ readonly format: 'double';
3112
+ };
3113
+ };
3114
+ readonly additionalProperties: false;
3115
+ };