@hautechai/sdk 0.0.1 → 0.0.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.
- package/dist/autogenerated/api.d.ts +458 -155
- package/dist/autogenerated/api.js +349 -58
- package/dist/sdk/index.d.ts +28 -0
- package/dist/sdk/operations/index.d.ts +29 -1
- package/dist/sdk/operations/index.js +39 -1
- package/package.json +1 -1
|
@@ -26,49 +26,19 @@ export const AddAccountToGroupControllerParamsDtoRoleEnum = {
|
|
|
26
26
|
Member: 'member',
|
|
27
27
|
Owner: 'owner'
|
|
28
28
|
};
|
|
29
|
-
export const
|
|
30
|
-
|
|
31
|
-
Infant: 'infant',
|
|
32
|
-
PreTeen: 'pre-teen',
|
|
33
|
-
Senior: 'senior',
|
|
34
|
-
Teen: 'teen',
|
|
35
|
-
Toddler: 'toddler'
|
|
29
|
+
export const GPTV1InputModelEnum = {
|
|
30
|
+
Gpt4o: 'gpt-4o'
|
|
36
31
|
};
|
|
37
|
-
export const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
Lounge: 'lounge',
|
|
48
|
-
Paris: 'paris',
|
|
49
|
-
Park: 'park',
|
|
50
|
-
Street: 'street',
|
|
51
|
-
Studio: 'studio'
|
|
52
|
-
};
|
|
53
|
-
export const ConstructPromptV1InputEthnicityEnum = {
|
|
54
|
-
African: 'african',
|
|
55
|
-
AfricanAmerican: 'african-american',
|
|
56
|
-
Asian: 'asian',
|
|
57
|
-
Australian: 'australian',
|
|
58
|
-
CentralAsian: 'central-asian',
|
|
59
|
-
European: 'european',
|
|
60
|
-
Indian: 'indian',
|
|
61
|
-
MiddleEastern: 'middle-eastern',
|
|
62
|
-
NativeAmerican: 'native-american'
|
|
63
|
-
};
|
|
64
|
-
export const ConstructPromptV1InputGenderEnum = {
|
|
65
|
-
Male: 'male',
|
|
66
|
-
Female: 'female'
|
|
67
|
-
};
|
|
68
|
-
export const ConstructPromptV1InputPhotoTypeEnum = {
|
|
69
|
-
Closeup: 'closeup',
|
|
70
|
-
Fullbody: 'fullbody',
|
|
71
|
-
Headshot: 'headshot'
|
|
32
|
+
export const GenerateV1InputAspectRatioEnum = {
|
|
33
|
+
_11: '1:1',
|
|
34
|
+
_97: '9:7',
|
|
35
|
+
_79: '7:9',
|
|
36
|
+
_1913: '19:13',
|
|
37
|
+
_1319: '13:19',
|
|
38
|
+
_74: '7:4',
|
|
39
|
+
_47: '4:7',
|
|
40
|
+
_125: '12:5',
|
|
41
|
+
_512: '5:12'
|
|
72
42
|
};
|
|
73
43
|
export const ImageEntityKindEnum = {
|
|
74
44
|
Collection: 'collection',
|
|
@@ -1942,6 +1912,41 @@ export const ImagesApiAxiosParamCreator = function (configuration) {
|
|
|
1942
1912
|
options: localVarRequestOptions,
|
|
1943
1913
|
};
|
|
1944
1914
|
},
|
|
1915
|
+
/**
|
|
1916
|
+
*
|
|
1917
|
+
* @param {string} id
|
|
1918
|
+
* @param {string} type
|
|
1919
|
+
* @param {*} [options] Override http request option.
|
|
1920
|
+
* @throws {RequiredError}
|
|
1921
|
+
*/
|
|
1922
|
+
imagesControllerGetRepresentationV1: async (id, type, options = {}) => {
|
|
1923
|
+
// verify required parameter 'id' is not null or undefined
|
|
1924
|
+
assertParamExists('imagesControllerGetRepresentationV1', 'id', id);
|
|
1925
|
+
// verify required parameter 'type' is not null or undefined
|
|
1926
|
+
assertParamExists('imagesControllerGetRepresentationV1', 'type', type);
|
|
1927
|
+
const localVarPath = `/v1/images/{id}/representation/{type}`
|
|
1928
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
1929
|
+
.replace(`{${"type"}}`, encodeURIComponent(String(type)));
|
|
1930
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1931
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1932
|
+
let baseOptions;
|
|
1933
|
+
if (configuration) {
|
|
1934
|
+
baseOptions = configuration.baseOptions;
|
|
1935
|
+
}
|
|
1936
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1937
|
+
const localVarHeaderParameter = {};
|
|
1938
|
+
const localVarQueryParameter = {};
|
|
1939
|
+
// authentication bearer required
|
|
1940
|
+
// http bearer authentication required
|
|
1941
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1942
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1943
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1944
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1945
|
+
return {
|
|
1946
|
+
url: toPathString(localVarUrlObj),
|
|
1947
|
+
options: localVarRequestOptions,
|
|
1948
|
+
};
|
|
1949
|
+
},
|
|
1945
1950
|
/**
|
|
1946
1951
|
*
|
|
1947
1952
|
* @param {GetUrlsForImagesParamsDto} getUrlsForImagesParamsDto
|
|
@@ -2034,6 +2039,19 @@ export const ImagesApiFp = function (configuration) {
|
|
|
2034
2039
|
const localVarOperationServerBasePath = operationServerMap['ImagesApi.imagesControllerGetImageV1']?.[localVarOperationServerIndex]?.url;
|
|
2035
2040
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2036
2041
|
},
|
|
2042
|
+
/**
|
|
2043
|
+
*
|
|
2044
|
+
* @param {string} id
|
|
2045
|
+
* @param {string} type
|
|
2046
|
+
* @param {*} [options] Override http request option.
|
|
2047
|
+
* @throws {RequiredError}
|
|
2048
|
+
*/
|
|
2049
|
+
async imagesControllerGetRepresentationV1(id, type, options) {
|
|
2050
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.imagesControllerGetRepresentationV1(id, type, options);
|
|
2051
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2052
|
+
const localVarOperationServerBasePath = operationServerMap['ImagesApi.imagesControllerGetRepresentationV1']?.[localVarOperationServerIndex]?.url;
|
|
2053
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2054
|
+
},
|
|
2037
2055
|
/**
|
|
2038
2056
|
*
|
|
2039
2057
|
* @param {GetUrlsForImagesParamsDto} getUrlsForImagesParamsDto
|
|
@@ -2084,6 +2102,16 @@ export const ImagesApiFactory = function (configuration, basePath, axios) {
|
|
|
2084
2102
|
imagesControllerGetImageV1(id, options) {
|
|
2085
2103
|
return localVarFp.imagesControllerGetImageV1(id, options).then((request) => request(axios, basePath));
|
|
2086
2104
|
},
|
|
2105
|
+
/**
|
|
2106
|
+
*
|
|
2107
|
+
* @param {string} id
|
|
2108
|
+
* @param {string} type
|
|
2109
|
+
* @param {*} [options] Override http request option.
|
|
2110
|
+
* @throws {RequiredError}
|
|
2111
|
+
*/
|
|
2112
|
+
imagesControllerGetRepresentationV1(id, type, options) {
|
|
2113
|
+
return localVarFp.imagesControllerGetRepresentationV1(id, type, options).then((request) => request(axios, basePath));
|
|
2114
|
+
},
|
|
2087
2115
|
/**
|
|
2088
2116
|
*
|
|
2089
2117
|
* @param {GetUrlsForImagesParamsDto} getUrlsForImagesParamsDto
|
|
@@ -2130,6 +2158,17 @@ export class ImagesApi extends BaseAPI {
|
|
|
2130
2158
|
imagesControllerGetImageV1(id, options) {
|
|
2131
2159
|
return ImagesApiFp(this.configuration).imagesControllerGetImageV1(id, options).then((request) => request(this.axios, this.basePath));
|
|
2132
2160
|
}
|
|
2161
|
+
/**
|
|
2162
|
+
*
|
|
2163
|
+
* @param {string} id
|
|
2164
|
+
* @param {string} type
|
|
2165
|
+
* @param {*} [options] Override http request option.
|
|
2166
|
+
* @throws {RequiredError}
|
|
2167
|
+
* @memberof ImagesApi
|
|
2168
|
+
*/
|
|
2169
|
+
imagesControllerGetRepresentationV1(id, type, options) {
|
|
2170
|
+
return ImagesApiFp(this.configuration).imagesControllerGetRepresentationV1(id, type, options).then((request) => request(this.axios, this.basePath));
|
|
2171
|
+
}
|
|
2133
2172
|
/**
|
|
2134
2173
|
*
|
|
2135
2174
|
* @param {GetUrlsForImagesParamsDto} getUrlsForImagesParamsDto
|
|
@@ -2260,14 +2299,14 @@ export const OperationsApiAxiosParamCreator = function (configuration) {
|
|
|
2260
2299
|
},
|
|
2261
2300
|
/**
|
|
2262
2301
|
*
|
|
2263
|
-
* @param {
|
|
2302
|
+
* @param {GenerateV1ControllerInput} generateV1ControllerInput
|
|
2264
2303
|
* @param {*} [options] Override http request option.
|
|
2265
2304
|
* @throws {RequiredError}
|
|
2266
2305
|
*/
|
|
2267
|
-
|
|
2268
|
-
// verify required parameter '
|
|
2269
|
-
assertParamExists('
|
|
2270
|
-
const localVarPath = `/v1/operations/run/
|
|
2306
|
+
operationsControllerRunGenerateV1V1: async (generateV1ControllerInput, options = {}) => {
|
|
2307
|
+
// verify required parameter 'generateV1ControllerInput' is not null or undefined
|
|
2308
|
+
assertParamExists('operationsControllerRunGenerateV1V1', 'generateV1ControllerInput', generateV1ControllerInput);
|
|
2309
|
+
const localVarPath = `/v1/operations/run/generate.v1`;
|
|
2271
2310
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2272
2311
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2273
2312
|
let baseOptions;
|
|
@@ -2284,7 +2323,7 @@ export const OperationsApiAxiosParamCreator = function (configuration) {
|
|
|
2284
2323
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2285
2324
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2286
2325
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2287
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
2326
|
+
localVarRequestOptions.data = serializeDataIfNeeded(generateV1ControllerInput, localVarRequestOptions, configuration);
|
|
2288
2327
|
return {
|
|
2289
2328
|
url: toPathString(localVarUrlObj),
|
|
2290
2329
|
options: localVarRequestOptions,
|
|
@@ -2322,6 +2361,70 @@ export const OperationsApiAxiosParamCreator = function (configuration) {
|
|
|
2322
2361
|
options: localVarRequestOptions,
|
|
2323
2362
|
};
|
|
2324
2363
|
},
|
|
2364
|
+
/**
|
|
2365
|
+
*
|
|
2366
|
+
* @param {GPTV1ControllerInput} gPTV1ControllerInput
|
|
2367
|
+
* @param {*} [options] Override http request option.
|
|
2368
|
+
* @throws {RequiredError}
|
|
2369
|
+
*/
|
|
2370
|
+
operationsControllerRunGptV1V1: async (gPTV1ControllerInput, options = {}) => {
|
|
2371
|
+
// verify required parameter 'gPTV1ControllerInput' is not null or undefined
|
|
2372
|
+
assertParamExists('operationsControllerRunGptV1V1', 'gPTV1ControllerInput', gPTV1ControllerInput);
|
|
2373
|
+
const localVarPath = `/v1/operations/run/gpt.v1`;
|
|
2374
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2375
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2376
|
+
let baseOptions;
|
|
2377
|
+
if (configuration) {
|
|
2378
|
+
baseOptions = configuration.baseOptions;
|
|
2379
|
+
}
|
|
2380
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
2381
|
+
const localVarHeaderParameter = {};
|
|
2382
|
+
const localVarQueryParameter = {};
|
|
2383
|
+
// authentication bearer required
|
|
2384
|
+
// http bearer authentication required
|
|
2385
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2386
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2387
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2388
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2389
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2390
|
+
localVarRequestOptions.data = serializeDataIfNeeded(gPTV1ControllerInput, localVarRequestOptions, configuration);
|
|
2391
|
+
return {
|
|
2392
|
+
url: toPathString(localVarUrlObj),
|
|
2393
|
+
options: localVarRequestOptions,
|
|
2394
|
+
};
|
|
2395
|
+
},
|
|
2396
|
+
/**
|
|
2397
|
+
*
|
|
2398
|
+
* @param {ImagineV1ControllerInput} imagineV1ControllerInput
|
|
2399
|
+
* @param {*} [options] Override http request option.
|
|
2400
|
+
* @throws {RequiredError}
|
|
2401
|
+
*/
|
|
2402
|
+
operationsControllerRunImagineV1V1: async (imagineV1ControllerInput, options = {}) => {
|
|
2403
|
+
// verify required parameter 'imagineV1ControllerInput' is not null or undefined
|
|
2404
|
+
assertParamExists('operationsControllerRunImagineV1V1', 'imagineV1ControllerInput', imagineV1ControllerInput);
|
|
2405
|
+
const localVarPath = `/v1/operations/run/imagine.v1`;
|
|
2406
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2407
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2408
|
+
let baseOptions;
|
|
2409
|
+
if (configuration) {
|
|
2410
|
+
baseOptions = configuration.baseOptions;
|
|
2411
|
+
}
|
|
2412
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
2413
|
+
const localVarHeaderParameter = {};
|
|
2414
|
+
const localVarQueryParameter = {};
|
|
2415
|
+
// authentication bearer required
|
|
2416
|
+
// http bearer authentication required
|
|
2417
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2418
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2419
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2420
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2421
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2422
|
+
localVarRequestOptions.data = serializeDataIfNeeded(imagineV1ControllerInput, localVarRequestOptions, configuration);
|
|
2423
|
+
return {
|
|
2424
|
+
url: toPathString(localVarUrlObj),
|
|
2425
|
+
options: localVarRequestOptions,
|
|
2426
|
+
};
|
|
2427
|
+
},
|
|
2325
2428
|
/**
|
|
2326
2429
|
*
|
|
2327
2430
|
* @param {InpaintV1ControllerInput} inpaintV1ControllerInput
|
|
@@ -2354,6 +2457,70 @@ export const OperationsApiAxiosParamCreator = function (configuration) {
|
|
|
2354
2457
|
options: localVarRequestOptions,
|
|
2355
2458
|
};
|
|
2356
2459
|
},
|
|
2460
|
+
/**
|
|
2461
|
+
*
|
|
2462
|
+
* @param {ObjectDetectionV1ControllerInput} objectDetectionV1ControllerInput
|
|
2463
|
+
* @param {*} [options] Override http request option.
|
|
2464
|
+
* @throws {RequiredError}
|
|
2465
|
+
*/
|
|
2466
|
+
operationsControllerRunObjectDetectionV1V1: async (objectDetectionV1ControllerInput, options = {}) => {
|
|
2467
|
+
// verify required parameter 'objectDetectionV1ControllerInput' is not null or undefined
|
|
2468
|
+
assertParamExists('operationsControllerRunObjectDetectionV1V1', 'objectDetectionV1ControllerInput', objectDetectionV1ControllerInput);
|
|
2469
|
+
const localVarPath = `/v1/operations/run/objectDetection.v1`;
|
|
2470
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2471
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2472
|
+
let baseOptions;
|
|
2473
|
+
if (configuration) {
|
|
2474
|
+
baseOptions = configuration.baseOptions;
|
|
2475
|
+
}
|
|
2476
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
2477
|
+
const localVarHeaderParameter = {};
|
|
2478
|
+
const localVarQueryParameter = {};
|
|
2479
|
+
// authentication bearer required
|
|
2480
|
+
// http bearer authentication required
|
|
2481
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2482
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2483
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2484
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2485
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2486
|
+
localVarRequestOptions.data = serializeDataIfNeeded(objectDetectionV1ControllerInput, localVarRequestOptions, configuration);
|
|
2487
|
+
return {
|
|
2488
|
+
url: toPathString(localVarUrlObj),
|
|
2489
|
+
options: localVarRequestOptions,
|
|
2490
|
+
};
|
|
2491
|
+
},
|
|
2492
|
+
/**
|
|
2493
|
+
*
|
|
2494
|
+
* @param {UpscaleV1ControllerInput} upscaleV1ControllerInput
|
|
2495
|
+
* @param {*} [options] Override http request option.
|
|
2496
|
+
* @throws {RequiredError}
|
|
2497
|
+
*/
|
|
2498
|
+
operationsControllerRunUpscaleV1V1: async (upscaleV1ControllerInput, options = {}) => {
|
|
2499
|
+
// verify required parameter 'upscaleV1ControllerInput' is not null or undefined
|
|
2500
|
+
assertParamExists('operationsControllerRunUpscaleV1V1', 'upscaleV1ControllerInput', upscaleV1ControllerInput);
|
|
2501
|
+
const localVarPath = `/v1/operations/run/upscale.v1`;
|
|
2502
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2503
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2504
|
+
let baseOptions;
|
|
2505
|
+
if (configuration) {
|
|
2506
|
+
baseOptions = configuration.baseOptions;
|
|
2507
|
+
}
|
|
2508
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
2509
|
+
const localVarHeaderParameter = {};
|
|
2510
|
+
const localVarQueryParameter = {};
|
|
2511
|
+
// authentication bearer required
|
|
2512
|
+
// http bearer authentication required
|
|
2513
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2514
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2515
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2516
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2517
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2518
|
+
localVarRequestOptions.data = serializeDataIfNeeded(upscaleV1ControllerInput, localVarRequestOptions, configuration);
|
|
2519
|
+
return {
|
|
2520
|
+
url: toPathString(localVarUrlObj),
|
|
2521
|
+
options: localVarRequestOptions,
|
|
2522
|
+
};
|
|
2523
|
+
},
|
|
2357
2524
|
/**
|
|
2358
2525
|
*
|
|
2359
2526
|
* @param {string} id
|
|
@@ -2439,14 +2606,14 @@ export const OperationsApiFp = function (configuration) {
|
|
|
2439
2606
|
},
|
|
2440
2607
|
/**
|
|
2441
2608
|
*
|
|
2442
|
-
* @param {
|
|
2609
|
+
* @param {GenerateV1ControllerInput} generateV1ControllerInput
|
|
2443
2610
|
* @param {*} [options] Override http request option.
|
|
2444
2611
|
* @throws {RequiredError}
|
|
2445
2612
|
*/
|
|
2446
|
-
async
|
|
2447
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2613
|
+
async operationsControllerRunGenerateV1V1(generateV1ControllerInput, options) {
|
|
2614
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.operationsControllerRunGenerateV1V1(generateV1ControllerInput, options);
|
|
2448
2615
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2449
|
-
const localVarOperationServerBasePath = operationServerMap['OperationsApi.
|
|
2616
|
+
const localVarOperationServerBasePath = operationServerMap['OperationsApi.operationsControllerRunGenerateV1V1']?.[localVarOperationServerIndex]?.url;
|
|
2450
2617
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2451
2618
|
},
|
|
2452
2619
|
/**
|
|
@@ -2461,6 +2628,30 @@ export const OperationsApiFp = function (configuration) {
|
|
|
2461
2628
|
const localVarOperationServerBasePath = operationServerMap['OperationsApi.operationsControllerRunGenerateV3V1']?.[localVarOperationServerIndex]?.url;
|
|
2462
2629
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2463
2630
|
},
|
|
2631
|
+
/**
|
|
2632
|
+
*
|
|
2633
|
+
* @param {GPTV1ControllerInput} gPTV1ControllerInput
|
|
2634
|
+
* @param {*} [options] Override http request option.
|
|
2635
|
+
* @throws {RequiredError}
|
|
2636
|
+
*/
|
|
2637
|
+
async operationsControllerRunGptV1V1(gPTV1ControllerInput, options) {
|
|
2638
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.operationsControllerRunGptV1V1(gPTV1ControllerInput, options);
|
|
2639
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2640
|
+
const localVarOperationServerBasePath = operationServerMap['OperationsApi.operationsControllerRunGptV1V1']?.[localVarOperationServerIndex]?.url;
|
|
2641
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2642
|
+
},
|
|
2643
|
+
/**
|
|
2644
|
+
*
|
|
2645
|
+
* @param {ImagineV1ControllerInput} imagineV1ControllerInput
|
|
2646
|
+
* @param {*} [options] Override http request option.
|
|
2647
|
+
* @throws {RequiredError}
|
|
2648
|
+
*/
|
|
2649
|
+
async operationsControllerRunImagineV1V1(imagineV1ControllerInput, options) {
|
|
2650
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.operationsControllerRunImagineV1V1(imagineV1ControllerInput, options);
|
|
2651
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2652
|
+
const localVarOperationServerBasePath = operationServerMap['OperationsApi.operationsControllerRunImagineV1V1']?.[localVarOperationServerIndex]?.url;
|
|
2653
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2654
|
+
},
|
|
2464
2655
|
/**
|
|
2465
2656
|
*
|
|
2466
2657
|
* @param {InpaintV1ControllerInput} inpaintV1ControllerInput
|
|
@@ -2473,6 +2664,30 @@ export const OperationsApiFp = function (configuration) {
|
|
|
2473
2664
|
const localVarOperationServerBasePath = operationServerMap['OperationsApi.operationsControllerRunInpaintV1V1']?.[localVarOperationServerIndex]?.url;
|
|
2474
2665
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2475
2666
|
},
|
|
2667
|
+
/**
|
|
2668
|
+
*
|
|
2669
|
+
* @param {ObjectDetectionV1ControllerInput} objectDetectionV1ControllerInput
|
|
2670
|
+
* @param {*} [options] Override http request option.
|
|
2671
|
+
* @throws {RequiredError}
|
|
2672
|
+
*/
|
|
2673
|
+
async operationsControllerRunObjectDetectionV1V1(objectDetectionV1ControllerInput, options) {
|
|
2674
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.operationsControllerRunObjectDetectionV1V1(objectDetectionV1ControllerInput, options);
|
|
2675
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2676
|
+
const localVarOperationServerBasePath = operationServerMap['OperationsApi.operationsControllerRunObjectDetectionV1V1']?.[localVarOperationServerIndex]?.url;
|
|
2677
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2678
|
+
},
|
|
2679
|
+
/**
|
|
2680
|
+
*
|
|
2681
|
+
* @param {UpscaleV1ControllerInput} upscaleV1ControllerInput
|
|
2682
|
+
* @param {*} [options] Override http request option.
|
|
2683
|
+
* @throws {RequiredError}
|
|
2684
|
+
*/
|
|
2685
|
+
async operationsControllerRunUpscaleV1V1(upscaleV1ControllerInput, options) {
|
|
2686
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.operationsControllerRunUpscaleV1V1(upscaleV1ControllerInput, options);
|
|
2687
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2688
|
+
const localVarOperationServerBasePath = operationServerMap['OperationsApi.operationsControllerRunUpscaleV1V1']?.[localVarOperationServerIndex]?.url;
|
|
2689
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2690
|
+
},
|
|
2476
2691
|
/**
|
|
2477
2692
|
*
|
|
2478
2693
|
* @param {string} id
|
|
@@ -2526,12 +2741,12 @@ export const OperationsApiFactory = function (configuration, basePath, axios) {
|
|
|
2526
2741
|
},
|
|
2527
2742
|
/**
|
|
2528
2743
|
*
|
|
2529
|
-
* @param {
|
|
2744
|
+
* @param {GenerateV1ControllerInput} generateV1ControllerInput
|
|
2530
2745
|
* @param {*} [options] Override http request option.
|
|
2531
2746
|
* @throws {RequiredError}
|
|
2532
2747
|
*/
|
|
2533
|
-
|
|
2534
|
-
return localVarFp.
|
|
2748
|
+
operationsControllerRunGenerateV1V1(generateV1ControllerInput, options) {
|
|
2749
|
+
return localVarFp.operationsControllerRunGenerateV1V1(generateV1ControllerInput, options).then((request) => request(axios, basePath));
|
|
2535
2750
|
},
|
|
2536
2751
|
/**
|
|
2537
2752
|
*
|
|
@@ -2542,6 +2757,24 @@ export const OperationsApiFactory = function (configuration, basePath, axios) {
|
|
|
2542
2757
|
operationsControllerRunGenerateV3V1(generateV3ControllerInput, options) {
|
|
2543
2758
|
return localVarFp.operationsControllerRunGenerateV3V1(generateV3ControllerInput, options).then((request) => request(axios, basePath));
|
|
2544
2759
|
},
|
|
2760
|
+
/**
|
|
2761
|
+
*
|
|
2762
|
+
* @param {GPTV1ControllerInput} gPTV1ControllerInput
|
|
2763
|
+
* @param {*} [options] Override http request option.
|
|
2764
|
+
* @throws {RequiredError}
|
|
2765
|
+
*/
|
|
2766
|
+
operationsControllerRunGptV1V1(gPTV1ControllerInput, options) {
|
|
2767
|
+
return localVarFp.operationsControllerRunGptV1V1(gPTV1ControllerInput, options).then((request) => request(axios, basePath));
|
|
2768
|
+
},
|
|
2769
|
+
/**
|
|
2770
|
+
*
|
|
2771
|
+
* @param {ImagineV1ControllerInput} imagineV1ControllerInput
|
|
2772
|
+
* @param {*} [options] Override http request option.
|
|
2773
|
+
* @throws {RequiredError}
|
|
2774
|
+
*/
|
|
2775
|
+
operationsControllerRunImagineV1V1(imagineV1ControllerInput, options) {
|
|
2776
|
+
return localVarFp.operationsControllerRunImagineV1V1(imagineV1ControllerInput, options).then((request) => request(axios, basePath));
|
|
2777
|
+
},
|
|
2545
2778
|
/**
|
|
2546
2779
|
*
|
|
2547
2780
|
* @param {InpaintV1ControllerInput} inpaintV1ControllerInput
|
|
@@ -2551,6 +2784,24 @@ export const OperationsApiFactory = function (configuration, basePath, axios) {
|
|
|
2551
2784
|
operationsControllerRunInpaintV1V1(inpaintV1ControllerInput, options) {
|
|
2552
2785
|
return localVarFp.operationsControllerRunInpaintV1V1(inpaintV1ControllerInput, options).then((request) => request(axios, basePath));
|
|
2553
2786
|
},
|
|
2787
|
+
/**
|
|
2788
|
+
*
|
|
2789
|
+
* @param {ObjectDetectionV1ControllerInput} objectDetectionV1ControllerInput
|
|
2790
|
+
* @param {*} [options] Override http request option.
|
|
2791
|
+
* @throws {RequiredError}
|
|
2792
|
+
*/
|
|
2793
|
+
operationsControllerRunObjectDetectionV1V1(objectDetectionV1ControllerInput, options) {
|
|
2794
|
+
return localVarFp.operationsControllerRunObjectDetectionV1V1(objectDetectionV1ControllerInput, options).then((request) => request(axios, basePath));
|
|
2795
|
+
},
|
|
2796
|
+
/**
|
|
2797
|
+
*
|
|
2798
|
+
* @param {UpscaleV1ControllerInput} upscaleV1ControllerInput
|
|
2799
|
+
* @param {*} [options] Override http request option.
|
|
2800
|
+
* @throws {RequiredError}
|
|
2801
|
+
*/
|
|
2802
|
+
operationsControllerRunUpscaleV1V1(upscaleV1ControllerInput, options) {
|
|
2803
|
+
return localVarFp.operationsControllerRunUpscaleV1V1(upscaleV1ControllerInput, options).then((request) => request(axios, basePath));
|
|
2804
|
+
},
|
|
2554
2805
|
/**
|
|
2555
2806
|
*
|
|
2556
2807
|
* @param {string} id
|
|
@@ -2604,13 +2855,13 @@ export class OperationsApi extends BaseAPI {
|
|
|
2604
2855
|
}
|
|
2605
2856
|
/**
|
|
2606
2857
|
*
|
|
2607
|
-
* @param {
|
|
2858
|
+
* @param {GenerateV1ControllerInput} generateV1ControllerInput
|
|
2608
2859
|
* @param {*} [options] Override http request option.
|
|
2609
2860
|
* @throws {RequiredError}
|
|
2610
2861
|
* @memberof OperationsApi
|
|
2611
2862
|
*/
|
|
2612
|
-
|
|
2613
|
-
return OperationsApiFp(this.configuration).
|
|
2863
|
+
operationsControllerRunGenerateV1V1(generateV1ControllerInput, options) {
|
|
2864
|
+
return OperationsApiFp(this.configuration).operationsControllerRunGenerateV1V1(generateV1ControllerInput, options).then((request) => request(this.axios, this.basePath));
|
|
2614
2865
|
}
|
|
2615
2866
|
/**
|
|
2616
2867
|
*
|
|
@@ -2622,6 +2873,26 @@ export class OperationsApi extends BaseAPI {
|
|
|
2622
2873
|
operationsControllerRunGenerateV3V1(generateV3ControllerInput, options) {
|
|
2623
2874
|
return OperationsApiFp(this.configuration).operationsControllerRunGenerateV3V1(generateV3ControllerInput, options).then((request) => request(this.axios, this.basePath));
|
|
2624
2875
|
}
|
|
2876
|
+
/**
|
|
2877
|
+
*
|
|
2878
|
+
* @param {GPTV1ControllerInput} gPTV1ControllerInput
|
|
2879
|
+
* @param {*} [options] Override http request option.
|
|
2880
|
+
* @throws {RequiredError}
|
|
2881
|
+
* @memberof OperationsApi
|
|
2882
|
+
*/
|
|
2883
|
+
operationsControllerRunGptV1V1(gPTV1ControllerInput, options) {
|
|
2884
|
+
return OperationsApiFp(this.configuration).operationsControllerRunGptV1V1(gPTV1ControllerInput, options).then((request) => request(this.axios, this.basePath));
|
|
2885
|
+
}
|
|
2886
|
+
/**
|
|
2887
|
+
*
|
|
2888
|
+
* @param {ImagineV1ControllerInput} imagineV1ControllerInput
|
|
2889
|
+
* @param {*} [options] Override http request option.
|
|
2890
|
+
* @throws {RequiredError}
|
|
2891
|
+
* @memberof OperationsApi
|
|
2892
|
+
*/
|
|
2893
|
+
operationsControllerRunImagineV1V1(imagineV1ControllerInput, options) {
|
|
2894
|
+
return OperationsApiFp(this.configuration).operationsControllerRunImagineV1V1(imagineV1ControllerInput, options).then((request) => request(this.axios, this.basePath));
|
|
2895
|
+
}
|
|
2625
2896
|
/**
|
|
2626
2897
|
*
|
|
2627
2898
|
* @param {InpaintV1ControllerInput} inpaintV1ControllerInput
|
|
@@ -2632,6 +2903,26 @@ export class OperationsApi extends BaseAPI {
|
|
|
2632
2903
|
operationsControllerRunInpaintV1V1(inpaintV1ControllerInput, options) {
|
|
2633
2904
|
return OperationsApiFp(this.configuration).operationsControllerRunInpaintV1V1(inpaintV1ControllerInput, options).then((request) => request(this.axios, this.basePath));
|
|
2634
2905
|
}
|
|
2906
|
+
/**
|
|
2907
|
+
*
|
|
2908
|
+
* @param {ObjectDetectionV1ControllerInput} objectDetectionV1ControllerInput
|
|
2909
|
+
* @param {*} [options] Override http request option.
|
|
2910
|
+
* @throws {RequiredError}
|
|
2911
|
+
* @memberof OperationsApi
|
|
2912
|
+
*/
|
|
2913
|
+
operationsControllerRunObjectDetectionV1V1(objectDetectionV1ControllerInput, options) {
|
|
2914
|
+
return OperationsApiFp(this.configuration).operationsControllerRunObjectDetectionV1V1(objectDetectionV1ControllerInput, options).then((request) => request(this.axios, this.basePath));
|
|
2915
|
+
}
|
|
2916
|
+
/**
|
|
2917
|
+
*
|
|
2918
|
+
* @param {UpscaleV1ControllerInput} upscaleV1ControllerInput
|
|
2919
|
+
* @param {*} [options] Override http request option.
|
|
2920
|
+
* @throws {RequiredError}
|
|
2921
|
+
* @memberof OperationsApi
|
|
2922
|
+
*/
|
|
2923
|
+
operationsControllerRunUpscaleV1V1(upscaleV1ControllerInput, options) {
|
|
2924
|
+
return OperationsApiFp(this.configuration).operationsControllerRunUpscaleV1V1(upscaleV1ControllerInput, options).then((request) => request(this.axios, this.basePath));
|
|
2925
|
+
}
|
|
2635
2926
|
/**
|
|
2636
2927
|
*
|
|
2637
2928
|
* @param {string} id
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -84,18 +84,46 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
84
84
|
};
|
|
85
85
|
operations: {
|
|
86
86
|
create: {
|
|
87
|
+
detect: {
|
|
88
|
+
v1: (props: {
|
|
89
|
+
input: import("../autogenerated").ObjectDetectionV1Input;
|
|
90
|
+
metadata?: any;
|
|
91
|
+
}) => Promise<import("../autogenerated").OperationEntity>;
|
|
92
|
+
};
|
|
87
93
|
generate: {
|
|
88
94
|
v1: (props: {
|
|
95
|
+
input: import("../autogenerated").GenerateV1Input;
|
|
96
|
+
metadata?: any;
|
|
97
|
+
}) => Promise<import("../autogenerated").OperationEntity>;
|
|
98
|
+
v3: (props: {
|
|
89
99
|
input: import("../autogenerated").GenerateV3Input;
|
|
90
100
|
metadata?: any;
|
|
91
101
|
}) => Promise<import("../autogenerated").OperationEntity>;
|
|
92
102
|
};
|
|
103
|
+
gpt: {
|
|
104
|
+
v1: (props: {
|
|
105
|
+
input: import("../autogenerated").GPTV1Input;
|
|
106
|
+
metadata?: any;
|
|
107
|
+
}) => Promise<import("../autogenerated").OperationEntity>;
|
|
108
|
+
};
|
|
109
|
+
imagine: {
|
|
110
|
+
v1: (props: {
|
|
111
|
+
input: import("../autogenerated").InpaintV1Input;
|
|
112
|
+
metadata?: any;
|
|
113
|
+
}) => Promise<import("../autogenerated").OperationEntity>;
|
|
114
|
+
};
|
|
93
115
|
inpaint: {
|
|
94
116
|
v1: (props: {
|
|
95
117
|
input: import("../autogenerated").InpaintV1Input;
|
|
96
118
|
metadata?: any;
|
|
97
119
|
}) => Promise<import("../autogenerated").OperationEntity>;
|
|
98
120
|
};
|
|
121
|
+
upscale: {
|
|
122
|
+
v1: (props: {
|
|
123
|
+
input: import("../autogenerated").UpscaleV1Input;
|
|
124
|
+
metadata?: any;
|
|
125
|
+
}) => Promise<import("../autogenerated").OperationEntity>;
|
|
126
|
+
};
|
|
99
127
|
};
|
|
100
128
|
get: (props: {
|
|
101
129
|
id: string;
|
|
@@ -1,19 +1,47 @@
|
|
|
1
1
|
import { SDKOptions, ListProps } from '../../types';
|
|
2
|
-
import { GenerateV3Input, InpaintV1Input } from '../../autogenerated';
|
|
2
|
+
import { GenerateV1Input, GenerateV3Input, GPTV1Input, InpaintV1Input, ObjectDetectionV1Input, UpscaleV1Input } from '../../autogenerated';
|
|
3
3
|
declare const operations: (options: SDKOptions) => {
|
|
4
4
|
create: {
|
|
5
|
+
detect: {
|
|
6
|
+
v1: (props: {
|
|
7
|
+
input: ObjectDetectionV1Input;
|
|
8
|
+
metadata?: any;
|
|
9
|
+
}) => Promise<import("../../autogenerated").OperationEntity>;
|
|
10
|
+
};
|
|
5
11
|
generate: {
|
|
6
12
|
v1: (props: {
|
|
13
|
+
input: GenerateV1Input;
|
|
14
|
+
metadata?: any;
|
|
15
|
+
}) => Promise<import("../../autogenerated").OperationEntity>;
|
|
16
|
+
v3: (props: {
|
|
7
17
|
input: GenerateV3Input;
|
|
8
18
|
metadata?: any;
|
|
9
19
|
}) => Promise<import("../../autogenerated").OperationEntity>;
|
|
10
20
|
};
|
|
21
|
+
gpt: {
|
|
22
|
+
v1: (props: {
|
|
23
|
+
input: GPTV1Input;
|
|
24
|
+
metadata?: any;
|
|
25
|
+
}) => Promise<import("../../autogenerated").OperationEntity>;
|
|
26
|
+
};
|
|
27
|
+
imagine: {
|
|
28
|
+
v1: (props: {
|
|
29
|
+
input: InpaintV1Input;
|
|
30
|
+
metadata?: any;
|
|
31
|
+
}) => Promise<import("../../autogenerated").OperationEntity>;
|
|
32
|
+
};
|
|
11
33
|
inpaint: {
|
|
12
34
|
v1: (props: {
|
|
13
35
|
input: InpaintV1Input;
|
|
14
36
|
metadata?: any;
|
|
15
37
|
}) => Promise<import("../../autogenerated").OperationEntity>;
|
|
16
38
|
};
|
|
39
|
+
upscale: {
|
|
40
|
+
v1: (props: {
|
|
41
|
+
input: UpscaleV1Input;
|
|
42
|
+
metadata?: any;
|
|
43
|
+
}) => Promise<import("../../autogenerated").OperationEntity>;
|
|
44
|
+
};
|
|
17
45
|
};
|
|
18
46
|
get: (props: {
|
|
19
47
|
id: string;
|