@hautechai/sdk 1.8.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +136 -8
- package/dist/index.d.ts +136 -8
- package/dist/index.js +79 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +77 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -34,6 +34,7 @@ __export(index_exports, {
|
|
|
34
34
|
AccessApiAxiosParamCreator: () => AccessApiAxiosParamCreator,
|
|
35
35
|
AccessApiFactory: () => AccessApiFactory,
|
|
36
36
|
AccessApiFp: () => AccessApiFp,
|
|
37
|
+
AccountEntityTypeEnum: () => AccountEntityTypeEnum,
|
|
37
38
|
AccountsApi: () => AccountsApi,
|
|
38
39
|
AccountsApiAxiosParamCreator: () => AccountsApiAxiosParamCreator,
|
|
39
40
|
AccountsApiFactory: () => AccountsApiFactory,
|
|
@@ -188,6 +189,7 @@ __export(index_exports, {
|
|
|
188
189
|
SegmentAnythingEmbeddingsV1ResponseStatusEnum: () => SegmentAnythingEmbeddingsV1ResponseStatusEnum,
|
|
189
190
|
SegmentAnythingMaskV1ResponseKindEnum: () => SegmentAnythingMaskV1ResponseKindEnum,
|
|
190
191
|
SegmentAnythingMaskV1ResponseStatusEnum: () => SegmentAnythingMaskV1ResponseStatusEnum,
|
|
192
|
+
SelfAccountDtoTypeEnum: () => SelfAccountDtoTypeEnum,
|
|
191
193
|
StackEntityKindEnum: () => StackEntityKindEnum,
|
|
192
194
|
StacksApi: () => StacksApi,
|
|
193
195
|
StacksApiAxiosParamCreator: () => StacksApiAxiosParamCreator,
|
|
@@ -304,6 +306,10 @@ var createRequestFunction = function(axiosArgs, globalAxios3, BASE_PATH2, config
|
|
|
304
306
|
};
|
|
305
307
|
|
|
306
308
|
// src/autogenerated/api.ts
|
|
309
|
+
var AccountEntityTypeEnum = {
|
|
310
|
+
Root: "root",
|
|
311
|
+
User: "user"
|
|
312
|
+
};
|
|
307
313
|
var AddAccountToGroupControllerParamsDtoRoleEnum = {
|
|
308
314
|
Maintainer: "maintainer",
|
|
309
315
|
Member: "member",
|
|
@@ -790,6 +796,10 @@ var SegmentAnythingMaskV1ResponseStatusEnum = {
|
|
|
790
796
|
Finished: "finished",
|
|
791
797
|
Failed: "failed"
|
|
792
798
|
};
|
|
799
|
+
var SelfAccountDtoTypeEnum = {
|
|
800
|
+
Root: "root",
|
|
801
|
+
User: "user"
|
|
802
|
+
};
|
|
793
803
|
var StackEntityKindEnum = {
|
|
794
804
|
Stack: "stack"
|
|
795
805
|
};
|
|
@@ -1313,6 +1323,36 @@ var AccountsApiAxiosParamCreator = function(configuration) {
|
|
|
1313
1323
|
url: toPathString(localVarUrlObj),
|
|
1314
1324
|
options: localVarRequestOptions
|
|
1315
1325
|
};
|
|
1326
|
+
},
|
|
1327
|
+
/**
|
|
1328
|
+
*
|
|
1329
|
+
* @param {string} id
|
|
1330
|
+
* @param {UpdateAccountParamsDto} updateAccountParamsDto
|
|
1331
|
+
* @param {*} [options] Override http request option.
|
|
1332
|
+
* @throws {RequiredError}
|
|
1333
|
+
*/
|
|
1334
|
+
accountsControllerUpdateAccountV1: async (id, updateAccountParamsDto, options = {}) => {
|
|
1335
|
+
assertParamExists("accountsControllerUpdateAccountV1", "id", id);
|
|
1336
|
+
assertParamExists("accountsControllerUpdateAccountV1", "updateAccountParamsDto", updateAccountParamsDto);
|
|
1337
|
+
const localVarPath = `/v1/accounts/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1338
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1339
|
+
let baseOptions;
|
|
1340
|
+
if (configuration) {
|
|
1341
|
+
baseOptions = configuration.baseOptions;
|
|
1342
|
+
}
|
|
1343
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
1344
|
+
const localVarHeaderParameter = {};
|
|
1345
|
+
const localVarQueryParameter = {};
|
|
1346
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1347
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1348
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1349
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1350
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1351
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateAccountParamsDto, localVarRequestOptions, configuration);
|
|
1352
|
+
return {
|
|
1353
|
+
url: toPathString(localVarUrlObj),
|
|
1354
|
+
options: localVarRequestOptions
|
|
1355
|
+
};
|
|
1316
1356
|
}
|
|
1317
1357
|
};
|
|
1318
1358
|
};
|
|
@@ -1379,6 +1419,19 @@ var AccountsApiFp = function(configuration) {
|
|
|
1379
1419
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1380
1420
|
const localVarOperationServerBasePath = operationServerMap["AccountsApi.accountsControllerListAccountsV1"]?.[localVarOperationServerIndex]?.url;
|
|
1381
1421
|
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1422
|
+
},
|
|
1423
|
+
/**
|
|
1424
|
+
*
|
|
1425
|
+
* @param {string} id
|
|
1426
|
+
* @param {UpdateAccountParamsDto} updateAccountParamsDto
|
|
1427
|
+
* @param {*} [options] Override http request option.
|
|
1428
|
+
* @throws {RequiredError}
|
|
1429
|
+
*/
|
|
1430
|
+
async accountsControllerUpdateAccountV1(id, updateAccountParamsDto, options) {
|
|
1431
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.accountsControllerUpdateAccountV1(id, updateAccountParamsDto, options);
|
|
1432
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1433
|
+
const localVarOperationServerBasePath = operationServerMap["AccountsApi.accountsControllerUpdateAccountV1"]?.[localVarOperationServerIndex]?.url;
|
|
1434
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1382
1435
|
}
|
|
1383
1436
|
};
|
|
1384
1437
|
};
|
|
@@ -1430,6 +1483,16 @@ var AccountsApiFactory = function(configuration, basePath, axios2) {
|
|
|
1430
1483
|
*/
|
|
1431
1484
|
accountsControllerListAccountsV1(orderBy, limit, cursor, options) {
|
|
1432
1485
|
return localVarFp.accountsControllerListAccountsV1(orderBy, limit, cursor, options).then((request) => request(axios2, basePath));
|
|
1486
|
+
},
|
|
1487
|
+
/**
|
|
1488
|
+
*
|
|
1489
|
+
* @param {string} id
|
|
1490
|
+
* @param {UpdateAccountParamsDto} updateAccountParamsDto
|
|
1491
|
+
* @param {*} [options] Override http request option.
|
|
1492
|
+
* @throws {RequiredError}
|
|
1493
|
+
*/
|
|
1494
|
+
accountsControllerUpdateAccountV1(id, updateAccountParamsDto, options) {
|
|
1495
|
+
return localVarFp.accountsControllerUpdateAccountV1(id, updateAccountParamsDto, options).then((request) => request(axios2, basePath));
|
|
1433
1496
|
}
|
|
1434
1497
|
};
|
|
1435
1498
|
};
|
|
@@ -1485,6 +1548,17 @@ var AccountsApi = class extends BaseAPI {
|
|
|
1485
1548
|
accountsControllerListAccountsV1(orderBy, limit, cursor, options) {
|
|
1486
1549
|
return AccountsApiFp(this.configuration).accountsControllerListAccountsV1(orderBy, limit, cursor, options).then((request) => request(this.axios, this.basePath));
|
|
1487
1550
|
}
|
|
1551
|
+
/**
|
|
1552
|
+
*
|
|
1553
|
+
* @param {string} id
|
|
1554
|
+
* @param {UpdateAccountParamsDto} updateAccountParamsDto
|
|
1555
|
+
* @param {*} [options] Override http request option.
|
|
1556
|
+
* @throws {RequiredError}
|
|
1557
|
+
* @memberof AccountsApi
|
|
1558
|
+
*/
|
|
1559
|
+
accountsControllerUpdateAccountV1(id, updateAccountParamsDto, options) {
|
|
1560
|
+
return AccountsApiFp(this.configuration).accountsControllerUpdateAccountV1(id, updateAccountParamsDto, options).then((request) => request(this.axios, this.basePath));
|
|
1561
|
+
}
|
|
1488
1562
|
};
|
|
1489
1563
|
var AccountsControllerListAccountsV1OrderByEnum = {
|
|
1490
1564
|
Asc: "createdAt_ASC",
|
|
@@ -11302,6 +11376,9 @@ var accounts = (options) => {
|
|
|
11302
11376
|
create: async (props = {}) => api.call({
|
|
11303
11377
|
run: (methods) => methods.accountsControllerCreateAccountV1({ alias: props.alias })
|
|
11304
11378
|
}),
|
|
11379
|
+
edit: async (props) => api.call({
|
|
11380
|
+
run: (methods) => methods.accountsControllerUpdateAccountV1(props.id, { alias: props.alias })
|
|
11381
|
+
}),
|
|
11305
11382
|
get: async (props) => api.callWithReturningUndefinedOn404({
|
|
11306
11383
|
run: (methods) => methods.accountsControllerGetAccountV1(props.id)
|
|
11307
11384
|
}),
|
|
@@ -12230,6 +12307,7 @@ var createTokenSigner = (options) => {
|
|
|
12230
12307
|
AccessApiAxiosParamCreator,
|
|
12231
12308
|
AccessApiFactory,
|
|
12232
12309
|
AccessApiFp,
|
|
12310
|
+
AccountEntityTypeEnum,
|
|
12233
12311
|
AccountsApi,
|
|
12234
12312
|
AccountsApiAxiosParamCreator,
|
|
12235
12313
|
AccountsApiFactory,
|
|
@@ -12384,6 +12462,7 @@ var createTokenSigner = (options) => {
|
|
|
12384
12462
|
SegmentAnythingEmbeddingsV1ResponseStatusEnum,
|
|
12385
12463
|
SegmentAnythingMaskV1ResponseKindEnum,
|
|
12386
12464
|
SegmentAnythingMaskV1ResponseStatusEnum,
|
|
12465
|
+
SelfAccountDtoTypeEnum,
|
|
12387
12466
|
StackEntityKindEnum,
|
|
12388
12467
|
StacksApi,
|
|
12389
12468
|
StacksApiAxiosParamCreator,
|