@hautechai/sdk 1.7.1 → 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 +160 -49
- package/dist/index.d.ts +160 -49
- package/dist/index.js +110 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +107 -15
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
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,
|
|
@@ -220,6 +222,7 @@ __export(index_exports, {
|
|
|
220
222
|
WorkflowsApiAxiosParamCreator: () => WorkflowsApiAxiosParamCreator,
|
|
221
223
|
WorkflowsApiFactory: () => WorkflowsApiFactory,
|
|
222
224
|
WorkflowsApiFp: () => WorkflowsApiFp,
|
|
225
|
+
WorkflowsControllerListWorkflowsV1OrderByEnum: () => WorkflowsControllerListWorkflowsV1OrderByEnum,
|
|
223
226
|
createSDK: () => createSDK,
|
|
224
227
|
createTokenSigner: () => createTokenSigner
|
|
225
228
|
});
|
|
@@ -303,6 +306,10 @@ var createRequestFunction = function(axiosArgs, globalAxios3, BASE_PATH2, config
|
|
|
303
306
|
};
|
|
304
307
|
|
|
305
308
|
// src/autogenerated/api.ts
|
|
309
|
+
var AccountEntityTypeEnum = {
|
|
310
|
+
Root: "root",
|
|
311
|
+
User: "user"
|
|
312
|
+
};
|
|
306
313
|
var AddAccountToGroupControllerParamsDtoRoleEnum = {
|
|
307
314
|
Maintainer: "maintainer",
|
|
308
315
|
Member: "member",
|
|
@@ -789,6 +796,10 @@ var SegmentAnythingMaskV1ResponseStatusEnum = {
|
|
|
789
796
|
Finished: "finished",
|
|
790
797
|
Failed: "failed"
|
|
791
798
|
};
|
|
799
|
+
var SelfAccountDtoTypeEnum = {
|
|
800
|
+
Root: "root",
|
|
801
|
+
User: "user"
|
|
802
|
+
};
|
|
792
803
|
var StackEntityKindEnum = {
|
|
793
804
|
Stack: "stack"
|
|
794
805
|
};
|
|
@@ -1312,6 +1323,36 @@ var AccountsApiAxiosParamCreator = function(configuration) {
|
|
|
1312
1323
|
url: toPathString(localVarUrlObj),
|
|
1313
1324
|
options: localVarRequestOptions
|
|
1314
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
|
+
};
|
|
1315
1356
|
}
|
|
1316
1357
|
};
|
|
1317
1358
|
};
|
|
@@ -1378,6 +1419,19 @@ var AccountsApiFp = function(configuration) {
|
|
|
1378
1419
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1379
1420
|
const localVarOperationServerBasePath = operationServerMap["AccountsApi.accountsControllerListAccountsV1"]?.[localVarOperationServerIndex]?.url;
|
|
1380
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);
|
|
1381
1435
|
}
|
|
1382
1436
|
};
|
|
1383
1437
|
};
|
|
@@ -1429,6 +1483,16 @@ var AccountsApiFactory = function(configuration, basePath, axios2) {
|
|
|
1429
1483
|
*/
|
|
1430
1484
|
accountsControllerListAccountsV1(orderBy, limit, cursor, options) {
|
|
1431
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));
|
|
1432
1496
|
}
|
|
1433
1497
|
};
|
|
1434
1498
|
};
|
|
@@ -1484,6 +1548,17 @@ var AccountsApi = class extends BaseAPI {
|
|
|
1484
1548
|
accountsControllerListAccountsV1(orderBy, limit, cursor, options) {
|
|
1485
1549
|
return AccountsApiFp(this.configuration).accountsControllerListAccountsV1(orderBy, limit, cursor, options).then((request) => request(this.axios, this.basePath));
|
|
1486
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
|
+
}
|
|
1487
1562
|
};
|
|
1488
1563
|
var AccountsControllerListAccountsV1OrderByEnum = {
|
|
1489
1564
|
Asc: "createdAt_ASC",
|
|
@@ -10830,12 +10905,13 @@ var WorkflowsApiAxiosParamCreator = function(configuration) {
|
|
|
10830
10905
|
},
|
|
10831
10906
|
/**
|
|
10832
10907
|
*
|
|
10908
|
+
* @param {WorkflowsControllerListWorkflowsV1OrderByEnum} [orderBy]
|
|
10833
10909
|
* @param {number} [limit]
|
|
10834
|
-
* @param {
|
|
10910
|
+
* @param {string} [cursor]
|
|
10835
10911
|
* @param {*} [options] Override http request option.
|
|
10836
10912
|
* @throws {RequiredError}
|
|
10837
10913
|
*/
|
|
10838
|
-
workflowsControllerListWorkflowsV1: async (limit,
|
|
10914
|
+
workflowsControllerListWorkflowsV1: async (orderBy, limit, cursor, options = {}) => {
|
|
10839
10915
|
const localVarPath = `/v1/workflows`;
|
|
10840
10916
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10841
10917
|
let baseOptions;
|
|
@@ -10846,11 +10922,14 @@ var WorkflowsApiAxiosParamCreator = function(configuration) {
|
|
|
10846
10922
|
const localVarHeaderParameter = {};
|
|
10847
10923
|
const localVarQueryParameter = {};
|
|
10848
10924
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
10925
|
+
if (orderBy !== void 0) {
|
|
10926
|
+
localVarQueryParameter["orderBy"] = orderBy;
|
|
10927
|
+
}
|
|
10849
10928
|
if (limit !== void 0) {
|
|
10850
10929
|
localVarQueryParameter["limit"] = limit;
|
|
10851
10930
|
}
|
|
10852
|
-
if (
|
|
10853
|
-
localVarQueryParameter["
|
|
10931
|
+
if (cursor !== void 0) {
|
|
10932
|
+
localVarQueryParameter["cursor"] = cursor;
|
|
10854
10933
|
}
|
|
10855
10934
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10856
10935
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -10959,13 +11038,14 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
10959
11038
|
},
|
|
10960
11039
|
/**
|
|
10961
11040
|
*
|
|
11041
|
+
* @param {WorkflowsControllerListWorkflowsV1OrderByEnum} [orderBy]
|
|
10962
11042
|
* @param {number} [limit]
|
|
10963
|
-
* @param {
|
|
11043
|
+
* @param {string} [cursor]
|
|
10964
11044
|
* @param {*} [options] Override http request option.
|
|
10965
11045
|
* @throws {RequiredError}
|
|
10966
11046
|
*/
|
|
10967
|
-
async workflowsControllerListWorkflowsV1(limit,
|
|
10968
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.workflowsControllerListWorkflowsV1(limit,
|
|
11047
|
+
async workflowsControllerListWorkflowsV1(orderBy, limit, cursor, options) {
|
|
11048
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.workflowsControllerListWorkflowsV1(orderBy, limit, cursor, options);
|
|
10969
11049
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10970
11050
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.workflowsControllerListWorkflowsV1"]?.[localVarOperationServerIndex]?.url;
|
|
10971
11051
|
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
@@ -11029,13 +11109,14 @@ var WorkflowsApiFactory = function(configuration, basePath, axios2) {
|
|
|
11029
11109
|
},
|
|
11030
11110
|
/**
|
|
11031
11111
|
*
|
|
11112
|
+
* @param {WorkflowsControllerListWorkflowsV1OrderByEnum} [orderBy]
|
|
11032
11113
|
* @param {number} [limit]
|
|
11033
|
-
* @param {
|
|
11114
|
+
* @param {string} [cursor]
|
|
11034
11115
|
* @param {*} [options] Override http request option.
|
|
11035
11116
|
* @throws {RequiredError}
|
|
11036
11117
|
*/
|
|
11037
|
-
workflowsControllerListWorkflowsV1(limit,
|
|
11038
|
-
return localVarFp.workflowsControllerListWorkflowsV1(limit,
|
|
11118
|
+
workflowsControllerListWorkflowsV1(orderBy, limit, cursor, options) {
|
|
11119
|
+
return localVarFp.workflowsControllerListWorkflowsV1(orderBy, limit, cursor, options).then((request) => request(axios2, basePath));
|
|
11039
11120
|
},
|
|
11040
11121
|
/**
|
|
11041
11122
|
*
|
|
@@ -11091,14 +11172,15 @@ var WorkflowsApi = class extends BaseAPI {
|
|
|
11091
11172
|
}
|
|
11092
11173
|
/**
|
|
11093
11174
|
*
|
|
11175
|
+
* @param {WorkflowsControllerListWorkflowsV1OrderByEnum} [orderBy]
|
|
11094
11176
|
* @param {number} [limit]
|
|
11095
|
-
* @param {
|
|
11177
|
+
* @param {string} [cursor]
|
|
11096
11178
|
* @param {*} [options] Override http request option.
|
|
11097
11179
|
* @throws {RequiredError}
|
|
11098
11180
|
* @memberof WorkflowsApi
|
|
11099
11181
|
*/
|
|
11100
|
-
workflowsControllerListWorkflowsV1(limit,
|
|
11101
|
-
return WorkflowsApiFp(this.configuration).workflowsControllerListWorkflowsV1(limit,
|
|
11182
|
+
workflowsControllerListWorkflowsV1(orderBy, limit, cursor, options) {
|
|
11183
|
+
return WorkflowsApiFp(this.configuration).workflowsControllerListWorkflowsV1(orderBy, limit, cursor, options).then((request) => request(this.axios, this.basePath));
|
|
11102
11184
|
}
|
|
11103
11185
|
/**
|
|
11104
11186
|
*
|
|
@@ -11122,6 +11204,12 @@ var WorkflowsApi = class extends BaseAPI {
|
|
|
11122
11204
|
return WorkflowsApiFp(this.configuration).workflowsControllerUpdateWorkflowV1(id, options).then((request) => request(this.axios, this.basePath));
|
|
11123
11205
|
}
|
|
11124
11206
|
};
|
|
11207
|
+
var WorkflowsControllerListWorkflowsV1OrderByEnum = {
|
|
11208
|
+
CreatedAtAsc: "createdAt_ASC",
|
|
11209
|
+
CreatedAtDesc: "createdAt_DESC",
|
|
11210
|
+
UpdatedAtAsc: "updatedAt_ASC",
|
|
11211
|
+
UpdatedAtDesc: "updatedAt_DESC"
|
|
11212
|
+
};
|
|
11125
11213
|
|
|
11126
11214
|
// src/autogenerated/configuration.ts
|
|
11127
11215
|
var Configuration = class {
|
|
@@ -11288,6 +11376,9 @@ var accounts = (options) => {
|
|
|
11288
11376
|
create: async (props = {}) => api.call({
|
|
11289
11377
|
run: (methods) => methods.accountsControllerCreateAccountV1({ alias: props.alias })
|
|
11290
11378
|
}),
|
|
11379
|
+
edit: async (props) => api.call({
|
|
11380
|
+
run: (methods) => methods.accountsControllerUpdateAccountV1(props.id, { alias: props.alias })
|
|
11381
|
+
}),
|
|
11291
11382
|
get: async (props) => api.callWithReturningUndefinedOn404({
|
|
11292
11383
|
run: (methods) => methods.accountsControllerGetAccountV1(props.id)
|
|
11293
11384
|
}),
|
|
@@ -11836,7 +11927,7 @@ var pipelines = (options) => {
|
|
|
11836
11927
|
metadata: props.metadata,
|
|
11837
11928
|
tasks: props.template?.tasks ?? props.tasks,
|
|
11838
11929
|
state: props.state,
|
|
11839
|
-
pipelineInput: props.template?.
|
|
11930
|
+
pipelineInput: props.template?.input,
|
|
11840
11931
|
outputRef: props.template?.outputRef
|
|
11841
11932
|
});
|
|
11842
11933
|
}
|
|
@@ -12086,7 +12177,8 @@ var workflows = (options) => {
|
|
|
12086
12177
|
run: (methods) => methods.workflowsControllerGetWorkflowV1(props.id)
|
|
12087
12178
|
}),
|
|
12088
12179
|
list: () => api.call({
|
|
12089
|
-
run: (methods) => methods.workflowsControllerListWorkflowsV1()
|
|
12180
|
+
run: (methods) => methods.workflowsControllerListWorkflowsV1(),
|
|
12181
|
+
transform: transformToListResponse
|
|
12090
12182
|
}),
|
|
12091
12183
|
update: async (props) => api.call({
|
|
12092
12184
|
run: (methods) => methods.workflowsControllerUpdateWorkflowV1(props.id, props)
|
|
@@ -12215,6 +12307,7 @@ var createTokenSigner = (options) => {
|
|
|
12215
12307
|
AccessApiAxiosParamCreator,
|
|
12216
12308
|
AccessApiFactory,
|
|
12217
12309
|
AccessApiFp,
|
|
12310
|
+
AccountEntityTypeEnum,
|
|
12218
12311
|
AccountsApi,
|
|
12219
12312
|
AccountsApiAxiosParamCreator,
|
|
12220
12313
|
AccountsApiFactory,
|
|
@@ -12369,6 +12462,7 @@ var createTokenSigner = (options) => {
|
|
|
12369
12462
|
SegmentAnythingEmbeddingsV1ResponseStatusEnum,
|
|
12370
12463
|
SegmentAnythingMaskV1ResponseKindEnum,
|
|
12371
12464
|
SegmentAnythingMaskV1ResponseStatusEnum,
|
|
12465
|
+
SelfAccountDtoTypeEnum,
|
|
12372
12466
|
StackEntityKindEnum,
|
|
12373
12467
|
StacksApi,
|
|
12374
12468
|
StacksApiAxiosParamCreator,
|
|
@@ -12401,6 +12495,7 @@ var createTokenSigner = (options) => {
|
|
|
12401
12495
|
WorkflowsApiAxiosParamCreator,
|
|
12402
12496
|
WorkflowsApiFactory,
|
|
12403
12497
|
WorkflowsApiFp,
|
|
12498
|
+
WorkflowsControllerListWorkflowsV1OrderByEnum,
|
|
12404
12499
|
createSDK,
|
|
12405
12500
|
createTokenSigner
|
|
12406
12501
|
});
|