@civitai/client 0.1.7-beta.0 → 0.1.9-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.
@@ -1,15 +1,116 @@
1
+ export declare const $Blob: {
2
+ readonly required: readonly ['available', 'id'];
3
+ readonly type: 'object';
4
+ readonly properties: {
5
+ readonly id: {
6
+ readonly minLength: 1;
7
+ readonly type: 'string';
8
+ readonly description: 'Gets the id of the blob that contains this image.';
9
+ };
10
+ readonly available: {
11
+ readonly type: 'boolean';
12
+ readonly description: 'Gets a value indicating whether the blob is available.';
13
+ };
14
+ readonly url: {
15
+ readonly type: 'string';
16
+ readonly description: 'Gets a url that can be used to preview the blob.';
17
+ readonly format: 'uri';
18
+ readonly nullable: true;
19
+ };
20
+ readonly urlExpiresAt: {
21
+ readonly type: 'string';
22
+ readonly description: 'Get when the url is set to expire';
23
+ readonly format: 'date-time';
24
+ readonly nullable: true;
25
+ };
26
+ readonly jobId: {
27
+ readonly type: 'string';
28
+ readonly description: 'Get the id of the job that is associated with this blob.';
29
+ readonly nullable: true;
30
+ };
31
+ };
32
+ readonly additionalProperties: false;
33
+ readonly description: 'Represents a blob that gets produced as part of a specific job';
34
+ };
1
35
  export declare const $ComfyInput: {
2
36
  readonly required: readonly ['comfyWorkflow'];
3
37
  readonly type: 'object';
4
38
  readonly properties: {
5
39
  readonly comfyWorkflow: {
40
+ readonly type: 'object';
41
+ readonly additionalProperties: {
42
+ readonly $ref: '#/components/schemas/ComfyNode';
43
+ };
6
44
  readonly description: 'Get the comfy workflow that needs to be executed';
7
45
  };
46
+ readonly quantity: {
47
+ readonly maximum: 100;
48
+ readonly minimum: 1;
49
+ readonly type: 'integer';
50
+ readonly description: 'The number of jobs to start with this workflow.';
51
+ readonly format: 'int32';
52
+ readonly default: 1;
53
+ };
54
+ };
55
+ readonly additionalProperties: false;
56
+ };
57
+ export declare const $ComfyNode: {
58
+ readonly required: readonly ['classType', 'inputs'];
59
+ readonly type: 'object';
60
+ readonly properties: {
61
+ readonly classType: {
62
+ readonly minLength: 1;
63
+ readonly type: 'string';
64
+ };
65
+ readonly meta: {
66
+ readonly type: 'object';
67
+ readonly additionalProperties: {
68
+ readonly type: 'string';
69
+ };
70
+ readonly nullable: true;
71
+ };
72
+ readonly isChanged: {
73
+ readonly type: 'string';
74
+ readonly nullable: true;
75
+ };
76
+ readonly inputs: {
77
+ readonly type: 'object';
78
+ readonly additionalProperties: {
79
+ readonly oneOf: readonly [
80
+ {
81
+ readonly type: 'string';
82
+ },
83
+ {
84
+ readonly type: 'number';
85
+ },
86
+ {
87
+ readonly type: 'boolean';
88
+ },
89
+ {
90
+ readonly maxItems: 2;
91
+ readonly minItems: 2;
92
+ readonly type: 'array';
93
+ readonly items: {
94
+ readonly type: 'number';
95
+ };
96
+ },
97
+ ];
98
+ };
99
+ };
8
100
  };
9
101
  readonly additionalProperties: false;
10
102
  };
11
103
  export declare const $ComfyOutput: {
12
104
  readonly type: 'object';
105
+ readonly properties: {
106
+ readonly blobs: {
107
+ readonly type: 'array';
108
+ readonly items: {
109
+ readonly $ref: '#/components/schemas/Blob';
110
+ };
111
+ readonly description: 'Get a list of blobs that got generated by this comfy workflow step.';
112
+ };
113
+ };
13
114
  readonly additionalProperties: false;
14
115
  };
