@hautechai/sdk 0.0.25 → 0.0.27
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/autogenerated/api.d.ts +1386 -202
- package/dist/autogenerated/api.js +200 -40
- package/dist/sdk/accounts/index.d.ts +1 -0
- package/dist/sdk/accounts/index.js +3 -0
- package/dist/sdk/images/index.d.ts +1 -1
- package/dist/sdk/images/index.js +2 -3
- package/dist/sdk/index.d.ts +15 -14
- package/dist/sdk/operations/index.d.ts +14 -14
- package/package.json +1 -1
|
@@ -38,6 +38,22 @@ export const CompositeElementFitEnum = {
|
|
|
38
38
|
Inside: 'inside',
|
|
39
39
|
Outside: 'outside'
|
|
40
40
|
};
|
|
41
|
+
export const CompositeV1ResponseKindEnum = {
|
|
42
|
+
Operation: 'operation'
|
|
43
|
+
};
|
|
44
|
+
export const CompositeV1ResponseStatusEnum = {
|
|
45
|
+
Pending: 'pending',
|
|
46
|
+
Finished: 'finished',
|
|
47
|
+
Failed: 'failed'
|
|
48
|
+
};
|
|
49
|
+
export const CutV1ResponseKindEnum = {
|
|
50
|
+
Operation: 'operation'
|
|
51
|
+
};
|
|
52
|
+
export const CutV1ResponseStatusEnum = {
|
|
53
|
+
Pending: 'pending',
|
|
54
|
+
Finished: 'finished',
|
|
55
|
+
Failed: 'failed'
|
|
56
|
+
};
|
|
41
57
|
export const GPTV1InputModelEnum = {
|
|
42
58
|
Gpt4o: 'gpt-4o'
|
|
43
59
|
};
|
|
@@ -49,6 +65,14 @@ export const GiseleVtonV1InputCategoryEnum = {
|
|
|
49
65
|
LowerBody: 'lower_body',
|
|
50
66
|
UpperBody: 'upper_body'
|
|
51
67
|
};
|
|
68
|
+
export const GptV1ResponseKindEnum = {
|
|
69
|
+
Operation: 'operation'
|
|
70
|
+
};
|
|
71
|
+
export const GptV1ResponseStatusEnum = {
|
|
72
|
+
Pending: 'pending',
|
|
73
|
+
Finished: 'finished',
|
|
74
|
+
Failed: 'failed'
|
|
75
|
+
};
|
|
52
76
|
export const GrantAccessControllerParamsPrincipalTypeEnum = {
|
|
53
77
|
Account: 'account',
|
|
54
78
|
Group: 'group'
|
|
@@ -57,6 +81,22 @@ export const GrantAccessParamsDtoPrincipalTypeEnum = {
|
|
|
57
81
|
Account: 'account',
|
|
58
82
|
Group: 'group'
|
|
59
83
|
};
|
|
84
|
+
export const HauteLindaV1ResponseKindEnum = {
|
|
85
|
+
Operation: 'operation'
|
|
86
|
+
};
|
|
87
|
+
export const HauteLindaV1ResponseStatusEnum = {
|
|
88
|
+
Pending: 'pending',
|
|
89
|
+
Finished: 'finished',
|
|
90
|
+
Failed: 'failed'
|
|
91
|
+
};
|
|
92
|
+
export const HauteNaomiV1ResponseKindEnum = {
|
|
93
|
+
Operation: 'operation'
|
|
94
|
+
};
|
|
95
|
+
export const HauteNaomiV1ResponseStatusEnum = {
|
|
96
|
+
Pending: 'pending',
|
|
97
|
+
Finished: 'finished',
|
|
98
|
+
Failed: 'failed'
|
|
99
|
+
};
|
|
60
100
|
export const ImageEntityKindEnum = {
|
|
61
101
|
Collection: 'collection',
|
|
62
102
|
Operation: 'operation',
|
|
@@ -66,6 +106,22 @@ export const ImageEntityKindEnum = {
|
|
|
66
106
|
Storage: 'storage',
|
|
67
107
|
Pipeline: 'pipeline'
|
|
68
108
|
};
|
|
109
|
+
export const ImagineKateV1ResponseKindEnum = {
|
|
110
|
+
Operation: 'operation'
|
|
111
|
+
};
|
|
112
|
+
export const ImagineKateV1ResponseStatusEnum = {
|
|
113
|
+
Pending: 'pending',
|
|
114
|
+
Finished: 'finished',
|
|
115
|
+
Failed: 'failed'
|
|
116
|
+
};
|
|
117
|
+
export const InpaintKateV1ResponseKindEnum = {
|
|
118
|
+
Operation: 'operation'
|
|
119
|
+
};
|
|
120
|
+
export const InpaintKateV1ResponseStatusEnum = {
|
|
121
|
+
Pending: 'pending',
|
|
122
|
+
Finished: 'finished',
|
|
123
|
+
Failed: 'failed'
|
|
124
|
+
};
|
|
69
125
|
export const KateImagineV1InputAspectRatioEnum = {
|
|
70
126
|
_11: '1:1',
|
|
71
127
|
_97: '9:7',
|
|
@@ -129,27 +185,40 @@ export const ListStacksParamsDtoOrderByEnum = {
|
|
|
129
185
|
UpdatedAtAsc: 'updatedAt_ASC',
|
|
130
186
|
UpdatedAtDesc: 'updatedAt_DESC'
|
|
131
187
|
};
|
|
188
|
+
export const NegateImageV1ResponseKindEnum = {
|
|
189
|
+
Operation: 'operation'
|
|
190
|
+
};
|
|
191
|
+
export const NegateImageV1ResponseStatusEnum = {
|
|
192
|
+
Pending: 'pending',
|
|
193
|
+
Finished: 'finished',
|
|
194
|
+
Failed: 'failed'
|
|
195
|
+
};
|
|
196
|
+
export const ObjectDetectionV1ResponseKindEnum = {
|
|
197
|
+
Operation: 'operation'
|
|
198
|
+
};
|
|
199
|
+
export const ObjectDetectionV1ResponseStatusEnum = {
|
|
200
|
+
Pending: 'pending',
|
|
201
|
+
Finished: 'finished',
|
|
202
|
+
Failed: 'failed'
|
|
203
|
+
};
|
|
132
204
|
export const OperationEntityKindEnum = {
|
|
133
|
-
|
|
134
|
-
Operation: 'operation',
|
|
135
|
-
Stack: 'stack',
|
|
136
|
-
Image: 'image',
|
|
137
|
-
Pose: 'pose',
|
|
138
|
-
Storage: 'storage',
|
|
139
|
-
Pipeline: 'pipeline'
|
|
205
|
+
Operation: 'operation'
|
|
140
206
|
};
|
|
141
207
|
export const OperationEntityStatusEnum = {
|
|
142
208
|
Pending: 'pending',
|
|
143
209
|
Finished: 'finished',
|
|
144
210
|
Failed: 'failed'
|
|
145
211
|
};
|
|
212
|
+
export const OperationOutputImageMultipleKindEnum = {
|
|
213
|
+
ImageMultiple: 'image/multiple'
|
|
214
|
+
};
|
|
215
|
+
export const OperationOutputImageSingleKindEnum = {
|
|
216
|
+
ImageSingle: 'image/single'
|
|
217
|
+
};
|
|
218
|
+
export const OperationOutputJSONKindEnum = {
|
|
219
|
+
Json: 'json'
|
|
220
|
+
};
|
|
146
221
|
export const PipelineEntityKindEnum = {
|
|
147
|
-
Collection: 'collection',
|
|
148
|
-
Operation: 'operation',
|
|
149
|
-
Stack: 'stack',
|
|
150
|
-
Image: 'image',
|
|
151
|
-
Pose: 'pose',
|
|
152
|
-
Storage: 'storage',
|
|
153
222
|
Pipeline: 'pipeline'
|
|
154
223
|
};
|
|
155
224
|
export const PipelineEntityStatusEnum = {
|
|
@@ -158,13 +227,15 @@ export const PipelineEntityStatusEnum = {
|
|
|
158
227
|
Failed: 'failed'
|
|
159
228
|
};
|
|
160
229
|
export const PoseEntityKindEnum = {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
230
|
+
Pose: 'pose'
|
|
231
|
+
};
|
|
232
|
+
export const PoseEstimationV1ResponseKindEnum = {
|
|
233
|
+
Operation: 'operation'
|
|
234
|
+
};
|
|
235
|
+
export const PoseEstimationV1ResponseStatusEnum = {
|
|
236
|
+
Pending: 'pending',
|
|
237
|
+
Finished: 'finished',
|
|
238
|
+
Failed: 'failed'
|
|
168
239
|
};
|
|
169
240
|
export const RemoveAccountFromGroupControllerParamsDtoRoleEnum = {
|
|
170
241
|
Maintainer: 'maintainer',
|
|
@@ -185,17 +256,43 @@ export const ResourceEntityKindEnum = {
|
|
|
185
256
|
Storage: 'storage',
|
|
186
257
|
Pipeline: 'pipeline'
|
|
187
258
|
};
|
|
259
|
+
export const SegmentAnythingEmbeddingsV1ResponseKindEnum = {
|
|
260
|
+
Operation: 'operation'
|
|
261
|
+
};
|
|
262
|
+
export const SegmentAnythingEmbeddingsV1ResponseStatusEnum = {
|
|
263
|
+
Pending: 'pending',
|
|
264
|
+
Finished: 'finished',
|
|
265
|
+
Failed: 'failed'
|
|
266
|
+
};
|
|
267
|
+
export const SegmentAnythingMaskV1ResponseKindEnum = {
|
|
268
|
+
Operation: 'operation'
|
|
269
|
+
};
|
|
270
|
+
export const SegmentAnythingMaskV1ResponseStatusEnum = {
|
|
271
|
+
Pending: 'pending',
|
|
272
|
+
Finished: 'finished',
|
|
273
|
+
Failed: 'failed'
|
|
274
|
+
};
|
|
188
275
|
export const StackEntityKindEnum = {
|
|
189
276
|
Stack: 'stack'
|
|
190
277
|
};
|
|
191
278
|
export const StorageEntityKindEnum = {
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
279
|
+
Storage: 'storage'
|
|
280
|
+
};
|
|
281
|
+
export const UpscaleV1ResponseKindEnum = {
|
|
282
|
+
Operation: 'operation'
|
|
283
|
+
};
|
|
284
|
+
export const UpscaleV1ResponseStatusEnum = {
|
|
285
|
+
Pending: 'pending',
|
|
286
|
+
Finished: 'finished',
|
|
287
|
+
Failed: 'failed'
|
|
288
|
+
};
|
|
289
|
+
export const VtonGiseleV1ResponseKindEnum = {
|
|
290
|
+
Operation: 'operation'
|
|
291
|
+
};
|
|
292
|
+
export const VtonGiseleV1ResponseStatusEnum = {
|
|
293
|
+
Pending: 'pending',
|
|
294
|
+
Finished: 'finished',
|
|
295
|
+
Failed: 'failed'
|
|
199
296
|
};
|
|
200
297
|
/**
|
|
201
298
|
* AccessApi - axios parameter creator
|
|
@@ -500,13 +597,13 @@ export const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
500
597
|
},
|
|
501
598
|
/**
|
|
502
599
|
*
|
|
503
|
-
* @param {
|
|
600
|
+
* @param {AccountsControllerListAccountsV1OrderByEnum} [orderBy]
|
|
504
601
|
* @param {number} [limit]
|
|
505
602
|
* @param {string} [cursor]
|
|
506
603
|
* @param {*} [options] Override http request option.
|
|
507
604
|
* @throws {RequiredError}
|
|
508
605
|
*/
|
|
509
|
-
|
|
606
|
+
accountsControllerListAccountsV1: async (orderBy, limit, cursor, options = {}) => {
|
|
510
607
|
const localVarPath = `/v1/accounts`;
|
|
511
608
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
512
609
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -595,16 +692,16 @@ export const AccountsApiFp = function (configuration) {
|
|
|
595
692
|
},
|
|
596
693
|
/**
|
|
597
694
|
*
|
|
598
|
-
* @param {
|
|
695
|
+
* @param {AccountsControllerListAccountsV1OrderByEnum} [orderBy]
|
|
599
696
|
* @param {number} [limit]
|
|
600
697
|
* @param {string} [cursor]
|
|
601
698
|
* @param {*} [options] Override http request option.
|
|
602
699
|
* @throws {RequiredError}
|
|
603
700
|
*/
|
|
604
|
-
async
|
|
605
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
701
|
+
async accountsControllerListAccountsV1(orderBy, limit, cursor, options) {
|
|
702
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.accountsControllerListAccountsV1(orderBy, limit, cursor, options);
|
|
606
703
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
607
|
-
const localVarOperationServerBasePath = operationServerMap['AccountsApi.
|
|
704
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.accountsControllerListAccountsV1']?.[localVarOperationServerIndex]?.url;
|
|
608
705
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
609
706
|
},
|
|
610
707
|
};
|
|
@@ -653,14 +750,14 @@ export const AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
653
750
|
},
|
|
654
751
|
/**
|
|
655
752
|
*
|
|
656
|
-
* @param {
|
|
753
|
+
* @param {AccountsControllerListAccountsV1OrderByEnum} [orderBy]
|
|
657
754
|
* @param {number} [limit]
|
|
658
755
|
* @param {string} [cursor]
|
|
659
756
|
* @param {*} [options] Override http request option.
|
|
660
757
|
* @throws {RequiredError}
|
|
661
758
|
*/
|
|
662
|
-
|
|
663
|
-
return localVarFp.
|
|
759
|
+
accountsControllerListAccountsV1(orderBy, limit, cursor, options) {
|
|
760
|
+
return localVarFp.accountsControllerListAccountsV1(orderBy, limit, cursor, options).then((request) => request(axios, basePath));
|
|
664
761
|
},
|
|
665
762
|
};
|
|
666
763
|
};
|
|
@@ -712,21 +809,21 @@ export class AccountsApi extends BaseAPI {
|
|
|
712
809
|
}
|
|
713
810
|
/**
|
|
714
811
|
*
|
|
715
|
-
* @param {
|
|
812
|
+
* @param {AccountsControllerListAccountsV1OrderByEnum} [orderBy]
|
|
716
813
|
* @param {number} [limit]
|
|
717
814
|
* @param {string} [cursor]
|
|
718
815
|
* @param {*} [options] Override http request option.
|
|
719
816
|
* @throws {RequiredError}
|
|
720
817
|
* @memberof AccountsApi
|
|
721
818
|
*/
|
|
722
|
-
|
|
723
|
-
return AccountsApiFp(this.configuration).
|
|
819
|
+
accountsControllerListAccountsV1(orderBy, limit, cursor, options) {
|
|
820
|
+
return AccountsApiFp(this.configuration).accountsControllerListAccountsV1(orderBy, limit, cursor, options).then((request) => request(this.axios, this.basePath));
|
|
724
821
|
}
|
|
725
822
|
}
|
|
726
823
|
/**
|
|
727
824
|
* @export
|
|
728
825
|
*/
|
|
729
|
-
export const
|
|
826
|
+
export const AccountsControllerListAccountsV1OrderByEnum = {
|
|
730
827
|
Asc: 'createdAt_ASC',
|
|
731
828
|
Desc: 'createdAt_DESC'
|
|
732
829
|
};
|
|
@@ -5164,6 +5261,38 @@ export const OperationsApiAxiosParamCreator = function (configuration) {
|
|
|
5164
5261
|
options: localVarRequestOptions,
|
|
5165
5262
|
};
|
|
5166
5263
|
},
|
|
5264
|
+
/**
|
|
5265
|
+
*
|
|
5266
|
+
* @param {NegateImageV1ControllerInput} negateImageV1ControllerInput
|
|
5267
|
+
* @param {*} [options] Override http request option.
|
|
5268
|
+
* @throws {RequiredError}
|
|
5269
|
+
*/
|
|
5270
|
+
operationsControllerRunNegateImageV1V1: async (negateImageV1ControllerInput, options = {}) => {
|
|
5271
|
+
// verify required parameter 'negateImageV1ControllerInput' is not null or undefined
|
|
5272
|
+
assertParamExists('operationsControllerRunNegateImageV1V1', 'negateImageV1ControllerInput', negateImageV1ControllerInput);
|
|
5273
|
+
const localVarPath = `/v1/operations/run/negateImage.v1`;
|
|
5274
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5275
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5276
|
+
let baseOptions;
|
|
5277
|
+
if (configuration) {
|
|
5278
|
+
baseOptions = configuration.baseOptions;
|
|
5279
|
+
}
|
|
5280
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
5281
|
+
const localVarHeaderParameter = {};
|
|
5282
|
+
const localVarQueryParameter = {};
|
|
5283
|
+
// authentication bearer required
|
|
5284
|
+
// http bearer authentication required
|
|
5285
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
5286
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5287
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5288
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5289
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
5290
|
+
localVarRequestOptions.data = serializeDataIfNeeded(negateImageV1ControllerInput, localVarRequestOptions, configuration);
|
|
5291
|
+
return {
|
|
5292
|
+
url: toPathString(localVarUrlObj),
|
|
5293
|
+
options: localVarRequestOptions,
|
|
5294
|
+
};
|
|
5295
|
+
},
|
|
5167
5296
|
/**
|
|
5168
5297
|
*
|
|
5169
5298
|
* @param {ObjectDetectionV1ControllerInput} objectDetectionV1ControllerInput
|
|
@@ -5523,6 +5652,18 @@ export const OperationsApiFp = function (configuration) {
|
|
|
5523
5652
|
const localVarOperationServerBasePath = operationServerMap['OperationsApi.operationsControllerRunInpaintKateV1V1']?.[localVarOperationServerIndex]?.url;
|
|
5524
5653
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5525
5654
|
},
|
|
5655
|
+
/**
|
|
5656
|
+
*
|
|
5657
|
+
* @param {NegateImageV1ControllerInput} negateImageV1ControllerInput
|
|
5658
|
+
* @param {*} [options] Override http request option.
|
|
5659
|
+
* @throws {RequiredError}
|
|
5660
|
+
*/
|
|
5661
|
+
async operationsControllerRunNegateImageV1V1(negateImageV1ControllerInput, options) {
|
|
5662
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.operationsControllerRunNegateImageV1V1(negateImageV1ControllerInput, options);
|
|
5663
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5664
|
+
const localVarOperationServerBasePath = operationServerMap['OperationsApi.operationsControllerRunNegateImageV1V1']?.[localVarOperationServerIndex]?.url;
|
|
5665
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5666
|
+
},
|
|
5526
5667
|
/**
|
|
5527
5668
|
*
|
|
5528
5669
|
* @param {ObjectDetectionV1ControllerInput} objectDetectionV1ControllerInput
|
|
@@ -5709,6 +5850,15 @@ export const OperationsApiFactory = function (configuration, basePath, axios) {
|
|
|
5709
5850
|
operationsControllerRunInpaintKateV1V1(kateInpaintV1ControllerInput, options) {
|
|
5710
5851
|
return localVarFp.operationsControllerRunInpaintKateV1V1(kateInpaintV1ControllerInput, options).then((request) => request(axios, basePath));
|
|
5711
5852
|
},
|
|
5853
|
+
/**
|
|
5854
|
+
*
|
|
5855
|
+
* @param {NegateImageV1ControllerInput} negateImageV1ControllerInput
|
|
5856
|
+
* @param {*} [options] Override http request option.
|
|
5857
|
+
* @throws {RequiredError}
|
|
5858
|
+
*/
|
|
5859
|
+
operationsControllerRunNegateImageV1V1(negateImageV1ControllerInput, options) {
|
|
5860
|
+
return localVarFp.operationsControllerRunNegateImageV1V1(negateImageV1ControllerInput, options).then((request) => request(axios, basePath));
|
|
5861
|
+
},
|
|
5712
5862
|
/**
|
|
5713
5863
|
*
|
|
5714
5864
|
* @param {ObjectDetectionV1ControllerInput} objectDetectionV1ControllerInput
|
|
@@ -5884,6 +6034,16 @@ export class OperationsApi extends BaseAPI {
|
|
|
5884
6034
|
operationsControllerRunInpaintKateV1V1(kateInpaintV1ControllerInput, options) {
|
|
5885
6035
|
return OperationsApiFp(this.configuration).operationsControllerRunInpaintKateV1V1(kateInpaintV1ControllerInput, options).then((request) => request(this.axios, this.basePath));
|
|
5886
6036
|
}
|
|
6037
|
+
/**
|
|
6038
|
+
*
|
|
6039
|
+
* @param {NegateImageV1ControllerInput} negateImageV1ControllerInput
|
|
6040
|
+
* @param {*} [options] Override http request option.
|
|
6041
|
+
* @throws {RequiredError}
|
|
6042
|
+
* @memberof OperationsApi
|
|
6043
|
+
*/
|
|
6044
|
+
operationsControllerRunNegateImageV1V1(negateImageV1ControllerInput, options) {
|
|
6045
|
+
return OperationsApiFp(this.configuration).operationsControllerRunNegateImageV1V1(negateImageV1ControllerInput, options).then((request) => request(this.axios, this.basePath));
|
|
6046
|
+
}
|
|
5887
6047
|
/**
|
|
5888
6048
|
*
|
|
5889
6049
|
* @param {ObjectDetectionV1ControllerInput} objectDetectionV1ControllerInput
|
|
@@ -12,6 +12,9 @@ const accounts = (options) => {
|
|
|
12
12
|
getByAlias: async (props) => api.callWithReturningUndefinedOn404({
|
|
13
13
|
run: (methods) => methods.accountsControllerGetAccountByAliasV1(props.alias),
|
|
14
14
|
}),
|
|
15
|
+
list: async () => api.call({
|
|
16
|
+
run: (methods) => methods.accountsControllerListAccountsV1(),
|
|
17
|
+
})
|
|
15
18
|
};
|
|
16
19
|
};
|
|
17
20
|
export default accounts;
|
|
@@ -2,7 +2,7 @@ import { SDKOptions } from '../../types';
|
|
|
2
2
|
import { ImageEntity } from '../../autogenerated';
|
|
3
3
|
declare const images: (options: SDKOptions) => {
|
|
4
4
|
createFromFile: (props: {
|
|
5
|
-
file:
|
|
5
|
+
file: Blob;
|
|
6
6
|
}) => Promise<ImageEntity>;
|
|
7
7
|
createFromUrl: (props: {
|
|
8
8
|
url: string;
|
package/dist/sdk/images/index.js
CHANGED
|
@@ -5,7 +5,7 @@ const images = (options) => {
|
|
|
5
5
|
const api = useAutogeneratedAPI({ API: ImagesApi, options });
|
|
6
6
|
const createFromFile = async (props) => {
|
|
7
7
|
const uploadUrl = await api.call({
|
|
8
|
-
run: (methods) => methods.imagesControllerStartUploadV1(
|
|
8
|
+
run: (methods) => methods.imagesControllerStartUploadV1(),
|
|
9
9
|
transform: (data) => data.uploadUrl,
|
|
10
10
|
});
|
|
11
11
|
const formData = new FormData();
|
|
@@ -14,8 +14,7 @@ const images = (options) => {
|
|
|
14
14
|
headers: { 'Content-Type': 'multipart/form-data' },
|
|
15
15
|
});
|
|
16
16
|
const fileToken = response.data.fileToken;
|
|
17
|
-
|
|
18
|
-
return image;
|
|
17
|
+
return await api.call({ run: (methods) => methods.imagesControllerFinalizeUploadV1({ fileToken }) });
|
|
19
18
|
};
|
|
20
19
|
return {
|
|
21
20
|
createFromFile,
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
18
18
|
getByAlias: (props: {
|
|
19
19
|
alias: string;
|
|
20
20
|
}) => Promise<import("../types").AccountEntity | undefined>;
|
|
21
|
+
list: () => Promise<import("../types").AccountEntity[]>;
|
|
21
22
|
};
|
|
22
23
|
balances: {
|
|
23
24
|
add: (props: {
|
|
@@ -79,7 +80,7 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
79
80
|
};
|
|
80
81
|
images: {
|
|
81
82
|
createFromFile: (props: {
|
|
82
|
-
file:
|
|
83
|
+
file: Blob;
|
|
83
84
|
}) => Promise<import("../types").ImageEntity>;
|
|
84
85
|
createFromUrl: (props: {
|
|
85
86
|
url: string;
|
|
@@ -97,52 +98,52 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
97
98
|
v1: (props: {
|
|
98
99
|
input: import("../autogenerated").CompositeV1Input;
|
|
99
100
|
metadata?: any;
|
|
100
|
-
}) => Promise<import("../
|
|
101
|
+
}) => Promise<import("../autogenerated").CompositeV1Response>;
|
|
101
102
|
};
|
|
102
103
|
cut: {
|
|
103
104
|
v1: (props: {
|
|
104
105
|
input: import("../autogenerated").CutV1Input;
|
|
105
106
|
metadata?: any;
|
|
106
|
-
}) => Promise<import("../
|
|
107
|
+
}) => Promise<import("../autogenerated").CutV1Response>;
|
|
107
108
|
};
|
|
108
109
|
detect: {
|
|
109
110
|
v1: (props: {
|
|
110
111
|
input: import("../autogenerated").ObjectDetectionV1Input;
|
|
111
112
|
metadata?: any;
|
|
112
|
-
}) => Promise<import("../
|
|
113
|
+
}) => Promise<import("../autogenerated").ObjectDetectionV1Response>;
|
|
113
114
|
};
|
|
114
115
|
estimatePose: {
|
|
115
116
|
v1: (props: {
|
|
116
117
|
input: import("../autogenerated").PoseEstimationV1Input;
|
|
117
118
|
metadata?: any;
|
|
118
|
-
}) => Promise<import("../
|
|
119
|
+
}) => Promise<import("../autogenerated").PoseEstimationV1Response>;
|
|
119
120
|
};
|
|
120
121
|
haute: {
|
|
121
122
|
linda: {
|
|
122
123
|
v1: (props: {
|
|
123
124
|
input: import("../autogenerated").LindaHauteV1Input;
|
|
124
125
|
metadata?: any;
|
|
125
|
-
}) => Promise<import("../
|
|
126
|
+
}) => Promise<import("../autogenerated").HauteLindaV1Response>;
|
|
126
127
|
};
|
|
127
128
|
naomi: {
|
|
128
129
|
v1: (props: {
|
|
129
130
|
input: import("../autogenerated").NaomiHauteV1Input;
|
|
130
131
|
metadata?: any;
|
|
131
|
-
}) => Promise<import("../
|
|
132
|
+
}) => Promise<import("../autogenerated").HauteNaomiV1Response>;
|
|
132
133
|
};
|
|
133
134
|
};
|
|
134
135
|
gpt: {
|
|
135
136
|
v1: (props: {
|
|
136
137
|
input: import("../autogenerated").GPTV1Input;
|
|
137
138
|
metadata?: any;
|
|
138
|
-
}) => Promise<import("../
|
|
139
|
+
}) => Promise<import("../autogenerated").GptV1Response>;
|
|
139
140
|
};
|
|
140
141
|
imagine: {
|
|
141
142
|
kate: {
|
|
142
143
|
v1: (props: {
|
|
143
144
|
input: import("../autogenerated").KateImagineV1Input;
|
|
144
145
|
metadata?: any;
|
|
145
|
-
}) => Promise<import("../
|
|
146
|
+
}) => Promise<import("../autogenerated").ImagineKateV1Response>;
|
|
146
147
|
};
|
|
147
148
|
};
|
|
148
149
|
inpaint: {
|
|
@@ -150,33 +151,33 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
150
151
|
v1: (props: {
|
|
151
152
|
input: import("../autogenerated").KateInpaintV1Input;
|
|
152
153
|
metadata?: any;
|
|
153
|
-
}) => Promise<import("../
|
|
154
|
+
}) => Promise<import("../autogenerated").ImagineKateV1Response>;
|
|
154
155
|
};
|
|
155
156
|
};
|
|
156
157
|
segmentEmbeddings: {
|
|
157
158
|
v1: (props: {
|
|
158
159
|
input: import("../autogenerated").SegmentAnythingEmbeddingsV1Input;
|
|
159
160
|
metadata?: any;
|
|
160
|
-
}) => Promise<import("../
|
|
161
|
+
}) => Promise<import("../autogenerated").SegmentAnythingEmbeddingsV1Response>;
|
|
161
162
|
};
|
|
162
163
|
segmentMask: {
|
|
163
164
|
v1: (props: {
|
|
164
165
|
input: import("../autogenerated").SegmentAnythingMaskV1Input;
|
|
165
166
|
metadata?: any;
|
|
166
|
-
}) => Promise<import("../
|
|
167
|
+
}) => Promise<import("../autogenerated").SegmentAnythingMaskV1Response>;
|
|
167
168
|
};
|
|
168
169
|
upscale: {
|
|
169
170
|
v1: (props: {
|
|
170
171
|
input: import("../autogenerated").UpscaleV1Input;
|
|
171
172
|
metadata?: any;
|
|
172
|
-
}) => Promise<import("../
|
|
173
|
+
}) => Promise<import("../autogenerated").UpscaleV1Response>;
|
|
173
174
|
};
|
|
174
175
|
vton: {
|
|
175
176
|
gisele: {
|
|
176
177
|
v1: (props: {
|
|
177
178
|
input: import("../autogenerated").GiseleVtonV1Input;
|
|
178
179
|
metadata?: any;
|
|
179
|
-
}) => Promise<import("../
|
|
180
|
+
}) => Promise<import("../autogenerated").VtonGiseleV1Response>;
|
|
180
181
|
};
|
|
181
182
|
};
|
|
182
183
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CompositeV1Input, CutV1Input, GiseleVtonV1Input, GPTV1Input, KateImagineV1Input, KateInpaintV1Input, LindaHauteV1Input, NaomiHauteV1Input, ObjectDetectionV1Input, OperationEntity, PoseEstimationV1Input, SegmentAnythingEmbeddingsV1Input, SegmentAnythingMaskV1Input, UpscaleV1Input } from '../../autogenerated';
|
|
1
|
+
import { CompositeV1Input, CompositeV1Response, CutV1Input, CutV1Response, GiseleVtonV1Input, GPTV1Input, GptV1Response, HauteLindaV1Response, HauteNaomiV1Response, ImagineKateV1Response, KateImagineV1Input, KateInpaintV1Input, LindaHauteV1Input, NaomiHauteV1Input, ObjectDetectionV1Input, ObjectDetectionV1Response, OperationEntity, PoseEstimationV1Input, PoseEstimationV1Response, SegmentAnythingEmbeddingsV1Input, SegmentAnythingEmbeddingsV1Response, SegmentAnythingMaskV1Input, SegmentAnythingMaskV1Response, UpscaleV1Input, UpscaleV1Response, VtonGiseleV1Response } from '../../autogenerated';
|
|
2
2
|
import { ListProps, ListResponse, SDKOptions } from '../../types';
|
|
3
3
|
declare const operations: (options: SDKOptions) => {
|
|
4
4
|
create: {
|
|
@@ -6,52 +6,52 @@ declare const operations: (options: SDKOptions) => {
|
|
|
6
6
|
v1: (props: {
|
|
7
7
|
input: CompositeV1Input;
|
|
8
8
|
metadata?: any;
|
|
9
|
-
}) => Promise<
|
|
9
|
+
}) => Promise<CompositeV1Response>;
|
|
10
10
|
};
|
|
11
11
|
cut: {
|
|
12
12
|
v1: (props: {
|
|
13
13
|
input: CutV1Input;
|
|
14
14
|
metadata?: any;
|
|
15
|
-
}) => Promise<
|
|
15
|
+
}) => Promise<CutV1Response>;
|
|
16
16
|
};
|
|
17
17
|
detect: {
|
|
18
18
|
v1: (props: {
|
|
19
19
|
input: ObjectDetectionV1Input;
|
|
20
20
|
metadata?: any;
|
|
21
|
-
}) => Promise<
|
|
21
|
+
}) => Promise<ObjectDetectionV1Response>;
|
|
22
22
|
};
|
|
23
23
|
estimatePose: {
|
|
24
24
|
v1: (props: {
|
|
25
25
|
input: PoseEstimationV1Input;
|
|
26
26
|
metadata?: any;
|
|
27
|
-
}) => Promise<
|
|
27
|
+
}) => Promise<PoseEstimationV1Response>;
|
|
28
28
|
};
|
|
29
29
|
haute: {
|
|
30
30
|
linda: {
|
|
31
31
|
v1: (props: {
|
|
32
32
|
input: LindaHauteV1Input;
|
|
33
33
|
metadata?: any;
|
|
34
|
-
}) => Promise<
|
|
34
|
+
}) => Promise<HauteLindaV1Response>;
|
|
35
35
|
};
|
|
36
36
|
naomi: {
|
|
37
37
|
v1: (props: {
|
|
38
38
|
input: NaomiHauteV1Input;
|
|
39
39
|
metadata?: any;
|
|
40
|
-
}) => Promise<
|
|
40
|
+
}) => Promise<HauteNaomiV1Response>;
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
43
|
gpt: {
|
|
44
44
|
v1: (props: {
|
|
45
45
|
input: GPTV1Input;
|
|
46
46
|
metadata?: any;
|
|
47
|
-
}) => Promise<
|
|
47
|
+
}) => Promise<GptV1Response>;
|
|
48
48
|
};
|
|
49
49
|
imagine: {
|
|
50
50
|
kate: {
|
|
51
51
|
v1: (props: {
|
|
52
52
|
input: KateImagineV1Input;
|
|
53
53
|
metadata?: any;
|
|
54
|
-
}) => Promise<
|
|
54
|
+
}) => Promise<ImagineKateV1Response>;
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
57
|
inpaint: {
|
|
@@ -59,33 +59,33 @@ declare const operations: (options: SDKOptions) => {
|
|
|
59
59
|
v1: (props: {
|
|
60
60
|
input: KateInpaintV1Input;
|
|
61
61
|
metadata?: any;
|
|
62
|
-
}) => Promise<
|
|
62
|
+
}) => Promise<ImagineKateV1Response>;
|
|
63
63
|
};
|
|
64
64
|
};
|
|
65
65
|
segmentEmbeddings: {
|
|
66
66
|
v1: (props: {
|
|
67
67
|
input: SegmentAnythingEmbeddingsV1Input;
|
|
68
68
|
metadata?: any;
|
|
69
|
-
}) => Promise<
|
|
69
|
+
}) => Promise<SegmentAnythingEmbeddingsV1Response>;
|
|
70
70
|
};
|
|
71
71
|
segmentMask: {
|
|
72
72
|
v1: (props: {
|
|
73
73
|
input: SegmentAnythingMaskV1Input;
|
|
74
74
|
metadata?: any;
|
|
75
|
-
}) => Promise<
|
|
75
|
+
}) => Promise<SegmentAnythingMaskV1Response>;
|
|
76
76
|
};
|
|
77
77
|
upscale: {
|
|
78
78
|
v1: (props: {
|
|
79
79
|
input: UpscaleV1Input;
|
|
80
80
|
metadata?: any;
|
|
81
|
-
}) => Promise<
|
|
81
|
+
}) => Promise<UpscaleV1Response>;
|
|
82
82
|
};
|
|
83
83
|
vton: {
|
|
84
84
|
gisele: {
|
|
85
85
|
v1: (props: {
|
|
86
86
|
input: GiseleVtonV1Input;
|
|
87
87
|
metadata?: any;
|
|
88
|
-
}) => Promise<
|
|
88
|
+
}) => Promise<VtonGiseleV1Response>;
|
|
89
89
|
};
|
|
90
90
|
};
|
|
91
91
|
};
|