@hautechai/sdk 1.9.0 → 1.10.1
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/index.d.mts +40 -20
- package/dist/index.d.ts +40 -20
- package/dist/index.js +62 -41
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +62 -41
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1062,11 +1062,13 @@ var AccountsApiAxiosParamCreator = function(configuration) {
|
|
|
1062
1062
|
*
|
|
1063
1063
|
* @param {AccountsControllerListAccountsV1OrderByEnum} [orderBy]
|
|
1064
1064
|
* @param {number} [limit]
|
|
1065
|
+
* @param {Array<string>} [ids]
|
|
1066
|
+
* @param {Array<string>} [aliases]
|
|
1065
1067
|
* @param {string} [cursor]
|
|
1066
1068
|
* @param {*} [options] Override http request option.
|
|
1067
1069
|
* @throws {RequiredError}
|
|
1068
1070
|
*/
|
|
1069
|
-
accountsControllerListAccountsV1: async (orderBy, limit, cursor, options = {}) => {
|
|
1071
|
+
accountsControllerListAccountsV1: async (orderBy, limit, ids, aliases, cursor, options = {}) => {
|
|
1070
1072
|
const localVarPath = `/v1/accounts`;
|
|
1071
1073
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1072
1074
|
let baseOptions;
|
|
@@ -1083,6 +1085,12 @@ var AccountsApiAxiosParamCreator = function(configuration) {
|
|
|
1083
1085
|
if (limit !== void 0) {
|
|
1084
1086
|
localVarQueryParameter["limit"] = limit;
|
|
1085
1087
|
}
|
|
1088
|
+
if (ids) {
|
|
1089
|
+
localVarQueryParameter["ids"] = ids;
|
|
1090
|
+
}
|
|
1091
|
+
if (aliases) {
|
|
1092
|
+
localVarQueryParameter["aliases"] = aliases;
|
|
1093
|
+
}
|
|
1086
1094
|
if (cursor !== void 0) {
|
|
1087
1095
|
localVarQueryParameter["cursor"] = cursor;
|
|
1088
1096
|
}
|
|
@@ -1180,12 +1188,14 @@ var AccountsApiFp = function(configuration) {
|
|
|
1180
1188
|
*
|
|
1181
1189
|
* @param {AccountsControllerListAccountsV1OrderByEnum} [orderBy]
|
|
1182
1190
|
* @param {number} [limit]
|
|
1191
|
+
* @param {Array<string>} [ids]
|
|
1192
|
+
* @param {Array<string>} [aliases]
|
|
1183
1193
|
* @param {string} [cursor]
|
|
1184
1194
|
* @param {*} [options] Override http request option.
|
|
1185
1195
|
* @throws {RequiredError}
|
|
1186
1196
|
*/
|
|
1187
|
-
async accountsControllerListAccountsV1(orderBy, limit, cursor, options) {
|
|
1188
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.accountsControllerListAccountsV1(orderBy, limit, cursor, options);
|
|
1197
|
+
async accountsControllerListAccountsV1(orderBy, limit, ids, aliases, cursor, options) {
|
|
1198
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.accountsControllerListAccountsV1(orderBy, limit, ids, aliases, cursor, options);
|
|
1189
1199
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1190
1200
|
const localVarOperationServerBasePath = operationServerMap["AccountsApi.accountsControllerListAccountsV1"]?.[localVarOperationServerIndex]?.url;
|
|
1191
1201
|
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
@@ -1247,12 +1257,14 @@ var AccountsApiFactory = function(configuration, basePath, axios2) {
|
|
|
1247
1257
|
*
|
|
1248
1258
|
* @param {AccountsControllerListAccountsV1OrderByEnum} [orderBy]
|
|
1249
1259
|
* @param {number} [limit]
|
|
1260
|
+
* @param {Array<string>} [ids]
|
|
1261
|
+
* @param {Array<string>} [aliases]
|
|
1250
1262
|
* @param {string} [cursor]
|
|
1251
1263
|
* @param {*} [options] Override http request option.
|
|
1252
1264
|
* @throws {RequiredError}
|
|
1253
1265
|
*/
|
|
1254
|
-
accountsControllerListAccountsV1(orderBy, limit, cursor, options) {
|
|
1255
|
-
return localVarFp.accountsControllerListAccountsV1(orderBy, limit, cursor, options).then((request) => request(axios2, basePath));
|
|
1266
|
+
accountsControllerListAccountsV1(orderBy, limit, ids, aliases, cursor, options) {
|
|
1267
|
+
return localVarFp.accountsControllerListAccountsV1(orderBy, limit, ids, aliases, cursor, options).then((request) => request(axios2, basePath));
|
|
1256
1268
|
},
|
|
1257
1269
|
/**
|
|
1258
1270
|
*
|
|
@@ -1310,13 +1322,15 @@ var AccountsApi = class extends BaseAPI {
|
|
|
1310
1322
|
*
|
|
1311
1323
|
* @param {AccountsControllerListAccountsV1OrderByEnum} [orderBy]
|
|
1312
1324
|
* @param {number} [limit]
|
|
1325
|
+
* @param {Array<string>} [ids]
|
|
1326
|
+
* @param {Array<string>} [aliases]
|
|
1313
1327
|
* @param {string} [cursor]
|
|
1314
1328
|
* @param {*} [options] Override http request option.
|
|
1315
1329
|
* @throws {RequiredError}
|
|
1316
1330
|
* @memberof AccountsApi
|
|
1317
1331
|
*/
|
|
1318
|
-
accountsControllerListAccountsV1(orderBy, limit, cursor, options) {
|
|
1319
|
-
return AccountsApiFp(this.configuration).accountsControllerListAccountsV1(orderBy, limit, cursor, options).then((request) => request(this.axios, this.basePath));
|
|
1332
|
+
accountsControllerListAccountsV1(orderBy, limit, ids, aliases, cursor, options) {
|
|
1333
|
+
return AccountsApiFp(this.configuration).accountsControllerListAccountsV1(orderBy, limit, ids, aliases, cursor, options).then((request) => request(this.axios, this.basePath));
|
|
1320
1334
|
}
|
|
1321
1335
|
/**
|
|
1322
1336
|
*
|
|
@@ -10260,27 +10274,25 @@ var VideosApiAxiosParamCreator = function(configuration) {
|
|
|
10260
10274
|
},
|
|
10261
10275
|
/**
|
|
10262
10276
|
*
|
|
10263
|
-
* @param {
|
|
10277
|
+
* @param {string} id
|
|
10264
10278
|
* @param {*} [options] Override http request option.
|
|
10265
10279
|
* @throws {RequiredError}
|
|
10266
10280
|
*/
|
|
10267
|
-
|
|
10268
|
-
assertParamExists("
|
|
10269
|
-
const localVarPath = `/v1/videos/
|
|
10281
|
+
videosControllerGetVideoByIdV1: async (id, options = {}) => {
|
|
10282
|
+
assertParamExists("videosControllerGetVideoByIdV1", "id", id);
|
|
10283
|
+
const localVarPath = `/v1/videos/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
10270
10284
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10271
10285
|
let baseOptions;
|
|
10272
10286
|
if (configuration) {
|
|
10273
10287
|
baseOptions = configuration.baseOptions;
|
|
10274
10288
|
}
|
|
10275
|
-
const localVarRequestOptions = { method: "
|
|
10289
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
10276
10290
|
const localVarHeaderParameter = {};
|
|
10277
10291
|
const localVarQueryParameter = {};
|
|
10278
10292
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
10279
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
10280
10293
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10281
10294
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10282
10295
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
10283
|
-
localVarRequestOptions.data = serializeDataIfNeeded(getUrlsForImagesParamsDto, localVarRequestOptions, configuration);
|
|
10284
10296
|
return {
|
|
10285
10297
|
url: toPathString(localVarUrlObj),
|
|
10286
10298
|
options: localVarRequestOptions
|
|
@@ -10288,13 +10300,13 @@ var VideosApiAxiosParamCreator = function(configuration) {
|
|
|
10288
10300
|
},
|
|
10289
10301
|
/**
|
|
10290
10302
|
*
|
|
10291
|
-
* @param {string}
|
|
10303
|
+
* @param {Array<string>} ids
|
|
10292
10304
|
* @param {*} [options] Override http request option.
|
|
10293
10305
|
* @throws {RequiredError}
|
|
10294
10306
|
*/
|
|
10295
|
-
|
|
10296
|
-
assertParamExists("
|
|
10297
|
-
const localVarPath = `/v1/videos/
|
|
10307
|
+
videosControllerGetVideosV1: async (ids, options = {}) => {
|
|
10308
|
+
assertParamExists("videosControllerGetVideosV1", "ids", ids);
|
|
10309
|
+
const localVarPath = `/v1/videos/many`;
|
|
10298
10310
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10299
10311
|
let baseOptions;
|
|
10300
10312
|
if (configuration) {
|
|
@@ -10304,6 +10316,9 @@ var VideosApiAxiosParamCreator = function(configuration) {
|
|
|
10304
10316
|
const localVarHeaderParameter = {};
|
|
10305
10317
|
const localVarQueryParameter = {};
|
|
10306
10318
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
10319
|
+
if (ids) {
|
|
10320
|
+
localVarQueryParameter["ids"] = ids;
|
|
10321
|
+
}
|
|
10307
10322
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10308
10323
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10309
10324
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -10355,26 +10370,26 @@ var VideosApiFp = function(configuration) {
|
|
|
10355
10370
|
},
|
|
10356
10371
|
/**
|
|
10357
10372
|
*
|
|
10358
|
-
* @param {
|
|
10373
|
+
* @param {string} id
|
|
10359
10374
|
* @param {*} [options] Override http request option.
|
|
10360
10375
|
* @throws {RequiredError}
|
|
10361
10376
|
*/
|
|
10362
|
-
async
|
|
10363
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
10377
|
+
async videosControllerGetVideoByIdV1(id, options) {
|
|
10378
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.videosControllerGetVideoByIdV1(id, options);
|
|
10364
10379
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10365
|
-
const localVarOperationServerBasePath = operationServerMap["VideosApi.
|
|
10380
|
+
const localVarOperationServerBasePath = operationServerMap["VideosApi.videosControllerGetVideoByIdV1"]?.[localVarOperationServerIndex]?.url;
|
|
10366
10381
|
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
10367
10382
|
},
|
|
10368
10383
|
/**
|
|
10369
10384
|
*
|
|
10370
|
-
* @param {string}
|
|
10385
|
+
* @param {Array<string>} ids
|
|
10371
10386
|
* @param {*} [options] Override http request option.
|
|
10372
10387
|
* @throws {RequiredError}
|
|
10373
10388
|
*/
|
|
10374
|
-
async
|
|
10375
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
10389
|
+
async videosControllerGetVideosV1(ids, options) {
|
|
10390
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.videosControllerGetVideosV1(ids, options);
|
|
10376
10391
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10377
|
-
const localVarOperationServerBasePath = operationServerMap["VideosApi.
|
|
10392
|
+
const localVarOperationServerBasePath = operationServerMap["VideosApi.videosControllerGetVideosV1"]?.[localVarOperationServerIndex]?.url;
|
|
10378
10393
|
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
10379
10394
|
},
|
|
10380
10395
|
/**
|
|
@@ -10404,21 +10419,21 @@ var VideosApiFactory = function(configuration, basePath, axios2) {
|
|
|
10404
10419
|
},
|
|
10405
10420
|
/**
|
|
10406
10421
|
*
|
|
10407
|
-
* @param {
|
|
10422
|
+
* @param {string} id
|
|
10408
10423
|
* @param {*} [options] Override http request option.
|
|
10409
10424
|
* @throws {RequiredError}
|
|
10410
10425
|
*/
|
|
10411
|
-
|
|
10412
|
-
return localVarFp.
|
|
10426
|
+
videosControllerGetVideoByIdV1(id, options) {
|
|
10427
|
+
return localVarFp.videosControllerGetVideoByIdV1(id, options).then((request) => request(axios2, basePath));
|
|
10413
10428
|
},
|
|
10414
10429
|
/**
|
|
10415
10430
|
*
|
|
10416
|
-
* @param {string}
|
|
10431
|
+
* @param {Array<string>} ids
|
|
10417
10432
|
* @param {*} [options] Override http request option.
|
|
10418
10433
|
* @throws {RequiredError}
|
|
10419
10434
|
*/
|
|
10420
|
-
|
|
10421
|
-
return localVarFp.
|
|
10435
|
+
videosControllerGetVideosV1(ids, options) {
|
|
10436
|
+
return localVarFp.videosControllerGetVideosV1(ids, options).then((request) => request(axios2, basePath));
|
|
10422
10437
|
},
|
|
10423
10438
|
/**
|
|
10424
10439
|
*
|
|
@@ -10443,23 +10458,23 @@ var VideosApi = class extends BaseAPI {
|
|
|
10443
10458
|
}
|
|
10444
10459
|
/**
|
|
10445
10460
|
*
|
|
10446
|
-
* @param {
|
|
10461
|
+
* @param {string} id
|
|
10447
10462
|
* @param {*} [options] Override http request option.
|
|
10448
10463
|
* @throws {RequiredError}
|
|
10449
10464
|
* @memberof VideosApi
|
|
10450
10465
|
*/
|
|
10451
|
-
|
|
10452
|
-
return VideosApiFp(this.configuration).
|
|
10466
|
+
videosControllerGetVideoByIdV1(id, options) {
|
|
10467
|
+
return VideosApiFp(this.configuration).videosControllerGetVideoByIdV1(id, options).then((request) => request(this.axios, this.basePath));
|
|
10453
10468
|
}
|
|
10454
10469
|
/**
|
|
10455
10470
|
*
|
|
10456
|
-
* @param {string}
|
|
10471
|
+
* @param {Array<string>} ids
|
|
10457
10472
|
* @param {*} [options] Override http request option.
|
|
10458
10473
|
* @throws {RequiredError}
|
|
10459
10474
|
* @memberof VideosApi
|
|
10460
10475
|
*/
|
|
10461
|
-
|
|
10462
|
-
return VideosApiFp(this.configuration).
|
|
10476
|
+
videosControllerGetVideosV1(ids, options) {
|
|
10477
|
+
return VideosApiFp(this.configuration).videosControllerGetVideosV1(ids, options).then((request) => request(this.axios, this.basePath));
|
|
10463
10478
|
}
|
|
10464
10479
|
/**
|
|
10465
10480
|
*
|
|
@@ -11159,7 +11174,13 @@ var accounts = (options) => {
|
|
|
11159
11174
|
run: (methods) => methods.accountsControllerGetAccountByAliasV1(props.alias)
|
|
11160
11175
|
}),
|
|
11161
11176
|
list: async (props = {}) => api.call({
|
|
11162
|
-
run: (methods) => methods.accountsControllerListAccountsV1(
|
|
11177
|
+
run: (methods) => methods.accountsControllerListAccountsV1(
|
|
11178
|
+
props.orderBy,
|
|
11179
|
+
props.limit,
|
|
11180
|
+
props.ids,
|
|
11181
|
+
props.aliases,
|
|
11182
|
+
props.cursor
|
|
11183
|
+
),
|
|
11163
11184
|
transform: transformToListResponse
|
|
11164
11185
|
})
|
|
11165
11186
|
};
|
|
@@ -11926,10 +11947,10 @@ var videos = (options) => {
|
|
|
11926
11947
|
const api = useAutogeneratedAPI({ API: VideosApi, options });
|
|
11927
11948
|
return {
|
|
11928
11949
|
get: async (props) => api.callWithReturningUndefinedOn404({
|
|
11929
|
-
run: (methods) => methods.
|
|
11950
|
+
run: (methods) => methods.videosControllerGetVideoByIdV1(props.id)
|
|
11930
11951
|
}),
|
|
11931
11952
|
getUrls: async (props) => api.call({
|
|
11932
|
-
run: (methods) => methods.
|
|
11953
|
+
run: (methods) => methods.videosControllerGetVideosV1(props.ids),
|
|
11933
11954
|
transform: (data) => data.reduce((acc, { id, url }) => ({ ...acc, [id]: url }), {})
|
|
11934
11955
|
})
|
|
11935
11956
|
};
|