15
116
  export declare const $ComfyStep: {
@@ -355,39 +456,122 @@ export declare const $Expression: {
355
456
  readonly type: 'object';
356
457
  readonly additionalProperties: false;
357
458
  };
358
- export declare const $Image: {
359
- readonly required: readonly ['available', 'id', 'jobId'];
459
+ export declare const $HumanoidImageMaskCategory: {
460
+ readonly enum: readonly ['dresses', 'upperBody', 'lowerBody'];
461
+ readonly type: 'string';
462
+ };
463
+ export declare const $HumanoidImageMaskInput: {
464
+ readonly required: readonly ['category', 'imageUrl'];
360
465
  readonly type: 'object';
361
466
  readonly properties: {
362
- readonly id: {
467
+ readonly imageUrl: {
468
+ readonly type: 'string';
469
+ readonly format: 'uri';
470
+ };
471
+ readonly category: {
472
+ readonly $ref: '#/components/schemas/HumanoidImageMaskCategory';
473
+ };
474
+ };
475
+ readonly additionalProperties: false;
476
+ };
477
+ export declare const $HumanoidImageMaskOutput: {
478
+ readonly required: readonly ['blob'];
479
+ readonly type: 'object';
480
+ readonly properties: {
481
+ readonly blob: {
482
+ readonly $ref: '#/components/schemas/Blob';
483
+ };
484
+ };
485
+ readonly additionalProperties: false;
486
+ };
487
+ export declare const $HumanoidImageMaskStep: {
488
+ readonly required: readonly ['$type', 'input', 'name'];
489
+ readonly type: 'object';
490
+ readonly allOf: readonly [
491
+ {
492
+ readonly $ref: '#/components/schemas/WorkflowStep';
493
+ },
494
+ ];
495
+ readonly properties: {
496
+ readonly name: {
363
497
  readonly minLength: 1;
364
498
  readonly type: 'string';
365
- readonly description: 'Gets the id of the blob that contains this image.';
499
+ readonly description: 'The name of the workflow step. Used to allow steps to refer to one another.';
366
500
  };
367
- readonly available: {
368
- readonly type: 'boolean';
369
- readonly description: 'Gets a value indicating whether the image is available.';
501
+ readonly priority: {
502
+ readonly $ref: '#/components/schemas/Priority';
370
503
  };
371
- readonly url: {
504
+ readonly timeout: {
372
505
  readonly type: 'string';
373
- readonly description: 'Gets a url that can be used to preview the image.';
374
- readonly format: 'uri';
506
+ readonly description: 'The maximum time to wait for this step to complete.';
375
507
  readonly nullable: true;
508
+ readonly example: '00:00:00';
376
509
  };
377
- readonly urlExpiresAt: {
510
+ readonly retries: {
511
+ readonly type: 'integer';
512
+ readonly description: 'The maximum number of times this step should be retried.';
513
+ readonly format: 'int32';
514
+ readonly nullable: true;
515
+ };
516
+ readonly jobs: {
517
+ readonly type: 'array';
518
+ readonly items: {
519
+ readonly $ref: '#/components/schemas/WorkflowStepJob';
520
+ };
521
+ readonly description: 'The jobs generated by this step.';
522
+ };
523
+ readonly status: {
524
+ readonly $ref: '#/components/schemas/WorkflowStatus';
525
+ };
526
+ readonly startedAt: {
378
527
  readonly type: 'string';
379
- readonly description: 'Get when the url is set to expire';
528
+ readonly description: 'The date / time the step was started. Null if not yet started.';
380
529
  readonly format: 'date-time';
381
530
  readonly nullable: true;
382
531
  };
383
- readonly jobId: {
384
- readonly minLength: 1;
532
+ readonly completedAt: {
533
+ readonly type: 'string';
534
+ readonly description: 'The date / time the step was completed. Null if not yet completed.';
535
+ readonly format: 'date-time';
536
+ readonly nullable: true;
537
+ };
538
+ readonly metadata: {
539
+ readonly type: 'object';
540
+ readonly additionalProperties: {};
541
+ readonly description: 'A collection of user defined metadata for the workflow step.';
542
+ readonly nullable: true;
543
+ };
544
+ readonly input: {
545
+ readonly $ref: '#/components/schemas/HumanoidImageMaskInput';
546
+ };
547
+ readonly output: {
548
+ readonly $ref: '#/components/schemas/HumanoidImageMaskOutput';
549
+ };
550
+ readonly $type: {
551
+ readonly enum: readonly ['humanoidImageMask'];
552
+ readonly type: 'string';
553
+ };
554
+ };
555
+ readonly additionalProperties: false;
556
+ };
557
+ export declare const $HumanoidImageMaskStepTemplate: {
558
+ readonly required: readonly ['$type', 'input'];
559
+ readonly type: 'object';
560
+ readonly allOf: readonly [
561
+ {
562
+ readonly $ref: '#/components/schemas/WorkflowStepTemplate';
563
+ },
564
+ ];
565
+ readonly properties: {
566
+ readonly $type: {
567
+ readonly enum: readonly ['humanoidImageMask'];
385
568
  readonly type: 'string';
386
- readonly description: 'Get the id of the job that is associated with this image.';
569
+ };
570
+ readonly input: {
571
+ readonly $ref: '#/components/schemas/HumanoidImageMaskInput';
387
572
  };
388
573
  };
389
574
  readonly additionalProperties: false;
390
- readonly description: 'Represents an image that is the result of a TextToImage workflow step.';
391
575
  };
392
576
  export declare const $ImageJobControlNet: {
393
577
  readonly type: 'object';
@@ -1373,7 +1557,7 @@ export declare const $TextToImageOutput: {
1373
1557
  readonly images: {
1374
1558
  readonly type: 'array';
1375
1559
  readonly items: {
1376
- readonly $ref: '#/components/schemas/Image';
1560
+ readonly $ref: '#/components/schemas/Blob';
1377
1561
  };
1378
1562
  readonly description: 'A collection of output images.';
1379
1563
  };
@@ -1480,6 +1664,11 @@ export declare const $TextToImageV2Job: {
1480
1664
  },
1481
1665
  ];
1482
1666
  readonly properties: {
1667
+ readonly baseModel: {
1668
+ readonly type: 'string';
1669
+ readonly description: 'The base model / ecosystem for the model.';
1670
+ readonly nullable: true;
1671
+ };
1483
1672
  readonly model: {
1484
1673
  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_\\-]+))?$';
1485
1674
  readonly type: 'string';
@@ -1527,9 +1716,12 @@ export declare const $TextToImageV2Job: {
1527
1716
  readonly additionalProperties: false;
1528
1717
  };
1529
1718
  export declare const $TransactionInfo: {
1530
- readonly required: readonly ['amount', 'id'];
1719
+ readonly required: readonly ['amount', 'id', 'type'];
1531
1720
  readonly type: 'object';
1532
1721
  readonly properties: {
1722
+ readonly type: {
1723
+ readonly $ref: '#/components/schemas/TransactionType';
1724
+ };
1533
1725
  readonly amount: {
1534
1726
  readonly type: 'integer';
1535
1727
  readonly description: 'The transaction amount.';
@@ -1545,6 +1737,28 @@ export declare const $TransactionInfo: {
1545
1737
  readonly additionalProperties: false;
1546
1738
  readonly description: 'Transaction information.';
1547
1739
  };
1740
+ export declare const $TransactionSummary: {
1741
+ readonly type: 'object';
1742
+ readonly properties: {
1743
+ readonly sum: {
1744
+ readonly type: 'integer';
1745
+ readonly description: 'Get the sum of all transactions';
1746
+ readonly format: 'int32';
1747
+ };
1748
+ readonly list: {
1749
+ readonly type: 'array';
1750
+ readonly items: {
1751
+ readonly $ref: '#/components/schemas/TransactionInfo';
1752
+ };
1753
+ readonly description: 'Get a list of individual transactions';
1754
+ };
1755
+ };
1756
+ readonly additionalProperties: false;
1757
+ };
1758
+ export declare const $TransactionType: {
1759
+ readonly enum: readonly ['debit', 'credit'];
1760
+ readonly type: 'string';
1761
+ };
1548
1762
  export declare const $TranscodeInput: {
1549
1763
  readonly required: readonly ['sourceUrl'];
1550
1764
  readonly type: 'object';
@@ -1690,6 +1904,146 @@ export declare const $TranscodeStepTemplate: {
1690
1904
  };
1691
1905
  readonly additionalProperties: false;
1692
1906
  };
1907
+ export declare const $TryOnUInput: {
1908
+ readonly required: readonly ['garmentUrl', 'subjectUrl'];
1909
+ readonly type: 'object';
1910
+ readonly properties: {
1911
+ readonly subjectUrl: {
1912
+ readonly type: 'string';
1913
+ readonly format: 'uri';
1914
+ };
1915
+ readonly garmentUrl: {
1916
+ readonly type: 'string';
1917
+ readonly format: 'uri';
1918
+ };
1919
+ readonly subjectMaskUrl: {
1920
+ readonly type: 'string';
1921
+ readonly format: 'uri';
1922
+ };
1923
+ readonly subjectMaskBlobKey: {
1924
+ readonly type: 'string';
1925
+ };
1926
+ readonly garmentDescription: {
1927
+ readonly type: 'string';
1928
+ };
1929
+ readonly maskSubject: {
1930
+ readonly type: 'boolean';
1931
+ };
1932
+ readonly cropSubject: {
1933
+ readonly type: 'boolean';
1934
+ };
1935
+ readonly steps: {
1936
+ readonly type: 'integer';
1937
+ readonly format: 'int32';
1938
+ };
1939
+ readonly seed: {
1940
+ readonly maximum: 4294967295;
1941
+ readonly minimum: 0;
1942
+ readonly type: 'integer';
1943
+ readonly format: 'int64';
1944
+ };
1945
+ };
1946
+ readonly additionalProperties: false;
1947
+ };
1948
+ export declare const $TryOnUOutput: {
1949
+ readonly required: readonly ['blob'];
1950
+ readonly type: 'object';
1951
+ readonly properties: {
1952
+ readonly blob: {
1953
+ readonly $ref: '#/components/schemas/Blob';
1954
+ };
1955
+ };
1956
+ readonly additionalProperties: false;
1957
+ };
1958
+ export declare const $TryOnUStep: {
1959
+ readonly required: readonly ['$type', 'input', 'name'];
1960
+ readonly type: 'object';
1961
+ readonly allOf: readonly [
1962
+ {
1963
+ readonly $ref: '#/components/schemas/WorkflowStep';
1964
+ },
1965
+ ];
1966
+ readonly properties: {
1967
+ readonly name: {
1968
+ readonly minLength: 1;
1969
+ readonly type: 'string';
1970
+ readonly description: 'The name of the workflow step. Used to allow steps to refer to one another.';
1971
+ };
1972
+ readonly priority: {
1973
+ readonly $ref: '#/components/schemas/Priority';
1974
+ };
1975
+ readonly timeout: {
1976
+ readonly type: 'string';
1977
+ readonly description: 'The maximum time to wait for this step to complete.';
1978
+ readonly nullable: true;
1979
+ readonly example: '00:00:00';
1980
+ };
1981
+ readonly retries: {
1982
+ readonly type: 'integer';
1983
+ readonly description: 'The maximum number of times this step should be retried.';
1984
+ readonly format: 'int32';
1985
+ readonly nullable: true;
1986
+ };
1987
+ readonly jobs: {
1988
+ readonly type: 'array';
1989
+ readonly items: {
1990
+ readonly $ref: '#/components/schemas/WorkflowStepJob';
1991
+ };
1992
+ readonly description: 'The jobs generated by this step.';
1993
+ };
1994
+ readonly status: {
1995
+ readonly $ref: '#/components/schemas/WorkflowStatus';
1996
+ };
1997
+ readonly startedAt: {
1998
+ readonly type: 'string';
1999
+ readonly description: 'The date / time the step was started. Null if not yet started.';
2000
+ readonly format: 'date-time';
2001
+ readonly nullable: true;
2002
+ };
2003
+ readonly completedAt: {
2004
+ readonly type: 'string';
2005
+ readonly description: 'The date / time the step was completed. Null if not yet completed.';
2006
+ readonly format: 'date-time';
2007
+ readonly nullable: true;
2008
+ };
2009
+ readonly metadata: {
2010
+ readonly type: 'object';
2011
+ readonly additionalProperties: {};
2012
+ readonly description: 'A collection of user defined metadata for the workflow step.';
2013
+ readonly nullable: true;
2014
+ };
2015
+ readonly input: {
2016
+ readonly $ref: '#/components/schemas/TryOnUInput';
2017
+ };
2018
+ readonly output: {
2019
+ readonly $ref: '#/components/schemas/TryOnUOutput';
2020
+ };
2021
+ readonly $type: {
2022
+ readonly enum: readonly ['tryOnU'];
2023
+ readonly type: 'string';
2024
+ };
2025
+ };
2026
+ readonly additionalProperties: false;
2027
+ };
2028
+ export declare const $TryOnUStepTemplate: {
2029
+ readonly required: readonly ['$type', 'input'];
2030
+ readonly type: 'object';
2031
+ readonly allOf: readonly [
2032
+ {
2033
+ readonly $ref: '#/components/schemas/WorkflowStepTemplate';
2034
+ },
2035
+ ];
2036
+ readonly properties: {
2037
+ readonly $type: {
2038
+ readonly enum: readonly ['tryOnU'];
2039
+ readonly type: 'string';
2040
+ };
2041
+ readonly input: {
2042
+ readonly $ref: '#/components/schemas/TryOnUInput';
2043
+ };
2044
+ };
2045
+ readonly additionalProperties: false;
2046
+ };
1693
2047
  export declare const $UpdateWorkflowRequest: {
1694
2048
  readonly type: 'object';
1695
2049
  readonly properties: {
@@ -1724,6 +2078,10 @@ export declare const $UpdateWorkflowStepRequest: {
1724
2078
  };
1725
2079
  readonly additionalProperties: false;
1726
2080
  };
2081
+ export declare const $ValueTupleOfStringAndInt32: {
2082
+ readonly type: 'object';
2083
+ readonly additionalProperties: false;
2084
+ };
1727
2085
  export declare const $WorkerCapabilities: {
1728
2086
  readonly type: 'object';
1729
2087
  readonly properties: {
@@ -1745,6 +2103,12 @@ export declare const $WorkerCapabilities: {
1745
2103
  readonly llmPromptAugmentation: {
1746
2104
  readonly $ref: '#/components/schemas/LLMPromptAugmentationCapabilities';
1747
2105
  };
2106
+ readonly humanoidImageMask: {
2107
+ readonly $ref: '#/components/schemas/WorkerHumanoidImageMaskCapabilities';
2108
+ };
2109
+ readonly tryOnU: {
2110
+ readonly $ref: '#/components/schemas/WorkerTryOnUCapabilities';
2111
+ };
1748
2112
  };
1749
2113
  readonly additionalProperties: false;
1750
2114
  readonly description: "Details of a worker's capabilities.";
@@ -1860,6 +2224,10 @@ export declare const $WorkerDetails: {
1860
2224
  readonly additionalProperties: false;
1861
2225
  readonly description: 'Details for a particular worker.';
1862
2226
  };
2227
+ export declare const $WorkerHumanoidImageMaskCapabilities: {
2228
+ readonly type: 'object';
2229
+ readonly additionalProperties: false;
2230
+ };
1863
2231
  export declare const $WorkerImageCapabilities: {
1864
2232
  readonly type: 'object';
1865
2233
  readonly properties: {
@@ -2120,6 +2488,10 @@ export declare const $WorkerSimilaritySearchCapabilities: {
2120
2488
  readonly additionalProperties: false;
2121
2489
  readonly description: "Details of a worker's similarity search capabilities.";
2122
2490
  };
2491
+ export declare const $WorkerTryOnUCapabilities: {
2492
+ readonly type: 'object';
2493
+ readonly additionalProperties: false;
2494
+ };
2123
2495
  export declare const $WorkerType: {
2124
2496
  readonly enum: readonly ['normal', 'deferred'];
2125
2497
  readonly type: 'string';
@@ -2139,12 +2511,7 @@ export declare const $Workflow: {
2139
2511
  readonly format: 'date-time';
2140
2512
  };
2141
2513
  readonly transactions: {
2142
- readonly type: 'array';
2143
- readonly items: {
2144
- readonly $ref: '#/components/schemas/TransactionInfo';
2145
- };
2146
- readonly description: 'An array of transactions on this workflow.';
2147
- readonly nullable: true;
2514
+ readonly $ref: '#/components/schemas/TransactionSummary';
2148
2515
  };
2149
2516
  readonly metadata: {
2150
2517
  readonly type: 'object';
@@ -2167,6 +2534,18 @@ export declare const $Workflow: {
2167
2534
  readonly format: 'date-time';
2168
2535
  readonly nullable: true;
2169
2536
  };
2537
+ readonly tags: {
2538
+ readonly type: 'array';
2539
+ readonly items: {
2540
+ readonly type: 'string';
2541
+ };
2542
+ readonly description: 'An optional list of tags for the workflow.';
2543
+ };
2544
+ readonly arguments: {
2545
+ readonly type: 'object';
2546
+ readonly additionalProperties: {};
2547
+ readonly description: 'Get an associated collection of arguments';
2548
+ };
2170
2549
  readonly steps: {
2171
2550
  readonly type: 'array';
2172
2551
  readonly items: {
@@ -2181,13 +2560,6 @@ export declare const $Workflow: {
2181
2560
  };
2182
2561
  readonly description: 'An array of callback details for the workflow.';
2183
2562
  };
2184
- readonly tags: {
2185
- readonly type: 'array';
2186
- readonly items: {
2187
- readonly type: 'string';
2188
- };
2189
- readonly description: 'An optional list of tags for the workflow.';
2190
- };
2191
2563
  };
2192
2564
  readonly additionalProperties: false;
2193
2565
  readonly description: 'Details of a workflow.';
@@ -2331,10 +2703,12 @@ export declare const $WorkflowStep: {
2331
2703
  readonly discriminator: {
2332
2704
  readonly propertyName: '$type';
2333
2705
  readonly mapping: {
2706
+ readonly tryOnU: '#/components/schemas/TryOnUStep';
2334
2707
  readonly transcode: '#/components/schemas/TranscodeStep';
2335
- readonly textToImage: '#/components/schemas/TextToImageStep';
2336
2708
  readonly imageResourceTraining: '#/components/schemas/ImageResourceTrainingStep';
2709
+ readonly humanoidImageMask: '#/components/schemas/HumanoidImageMaskStep';
2337
2710
  readonly echo: '#/components/schemas/EchoStep';
2711
+ readonly textToImage: '#/components/schemas/TextToImageStep';
2338
2712
  readonly comfy: '#/components/schemas/ComfyStep';
2339
2713
  };
2340
2714
  };
@@ -2499,10 +2873,12 @@ export declare const $WorkflowStepTemplate: {
2499
2873
  readonly discriminator: {
2500
2874
  readonly propertyName: '$type';
2501
2875
  readonly mapping: {
2876
+ readonly tryOnU: '#/components/schemas/TryOnUStepTemplate';
2502
2877
  readonly transcode: '#/components/schemas/TranscodeStepTemplate';
2503
- readonly textToImage: '#/components/schemas/TextToImageStepTemplate';
2504
2878
  readonly imageResourceTraining: '#/components/schemas/ImageResourceTrainingStepTemplate';
2879
+ readonly humanoidImageMask: '#/components/schemas/HumanoidImageMaskStepTemplate';
2505
2880
  readonly echo: '#/components/schemas/EchoStepTemplate';
2881
+ readonly textToImage: '#/components/schemas/TextToImageStepTemplate';
2506
2882
  readonly comfy: '#/components/schemas/ComfyStepTemplate';
2507
2883
  };
2508
2884
  };
@@ -2542,6 +2918,11 @@ export declare const $WorkflowTemplate: {
2542
2918
  };
2543
2919
  readonly description: 'An array of callbacks to be triggered during the lifetime of the workflow.';
2544
2920
  };
2921
+ readonly arguments: {
2922
+ readonly type: 'object';
2923
+ readonly additionalProperties: {};
2924
+ readonly description: 'Get an associated collection of arguments';
2925
+ };
2545
2926
  };
2546
2927
  readonly additionalProperties: false;
2547
2928
  readonly description: 'Details of a requested workflow.';