@hautechai/sdk 0.3.18 → 0.3.19
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.
|
@@ -25,18 +25,7 @@ export interface AccountEntity {
|
|
|
25
25
|
* @memberof AccountEntity
|
|
26
26
|
*/
|
|
27
27
|
'id': string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof AccountEntity
|
|
32
|
-
*/
|
|
33
|
-
'type': AccountEntityTypeEnum;
|
|
34
28
|
}
|
|
35
|
-
export declare const AccountEntityTypeEnum: {
|
|
36
|
-
readonly Root: "root";
|
|
37
|
-
readonly User: "user";
|
|
38
|
-
};
|
|
39
|
-
export type AccountEntityTypeEnum = typeof AccountEntityTypeEnum[keyof typeof AccountEntityTypeEnum];
|
|
40
29
|
/**
|
|
41
30
|
*
|
|
42
31
|
* @export
|
|
@@ -242,10 +231,10 @@ export interface BalanceResultDto {
|
|
|
242
231
|
export interface CollectionEntity {
|
|
243
232
|
/**
|
|
244
233
|
*
|
|
245
|
-
* @type {
|
|
234
|
+
* @type {string}
|
|
246
235
|
* @memberof CollectionEntity
|
|
247
236
|
*/
|
|
248
|
-
'kind':
|
|
237
|
+
'kind': CollectionEntityKindEnum;
|
|
249
238
|
/**
|
|
250
239
|
*
|
|
251
240
|
* @type {string}
|
|
@@ -277,6 +266,17 @@ export interface CollectionEntity {
|
|
|
277
266
|
*/
|
|
278
267
|
'updatedAt': string;
|
|
279
268
|
}
|
|
269
|
+
export declare const CollectionEntityKindEnum: {
|
|
270
|
+
readonly Collection: "collection";
|
|
271
|
+
readonly Operation: "operation";
|
|
272
|
+
readonly Stack: "stack";
|
|
273
|
+
readonly Image: "image";
|
|
274
|
+
readonly Pose: "pose";
|
|
275
|
+
readonly Storage: "storage";
|
|
276
|
+
readonly Pipeline: "pipeline";
|
|
277
|
+
readonly Forbidden: "forbidden";
|
|
278
|
+
};
|
|
279
|
+
export type CollectionEntityKindEnum = typeof CollectionEntityKindEnum[keyof typeof CollectionEntityKindEnum];
|
|
280
280
|
/**
|
|
281
281
|
*
|
|
282
282
|
* @export
|
|
@@ -455,6 +455,121 @@ export declare const CompositeV1ResponseStatusEnum: {
|
|
|
455
455
|
readonly Failed: "failed";
|
|
456
456
|
};
|
|
457
457
|
export type CompositeV1ResponseStatusEnum = typeof CompositeV1ResponseStatusEnum[keyof typeof CompositeV1ResponseStatusEnum];
|
|
458
|
+
/**
|
|
459
|
+
*
|
|
460
|
+
* @export
|
|
461
|
+
* @interface ContrastV1Input
|
|
462
|
+
*/
|
|
463
|
+
export interface ContrastV1Input {
|
|
464
|
+
/**
|
|
465
|
+
*
|
|
466
|
+
* @type {string}
|
|
467
|
+
* @memberof ContrastV1Input
|
|
468
|
+
*/
|
|
469
|
+
'imageId': string;
|
|
470
|
+
/**
|
|
471
|
+
*
|
|
472
|
+
* @type {number}
|
|
473
|
+
* @memberof ContrastV1Input
|
|
474
|
+
*/
|
|
475
|
+
'contrast': number;
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
*
|
|
479
|
+
* @export
|
|
480
|
+
* @interface ContrastV1Request
|
|
481
|
+
*/
|
|
482
|
+
export interface ContrastV1Request {
|
|
483
|
+
/**
|
|
484
|
+
*
|
|
485
|
+
* @type {ContrastV1Input}
|
|
486
|
+
* @memberof ContrastV1Request
|
|
487
|
+
*/
|
|
488
|
+
'input': ContrastV1Input;
|
|
489
|
+
/**
|
|
490
|
+
*
|
|
491
|
+
* @type {object}
|
|
492
|
+
* @memberof ContrastV1Request
|
|
493
|
+
*/
|
|
494
|
+
'metadata'?: object;
|
|
495
|
+
}
|
|
496
|
+
/**
|
|
497
|
+
*
|
|
498
|
+
* @export
|
|
499
|
+
* @interface ContrastV1Response
|
|
500
|
+
*/
|
|
501
|
+
export interface ContrastV1Response {
|
|
502
|
+
/**
|
|
503
|
+
*
|
|
504
|
+
* @type {string}
|
|
505
|
+
* @memberof ContrastV1Response
|
|
506
|
+
*/
|
|
507
|
+
'kind': ContrastV1ResponseKindEnum;
|
|
508
|
+
/**
|
|
509
|
+
*
|
|
510
|
+
* @type {OperationOutputImageSingle}
|
|
511
|
+
* @memberof ContrastV1Response
|
|
512
|
+
*/
|
|
513
|
+
'output': OperationOutputImageSingle | null;
|
|
514
|
+
/**
|
|
515
|
+
*
|
|
516
|
+
* @type {object}
|
|
517
|
+
* @memberof ContrastV1Response
|
|
518
|
+
*/
|
|
519
|
+
'input': object;
|
|
520
|
+
/**
|
|
521
|
+
*
|
|
522
|
+
* @type {string}
|
|
523
|
+
* @memberof ContrastV1Response
|
|
524
|
+
*/
|
|
525
|
+
'status': ContrastV1ResponseStatusEnum;
|
|
526
|
+
/**
|
|
527
|
+
*
|
|
528
|
+
* @type {string}
|
|
529
|
+
* @memberof ContrastV1Response
|
|
530
|
+
*/
|
|
531
|
+
'type': string;
|
|
532
|
+
/**
|
|
533
|
+
*
|
|
534
|
+
* @type {string}
|
|
535
|
+
* @memberof ContrastV1Response
|
|
536
|
+
*/
|
|
537
|
+
'id': string;
|
|
538
|
+
/**
|
|
539
|
+
*
|
|
540
|
+
* @type {string}
|
|
541
|
+
* @memberof ContrastV1Response
|
|
542
|
+
*/
|
|
543
|
+
'creatorId': string;
|
|
544
|
+
/**
|
|
545
|
+
*
|
|
546
|
+
* @type {object}
|
|
547
|
+
* @memberof ContrastV1Response
|
|
548
|
+
*/
|
|
549
|
+
'metadata': object;
|
|
550
|
+
/**
|
|
551
|
+
*
|
|
552
|
+
* @type {string}
|
|
553
|
+
* @memberof ContrastV1Response
|
|
554
|
+
*/
|
|
555
|
+
'createdAt': string;
|
|
556
|
+
/**
|
|
557
|
+
*
|
|
558
|
+
* @type {string}
|
|
559
|
+
* @memberof ContrastV1Response
|
|
560
|
+
*/
|
|
561
|
+
'updatedAt': string;
|
|
562
|
+
}
|
|
563
|
+
export declare const ContrastV1ResponseKindEnum: {
|
|
564
|
+
readonly Operation: "operation";
|
|
565
|
+
};
|
|
566
|
+
export type ContrastV1ResponseKindEnum = typeof ContrastV1ResponseKindEnum[keyof typeof ContrastV1ResponseKindEnum];
|
|
567
|
+
export declare const ContrastV1ResponseStatusEnum: {
|
|
568
|
+
readonly Pending: "pending";
|
|
569
|
+
readonly Finished: "finished";
|
|
570
|
+
readonly Failed: "failed";
|
|
571
|
+
};
|
|
572
|
+
export type ContrastV1ResponseStatusEnum = typeof ContrastV1ResponseStatusEnum[keyof typeof ContrastV1ResponseStatusEnum];
|
|
458
573
|
/**
|
|
459
574
|
*
|
|
460
575
|
* @export
|
|
@@ -2989,24 +3104,12 @@ export interface PipelineEntity {
|
|
|
2989
3104
|
* @memberof PipelineEntity
|
|
2990
3105
|
*/
|
|
2991
3106
|
'permissions': object;
|
|
2992
|
-
/**
|
|
2993
|
-
*
|
|
2994
|
-
* @type {object}
|
|
2995
|
-
* @memberof PipelineEntity
|
|
2996
|
-
*/
|
|
2997
|
-
'state': object;
|
|
2998
3107
|
/**
|
|
2999
3108
|
*
|
|
3000
3109
|
* @type {string}
|
|
3001
3110
|
* @memberof PipelineEntity
|
|
3002
3111
|
*/
|
|
3003
3112
|
'status': PipelineEntityStatusEnum;
|
|
3004
|
-
/**
|
|
3005
|
-
*
|
|
3006
|
-
* @type {Array<object>}
|
|
3007
|
-
* @memberof PipelineEntity
|
|
3008
|
-
*/
|
|
3009
|
-
'tasks': Array<object>;
|
|
3010
3113
|
/**
|
|
3011
3114
|
*
|
|
3012
3115
|
* @type {string}
|
|
@@ -4781,6 +4884,13 @@ export declare const CallApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
4781
4884
|
* @throws {RequiredError}
|
|
4782
4885
|
*/
|
|
4783
4886
|
callControllerCallOperationsRunCompositeV1V1: (compositeV1Request: CompositeV1Request, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4887
|
+
/**
|
|
4888
|
+
*
|
|
4889
|
+
* @param {ContrastV1Request} contrastV1Request
|
|
4890
|
+
* @param {*} [options] Override http request option.
|
|
4891
|
+
* @throws {RequiredError}
|
|
4892
|
+
*/
|
|
4893
|
+
callControllerCallOperationsRunContrastV1V1: (contrastV1Request: ContrastV1Request, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4784
4894
|
/**
|
|
4785
4895
|
*
|
|
4786
4896
|
* @param {CropV1Request} cropV1Request
|
|
@@ -5193,6 +5303,13 @@ export declare const CallApiFp: (configuration?: Configuration) => {
|
|
|
5193
5303
|
* @throws {RequiredError}
|
|
5194
5304
|
*/
|
|
5195
5305
|
callControllerCallOperationsRunCompositeV1V1(compositeV1Request: CompositeV1Request, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompositeV1Response>>;
|
|
5306
|
+
/**
|
|
5307
|
+
*
|
|
5308
|
+
* @param {ContrastV1Request} contrastV1Request
|
|
5309
|
+
* @param {*} [options] Override http request option.
|
|
5310
|
+
* @throws {RequiredError}
|
|
5311
|
+
*/
|
|
5312
|
+
callControllerCallOperationsRunContrastV1V1(contrastV1Request: ContrastV1Request, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ContrastV1Response>>;
|
|
5196
5313
|
/**
|
|
5197
5314
|
*
|
|
5198
5315
|
* @param {CropV1Request} cropV1Request
|
|
@@ -5605,6 +5722,13 @@ export declare const CallApiFactory: (configuration?: Configuration, basePath?:
|
|
|
5605
5722
|
* @throws {RequiredError}
|
|
5606
5723
|
*/
|
|
5607
5724
|
callControllerCallOperationsRunCompositeV1V1(compositeV1Request: CompositeV1Request, options?: RawAxiosRequestConfig): AxiosPromise<CompositeV1Response>;
|
|
5725
|
+
/**
|
|
5726
|
+
*
|
|
5727
|
+
* @param {ContrastV1Request} contrastV1Request
|
|
5728
|
+
* @param {*} [options] Override http request option.
|
|
5729
|
+
* @throws {RequiredError}
|
|
5730
|
+
*/
|
|
5731
|
+
callControllerCallOperationsRunContrastV1V1(contrastV1Request: ContrastV1Request, options?: RawAxiosRequestConfig): AxiosPromise<ContrastV1Response>;
|
|
5608
5732
|
/**
|
|
5609
5733
|
*
|
|
5610
5734
|
* @param {CropV1Request} cropV1Request
|
|
@@ -6048,6 +6172,14 @@ export declare class CallApi extends BaseAPI {
|
|
|
6048
6172
|
* @memberof CallApi
|
|
6049
6173
|
*/
|
|
6050
6174
|
callControllerCallOperationsRunCompositeV1V1(compositeV1Request: CompositeV1Request, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CompositeV1Response, any>>;
|
|
6175
|
+
/**
|
|
6176
|
+
*
|
|
6177
|
+
* @param {ContrastV1Request} contrastV1Request
|
|
6178
|
+
* @param {*} [options] Override http request option.
|
|
6179
|
+
* @throws {RequiredError}
|
|
6180
|
+
* @memberof CallApi
|
|
6181
|
+
*/
|
|
6182
|
+
callControllerCallOperationsRunContrastV1V1(contrastV1Request: ContrastV1Request, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ContrastV1Response, any>>;
|
|
6051
6183
|
/**
|
|
6052
6184
|
*
|
|
6053
6185
|
* @param {CropV1Request} cropV1Request
|
|
@@ -6961,6 +7093,13 @@ export declare const OperationsApiAxiosParamCreator: (configuration?: Configurat
|
|
|
6961
7093
|
* @throws {RequiredError}
|
|
6962
7094
|
*/
|
|
6963
7095
|
operationsControllerRunCompositeV1V1: (compositeV1Request: CompositeV1Request, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
7096
|
+
/**
|
|
7097
|
+
*
|
|
7098
|
+
* @param {ContrastV1Request} contrastV1Request
|
|
7099
|
+
* @param {*} [options] Override http request option.
|
|
7100
|
+
* @throws {RequiredError}
|
|
7101
|
+
*/
|
|
7102
|
+
operationsControllerRunContrastV1V1: (contrastV1Request: ContrastV1Request, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6964
7103
|
/**
|
|
6965
7104
|
*
|
|
6966
7105
|
* @param {CropV1Request} cropV1Request
|
|
@@ -7110,6 +7249,13 @@ export declare const OperationsApiFp: (configuration?: Configuration) => {
|
|
|
7110
7249
|
* @throws {RequiredError}
|
|
7111
7250
|
*/
|
|
7112
7251
|
operationsControllerRunCompositeV1V1(compositeV1Request: CompositeV1Request, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompositeV1Response>>;
|
|
7252
|
+
/**
|
|
7253
|
+
*
|
|
7254
|
+
* @param {ContrastV1Request} contrastV1Request
|
|
7255
|
+
* @param {*} [options] Override http request option.
|
|
7256
|
+
* @throws {RequiredError}
|
|
7257
|
+
*/
|
|
7258
|
+
operationsControllerRunContrastV1V1(contrastV1Request: ContrastV1Request, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ContrastV1Response>>;
|
|
7113
7259
|
/**
|
|
7114
7260
|
*
|
|
7115
7261
|
* @param {CropV1Request} cropV1Request
|
|
@@ -7259,6 +7405,13 @@ export declare const OperationsApiFactory: (configuration?: Configuration, baseP
|
|
|
7259
7405
|
* @throws {RequiredError}
|
|
7260
7406
|
*/
|
|
7261
7407
|
operationsControllerRunCompositeV1V1(compositeV1Request: CompositeV1Request, options?: RawAxiosRequestConfig): AxiosPromise<CompositeV1Response>;
|
|
7408
|
+
/**
|
|
7409
|
+
*
|
|
7410
|
+
* @param {ContrastV1Request} contrastV1Request
|
|
7411
|
+
* @param {*} [options] Override http request option.
|
|
7412
|
+
* @throws {RequiredError}
|
|
7413
|
+
*/
|
|
7414
|
+
operationsControllerRunContrastV1V1(contrastV1Request: ContrastV1Request, options?: RawAxiosRequestConfig): AxiosPromise<ContrastV1Response>;
|
|
7262
7415
|
/**
|
|
7263
7416
|
*
|
|
7264
7417
|
* @param {CropV1Request} cropV1Request
|
|
@@ -7414,6 +7567,14 @@ export declare class OperationsApi extends BaseAPI {
|
|
|
7414
7567
|
* @memberof OperationsApi
|
|
7415
7568
|
*/
|
|
7416
7569
|
operationsControllerRunCompositeV1V1(compositeV1Request: CompositeV1Request, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CompositeV1Response, any>>;
|
|
7570
|
+
/**
|
|
7571
|
+
*
|
|
7572
|
+
* @param {ContrastV1Request} contrastV1Request
|
|
7573
|
+
* @param {*} [options] Override http request option.
|
|
7574
|
+
* @throws {RequiredError}
|
|
7575
|
+
* @memberof OperationsApi
|
|
7576
|
+
*/
|
|
7577
|
+
operationsControllerRunContrastV1V1(contrastV1Request: ContrastV1Request, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ContrastV1Response, any>>;
|
|
7417
7578
|
/**
|
|
7418
7579
|
*
|
|
7419
7580
|
* @param {CropV1Request} cropV1Request
|
|
@@ -17,10 +17,6 @@ import globalAxios from 'axios';
|
|
|
17
17
|
import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
18
18
|
// @ts-ignore
|
|
19
19
|
import { BASE_PATH, BaseAPI, operationServerMap } from './base';
|
|
20
|
-
export const AccountEntityTypeEnum = {
|
|
21
|
-
Root: 'root',
|
|
22
|
-
User: 'user'
|
|
23
|
-
};
|
|
24
20
|
export const AddAccountToGroupControllerParamsDtoRoleEnum = {
|
|
25
21
|
Maintainer: 'maintainer',
|
|
26
22
|
Member: 'member',
|
|
@@ -31,6 +27,16 @@ export const AddAccountToGroupParamsDtoRoleEnum = {
|
|
|
31
27
|
Member: 'member',
|
|
32
28
|
Owner: 'owner'
|
|
33
29
|
};
|
|
30
|
+
export const CollectionEntityKindEnum = {
|
|
31
|
+
Collection: 'collection',
|
|
32
|
+
Operation: 'operation',
|
|
33
|
+
Stack: 'stack',
|
|
34
|
+
Image: 'image',
|
|
35
|
+
Pose: 'pose',
|
|
36
|
+
Storage: 'storage',
|
|
37
|
+
Pipeline: 'pipeline',
|
|
38
|
+
Forbidden: 'forbidden'
|
|
39
|
+
};
|
|
34
40
|
export const CompositeElementFitEnum = {
|
|
35
41
|
Cover: 'cover',
|
|
36
42
|
Contain: 'contain',
|
|
@@ -46,6 +52,14 @@ export const CompositeV1ResponseStatusEnum = {
|
|
|
46
52
|
Finished: 'finished',
|
|
47
53
|
Failed: 'failed'
|
|
48
54
|
};
|
|
55
|
+
export const ContrastV1ResponseKindEnum = {
|
|
56
|
+
Operation: 'operation'
|
|
57
|
+
};
|
|
58
|
+
export const ContrastV1ResponseStatusEnum = {
|
|
59
|
+
Pending: 'pending',
|
|
60
|
+
Finished: 'finished',
|
|
61
|
+
Failed: 'failed'
|
|
62
|
+
};
|
|
49
63
|
export const CropV1ResponseKindEnum = {
|
|
50
64
|
Operation: 'operation'
|
|
51
65
|
};
|
|
@@ -2236,6 +2250,38 @@ export const CallApiAxiosParamCreator = function (configuration) {
|
|
|
2236
2250
|
options: localVarRequestOptions,
|
|
2237
2251
|
};
|
|
2238
2252
|
},
|
|
2253
|
+
/**
|
|
2254
|
+
*
|
|
2255
|
+
* @param {ContrastV1Request} contrastV1Request
|
|
2256
|
+
* @param {*} [options] Override http request option.
|
|
2257
|
+
* @throws {RequiredError}
|
|
2258
|
+
*/
|
|
2259
|
+
callControllerCallOperationsRunContrastV1V1: async (contrastV1Request, options = {}) => {
|
|
2260
|
+
// verify required parameter 'contrastV1Request' is not null or undefined
|
|
2261
|
+
assertParamExists('callControllerCallOperationsRunContrastV1V1', 'contrastV1Request', contrastV1Request);
|
|
2262
|
+
const localVarPath = `/v1/call/operations.run.contrast.v1`;
|
|
2263
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2264
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2265
|
+
let baseOptions;
|
|
2266
|
+
if (configuration) {
|
|
2267
|
+
baseOptions = configuration.baseOptions;
|
|
2268
|
+
}
|
|
2269
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
2270
|
+
const localVarHeaderParameter = {};
|
|
2271
|
+
const localVarQueryParameter = {};
|
|
2272
|
+
// authentication bearer required
|
|
2273
|
+
// http bearer authentication required
|
|
2274
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2275
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2276
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2277
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2278
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2279
|
+
localVarRequestOptions.data = serializeDataIfNeeded(contrastV1Request, localVarRequestOptions, configuration);
|
|
2280
|
+
return {
|
|
2281
|
+
url: toPathString(localVarUrlObj),
|
|
2282
|
+
options: localVarRequestOptions,
|
|
2283
|
+
};
|
|
2284
|
+
},
|
|
2239
2285
|
/**
|
|
2240
2286
|
*
|
|
2241
2287
|
* @param {CropV1Request} cropV1Request
|
|
@@ -3521,6 +3567,18 @@ export const CallApiFp = function (configuration) {
|
|
|
3521
3567
|
const localVarOperationServerBasePath = operationServerMap['CallApi.callControllerCallOperationsRunCompositeV1V1']?.[localVarOperationServerIndex]?.url;
|
|
3522
3568
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3523
3569
|
},
|
|
3570
|
+
/**
|
|
3571
|
+
*
|
|
3572
|
+
* @param {ContrastV1Request} contrastV1Request
|
|
3573
|
+
* @param {*} [options] Override http request option.
|
|
3574
|
+
* @throws {RequiredError}
|
|
3575
|
+
*/
|
|
3576
|
+
async callControllerCallOperationsRunContrastV1V1(contrastV1Request, options) {
|
|
3577
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.callControllerCallOperationsRunContrastV1V1(contrastV1Request, options);
|
|
3578
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3579
|
+
const localVarOperationServerBasePath = operationServerMap['CallApi.callControllerCallOperationsRunContrastV1V1']?.[localVarOperationServerIndex]?.url;
|
|
3580
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3581
|
+
},
|
|
3524
3582
|
/**
|
|
3525
3583
|
*
|
|
3526
3584
|
* @param {CropV1Request} cropV1Request
|
|
@@ -4139,6 +4197,15 @@ export const CallApiFactory = function (configuration, basePath, axios) {
|
|
|
4139
4197
|
callControllerCallOperationsRunCompositeV1V1(compositeV1Request, options) {
|
|
4140
4198
|
return localVarFp.callControllerCallOperationsRunCompositeV1V1(compositeV1Request, options).then((request) => request(axios, basePath));
|
|
4141
4199
|
},
|
|
4200
|
+
/**
|
|
4201
|
+
*
|
|
4202
|
+
* @param {ContrastV1Request} contrastV1Request
|
|
4203
|
+
* @param {*} [options] Override http request option.
|
|
4204
|
+
* @throws {RequiredError}
|
|
4205
|
+
*/
|
|
4206
|
+
callControllerCallOperationsRunContrastV1V1(contrastV1Request, options) {
|
|
4207
|
+
return localVarFp.callControllerCallOperationsRunContrastV1V1(contrastV1Request, options).then((request) => request(axios, basePath));
|
|
4208
|
+
},
|
|
4142
4209
|
/**
|
|
4143
4210
|
*
|
|
4144
4211
|
* @param {CropV1Request} cropV1Request
|
|
@@ -4699,6 +4766,16 @@ export class CallApi extends BaseAPI {
|
|
|
4699
4766
|
callControllerCallOperationsRunCompositeV1V1(compositeV1Request, options) {
|
|
4700
4767
|
return CallApiFp(this.configuration).callControllerCallOperationsRunCompositeV1V1(compositeV1Request, options).then((request) => request(this.axios, this.basePath));
|
|
4701
4768
|
}
|
|
4769
|
+
/**
|
|
4770
|
+
*
|
|
4771
|
+
* @param {ContrastV1Request} contrastV1Request
|
|
4772
|
+
* @param {*} [options] Override http request option.
|
|
4773
|
+
* @throws {RequiredError}
|
|
4774
|
+
* @memberof CallApi
|
|
4775
|
+
*/
|
|
4776
|
+
callControllerCallOperationsRunContrastV1V1(contrastV1Request, options) {
|
|
4777
|
+
return CallApiFp(this.configuration).callControllerCallOperationsRunContrastV1V1(contrastV1Request, options).then((request) => request(this.axios, this.basePath));
|
|
4778
|
+
}
|
|
4702
4779
|
/**
|
|
4703
4780
|
*
|
|
4704
4781
|
* @param {CropV1Request} cropV1Request
|
|
@@ -6395,6 +6472,38 @@ export const OperationsApiAxiosParamCreator = function (configuration) {
|
|
|
6395
6472
|
options: localVarRequestOptions,
|
|
6396
6473
|
};
|
|
6397
6474
|
},
|
|
6475
|
+
/**
|
|
6476
|
+
*
|
|
6477
|
+
* @param {ContrastV1Request} contrastV1Request
|
|
6478
|
+
* @param {*} [options] Override http request option.
|
|
6479
|
+
* @throws {RequiredError}
|
|
6480
|
+
*/
|
|
6481
|
+
operationsControllerRunContrastV1V1: async (contrastV1Request, options = {}) => {
|
|
6482
|
+
// verify required parameter 'contrastV1Request' is not null or undefined
|
|
6483
|
+
assertParamExists('operationsControllerRunContrastV1V1', 'contrastV1Request', contrastV1Request);
|
|
6484
|
+
const localVarPath = `/v1/operations/run/contrast.v1`;
|
|
6485
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6486
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6487
|
+
let baseOptions;
|
|
6488
|
+
if (configuration) {
|
|
6489
|
+
baseOptions = configuration.baseOptions;
|
|
6490
|
+
}
|
|
6491
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
6492
|
+
const localVarHeaderParameter = {};
|
|
6493
|
+
const localVarQueryParameter = {};
|
|
6494
|
+
// authentication bearer required
|
|
6495
|
+
// http bearer authentication required
|
|
6496
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6497
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6498
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6499
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6500
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6501
|
+
localVarRequestOptions.data = serializeDataIfNeeded(contrastV1Request, localVarRequestOptions, configuration);
|
|
6502
|
+
return {
|
|
6503
|
+
url: toPathString(localVarUrlObj),
|
|
6504
|
+
options: localVarRequestOptions,
|
|
6505
|
+
};
|
|
6506
|
+
},
|
|
6398
6507
|
/**
|
|
6399
6508
|
*
|
|
6400
6509
|
* @param {CropV1Request} cropV1Request
|
|
@@ -6970,6 +7079,18 @@ export const OperationsApiFp = function (configuration) {
|
|
|
6970
7079
|
const localVarOperationServerBasePath = operationServerMap['OperationsApi.operationsControllerRunCompositeV1V1']?.[localVarOperationServerIndex]?.url;
|
|
6971
7080
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6972
7081
|
},
|
|
7082
|
+
/**
|
|
7083
|
+
*
|
|
7084
|
+
* @param {ContrastV1Request} contrastV1Request
|
|
7085
|
+
* @param {*} [options] Override http request option.
|
|
7086
|
+
* @throws {RequiredError}
|
|
7087
|
+
*/
|
|
7088
|
+
async operationsControllerRunContrastV1V1(contrastV1Request, options) {
|
|
7089
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.operationsControllerRunContrastV1V1(contrastV1Request, options);
|
|
7090
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7091
|
+
const localVarOperationServerBasePath = operationServerMap['OperationsApi.operationsControllerRunContrastV1V1']?.[localVarOperationServerIndex]?.url;
|
|
7092
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7093
|
+
},
|
|
6973
7094
|
/**
|
|
6974
7095
|
*
|
|
6975
7096
|
* @param {CropV1Request} cropV1Request
|
|
@@ -7210,6 +7331,15 @@ export const OperationsApiFactory = function (configuration, basePath, axios) {
|
|
|
7210
7331
|
operationsControllerRunCompositeV1V1(compositeV1Request, options) {
|
|
7211
7332
|
return localVarFp.operationsControllerRunCompositeV1V1(compositeV1Request, options).then((request) => request(axios, basePath));
|
|
7212
7333
|
},
|
|
7334
|
+
/**
|
|
7335
|
+
*
|
|
7336
|
+
* @param {ContrastV1Request} contrastV1Request
|
|
7337
|
+
* @param {*} [options] Override http request option.
|
|
7338
|
+
* @throws {RequiredError}
|
|
7339
|
+
*/
|
|
7340
|
+
operationsControllerRunContrastV1V1(contrastV1Request, options) {
|
|
7341
|
+
return localVarFp.operationsControllerRunContrastV1V1(contrastV1Request, options).then((request) => request(axios, basePath));
|
|
7342
|
+
},
|
|
7213
7343
|
/**
|
|
7214
7344
|
*
|
|
7215
7345
|
* @param {CropV1Request} cropV1Request
|
|
@@ -7406,6 +7536,16 @@ export class OperationsApi extends BaseAPI {
|
|
|
7406
7536
|
operationsControllerRunCompositeV1V1(compositeV1Request, options) {
|
|
7407
7537
|
return OperationsApiFp(this.configuration).operationsControllerRunCompositeV1V1(compositeV1Request, options).then((request) => request(this.axios, this.basePath));
|
|
7408
7538
|
}
|
|
7539
|
+
/**
|
|
7540
|
+
*
|
|
7541
|
+
* @param {ContrastV1Request} contrastV1Request
|
|
7542
|
+
* @param {*} [options] Override http request option.
|
|
7543
|
+
* @throws {RequiredError}
|
|
7544
|
+
* @memberof OperationsApi
|
|
7545
|
+
*/
|
|
7546
|
+
operationsControllerRunContrastV1V1(contrastV1Request, options) {
|
|
7547
|
+
return OperationsApiFp(this.configuration).operationsControllerRunContrastV1V1(contrastV1Request, options).then((request) => request(this.axios, this.basePath));
|
|
7548
|
+
}
|
|
7409
7549
|
/**
|
|
7410
7550
|
*
|
|
7411
7551
|
* @param {CropV1Request} cropV1Request
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -195,6 +195,12 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
195
195
|
metadata?: any;
|
|
196
196
|
}) => Promise<import("../autogenerated").CropV1Response>;
|
|
197
197
|
};
|
|
198
|
+
contrast: {
|
|
199
|
+
v1: (props: {
|
|
200
|
+
input: import("../autogenerated").ContrastV1Input;
|
|
201
|
+
metadata?: any;
|
|
202
|
+
}) => Promise<import("../autogenerated").ContrastV1Response>;
|
|
203
|
+
};
|
|
198
204
|
composite: {
|
|
199
205
|
v1: (props: {
|
|
200
206
|
input: import("../autogenerated").CompositeV1Input;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CompositeV1Input, CompositeV1Response, CropV1Input, CropV1Response, CutV1Input, CutV1Response, GiseleVtonV1Input, GPTV1Input, GptV1Response, HauteLindaV1Response, HauteNaomiV1Response, ImagineKateV1Response, KateImagineV1Input, KateInpaintV1Input, LindaHauteV1Input, NaomiHauteV1Input, NegateImageV1Input, NegateImageV1Response, ObjectDetectionV1Input, ObjectDetectionV1Response, OperationEntity, OperationEntityStatusEnum, PoseEstimationV1Input, PoseEstimationV1Response, SegmentAnythingEmbeddingsV1Input, SegmentAnythingEmbeddingsV1Response, SegmentAnythingMaskV1Input, SegmentAnythingMaskV1Response, UpscaleV1Input, UpscaleV1Response, VtonGiseleV1Response } from '../../autogenerated';
|
|
1
|
+
import { CompositeV1Input, CompositeV1Response, ContrastV1Input, ContrastV1Response, CropV1Input, CropV1Response, CutV1Input, CutV1Response, GiseleVtonV1Input, GPTV1Input, GptV1Response, HauteLindaV1Response, HauteNaomiV1Response, ImagineKateV1Response, KateImagineV1Input, KateInpaintV1Input, LindaHauteV1Input, NaomiHauteV1Input, NegateImageV1Input, NegateImageV1Response, ObjectDetectionV1Input, ObjectDetectionV1Response, OperationEntity, OperationEntityStatusEnum, PoseEstimationV1Input, PoseEstimationV1Response, SegmentAnythingEmbeddingsV1Input, SegmentAnythingEmbeddingsV1Response, SegmentAnythingMaskV1Input, SegmentAnythingMaskV1Response, UpscaleV1Input, UpscaleV1Response, VtonGiseleV1Response } from '../../autogenerated';
|
|
2
2
|
import { ListProps, ListResponse, SDKOptions } from '../../types';
|
|
3
3
|
import { OperationsListener } from '../listeners';
|
|
4
4
|
import { AddMetadata } from '../utils';
|
|
@@ -102,6 +102,12 @@ declare const operations: (options: SDKOptions, operationsListener: OperationsLi
|
|
|
102
102
|
metadata?: any;
|
|
103
103
|
}) => Promise<CropV1Response>;
|
|
104
104
|
};
|
|
105
|
+
contrast: {
|
|
106
|
+
v1: (props: {
|
|
107
|
+
input: ContrastV1Input;
|
|
108
|
+
metadata?: any;
|
|
109
|
+
}) => Promise<ContrastV1Response>;
|
|
110
|
+
};
|
|
105
111
|
composite: {
|
|
106
112
|
v1: (props: {
|
|
107
113
|
input: CompositeV1Input;
|
|
@@ -54,6 +54,9 @@ const operations = (options, operationsListener) => {
|
|
|
54
54
|
noise: {
|
|
55
55
|
v1: createOperation((methods, props) => methods.operationsControllerRunCropV1V1(props)),
|
|
56
56
|
},
|
|
57
|
+
contrast: {
|
|
58
|
+
v1: createOperation((methods, props) => methods.operationsControllerRunContrastV1V1(props)),
|
|
59
|
+
},
|
|
57
60
|
composite: {
|
|
58
61
|
v1: createOperation((methods, props) => methods.operationsControllerRunCompositeV1V1(props)),
|
|
59
62
|
},
|