@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.mjs CHANGED
@@ -76,6 +76,10 @@ var createRequestFunction = function(axiosArgs, globalAxios3, BASE_PATH2, config
76
76
  };
77
77
 
78
78
  // src/autogenerated/api.ts
79
+ var AccountEntityTypeEnum = {
80
+ Root: "root",
81
+ User: "user"
82
+ };
79
83
  var AddAccountToGroupControllerParamsDtoRoleEnum = {
80
84
  Maintainer: "maintainer",
81
85
  Member: "member",
@@ -562,6 +566,10 @@ var SegmentAnythingMaskV1ResponseStatusEnum = {
562
566
  Finished: "finished",
563
567
  Failed: "failed"
564
568
  };
569
+ var SelfAccountDtoTypeEnum = {
570
+ Root: "root",
571
+ User: "user"
572
+ };
565
573
  var StackEntityKindEnum = {
566
574
  Stack: "stack"
567
575
  };
@@ -1085,6 +1093,36 @@ var AccountsApiAxiosParamCreator = function(configuration) {
1085
1093
  url: toPathString(localVarUrlObj),
1086
1094
  options: localVarRequestOptions
1087
1095
  };
1096
+ },
1097
+ /**
1098
+ *
1099
+ * @param {string} id
1100
+ * @param {UpdateAccountParamsDto} updateAccountParamsDto
1101
+ * @param {*} [options] Override http request option.
1102
+ * @throws {RequiredError}
1103
+ */
1104
+ accountsControllerUpdateAccountV1: async (id, updateAccountParamsDto, options = {}) => {
1105
+ assertParamExists("accountsControllerUpdateAccountV1", "id", id);
1106
+ assertParamExists("accountsControllerUpdateAccountV1", "updateAccountParamsDto", updateAccountParamsDto);
1107
+ const localVarPath = `/v1/accounts/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
1108
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1109
+ let baseOptions;
1110
+ if (configuration) {
1111
+ baseOptions = configuration.baseOptions;
1112
+ }
1113
+ const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
1114
+ const localVarHeaderParameter = {};
1115
+ const localVarQueryParameter = {};
1116
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
1117
+ localVarHeaderParameter["Content-Type"] = "application/json";
1118
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1119
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1120
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1121
+ localVarRequestOptions.data = serializeDataIfNeeded(updateAccountParamsDto, localVarRequestOptions, configuration);
1122
+ return {
1123
+ url: toPathString(localVarUrlObj),
1124
+ options: localVarRequestOptions
1125
+ };
1088
1126
  }
1089
1127
  };
1090
1128
  };
@@ -1151,6 +1189,19 @@ var AccountsApiFp = function(configuration) {
1151
1189
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1152
1190
  const localVarOperationServerBasePath = operationServerMap["AccountsApi.accountsControllerListAccountsV1"]?.[localVarOperationServerIndex]?.url;
1153
1191
  return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
1192
+ },
1193
+ /**
1194
+ *
1195
+ * @param {string} id
1196
+ * @param {UpdateAccountParamsDto} updateAccountParamsDto
1197
+ * @param {*} [options] Override http request option.
1198
+ * @throws {RequiredError}
1199
+ */
1200
+ async accountsControllerUpdateAccountV1(id, updateAccountParamsDto, options) {
1201
+ const localVarAxiosArgs = await localVarAxiosParamCreator.accountsControllerUpdateAccountV1(id, updateAccountParamsDto, options);
1202
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1203
+ const localVarOperationServerBasePath = operationServerMap["AccountsApi.accountsControllerUpdateAccountV1"]?.[localVarOperationServerIndex]?.url;
1204
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
1154
1205
  }
1155
1206
  };
1156
1207
  };
@@ -1202,6 +1253,16 @@ var AccountsApiFactory = function(configuration, basePath, axios2) {
1202
1253
  */
1203
1254
  accountsControllerListAccountsV1(orderBy, limit, cursor, options) {
1204
1255
  return localVarFp.accountsControllerListAccountsV1(orderBy, limit, cursor, options).then((request) => request(axios2, basePath));
1256
+ },
1257
+ /**
1258
+ *
1259
+ * @param {string} id
1260
+ * @param {UpdateAccountParamsDto} updateAccountParamsDto
1261
+ * @param {*} [options] Override http request option.
1262
+ * @throws {RequiredError}
1263
+ */
1264
+ accountsControllerUpdateAccountV1(id, updateAccountParamsDto, options) {
1265
+ return localVarFp.accountsControllerUpdateAccountV1(id, updateAccountParamsDto, options).then((request) => request(axios2, basePath));
1205
1266
  }
1206
1267
  };
1207
1268
  };
@@ -1257,6 +1318,17 @@ var AccountsApi = class extends BaseAPI {
1257
1318
  accountsControllerListAccountsV1(orderBy, limit, cursor, options) {
1258
1319
  return AccountsApiFp(this.configuration).accountsControllerListAccountsV1(orderBy, limit, cursor, options).then((request) => request(this.axios, this.basePath));
1259
1320
  }
1321
+ /**
1322
+ *
1323
+ * @param {string} id
1324
+ * @param {UpdateAccountParamsDto} updateAccountParamsDto
1325
+ * @param {*} [options] Override http request option.
1326
+ * @throws {RequiredError}
1327
+ * @memberof AccountsApi
1328
+ */
1329
+ accountsControllerUpdateAccountV1(id, updateAccountParamsDto, options) {
1330
+ return AccountsApiFp(this.configuration).accountsControllerUpdateAccountV1(id, updateAccountParamsDto, options).then((request) => request(this.axios, this.basePath));
1331
+ }
1260
1332
  };
1261
1333
  var AccountsControllerListAccountsV1OrderByEnum = {
1262
1334
  Asc: "createdAt_ASC",
@@ -10603,12 +10675,13 @@ var WorkflowsApiAxiosParamCreator = function(configuration) {
10603
10675
  },
10604
10676
  /**
10605
10677
  *
10678
+ * @param {WorkflowsControllerListWorkflowsV1OrderByEnum} [orderBy]
10606
10679
  * @param {number} [limit]
10607
- * @param {number} [offset]
10680
+ * @param {string} [cursor]
10608
10681
  * @param {*} [options] Override http request option.
10609
10682
  * @throws {RequiredError}
10610
10683
  */
10611
- workflowsControllerListWorkflowsV1: async (limit, offset, options = {}) => {
10684
+ workflowsControllerListWorkflowsV1: async (orderBy, limit, cursor, options = {}) => {
10612
10685
  const localVarPath = `/v1/workflows`;
10613
10686
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10614
10687
  let baseOptions;
@@ -10619,11 +10692,14 @@ var WorkflowsApiAxiosParamCreator = function(configuration) {
10619
10692
  const localVarHeaderParameter = {};
10620
10693
  const localVarQueryParameter = {};
10621
10694
  await setBearerAuthToObject(localVarHeaderParameter, configuration);
10695
+ if (orderBy !== void 0) {
10696
+ localVarQueryParameter["orderBy"] = orderBy;
10697
+ }
10622
10698
  if (limit !== void 0) {
10623
10699
  localVarQueryParameter["limit"] = limit;
10624
10700
  }
10625
- if (offset !== void 0) {
10626
- localVarQueryParameter["offset"] = offset;
10701
+ if (cursor !== void 0) {
10702
+ localVarQueryParameter["cursor"] = cursor;
10627
10703
  }
10628
10704
  setSearchParams(localVarUrlObj, localVarQueryParameter);
10629
10705
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -10732,13 +10808,14 @@ var WorkflowsApiFp = function(configuration) {
10732
10808
  },
10733
10809
  /**
10734
10810
  *
10811
+ * @param {WorkflowsControllerListWorkflowsV1OrderByEnum} [orderBy]
10735
10812
  * @param {number} [limit]
10736
- * @param {number} [offset]
10813
+ * @param {string} [cursor]
10737
10814
  * @param {*} [options] Override http request option.
10738
10815
  * @throws {RequiredError}
10739
10816
  */
10740
- async workflowsControllerListWorkflowsV1(limit, offset, options) {
10741
- const localVarAxiosArgs = await localVarAxiosParamCreator.workflowsControllerListWorkflowsV1(limit, offset, options);
10817
+ async workflowsControllerListWorkflowsV1(orderBy, limit, cursor, options) {
10818
+ const localVarAxiosArgs = await localVarAxiosParamCreator.workflowsControllerListWorkflowsV1(orderBy, limit, cursor, options);
10742
10819
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10743
10820
  const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.workflowsControllerListWorkflowsV1"]?.[localVarOperationServerIndex]?.url;
10744
10821
  return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
@@ -10802,13 +10879,14 @@ var WorkflowsApiFactory = function(configuration, basePath, axios2) {
10802
10879
  },
10803
10880
  /**
10804
10881
  *
10882
+ * @param {WorkflowsControllerListWorkflowsV1OrderByEnum} [orderBy]
10805
10883
  * @param {number} [limit]
10806
- * @param {number} [offset]
10884
+ * @param {string} [cursor]
10807
10885
  * @param {*} [options] Override http request option.
10808
10886
  * @throws {RequiredError}
10809
10887
  */
10810
- workflowsControllerListWorkflowsV1(limit, offset, options) {
10811
- return localVarFp.workflowsControllerListWorkflowsV1(limit, offset, options).then((request) => request(axios2, basePath));
10888
+ workflowsControllerListWorkflowsV1(orderBy, limit, cursor, options) {
10889
+ return localVarFp.workflowsControllerListWorkflowsV1(orderBy, limit, cursor, options).then((request) => request(axios2, basePath));
10812
10890
  },
10813
10891
  /**
10814
10892
  *
@@ -10864,14 +10942,15 @@ var WorkflowsApi = class extends BaseAPI {
10864
10942
  }
10865
10943
  /**
10866
10944
  *
10945
+ * @param {WorkflowsControllerListWorkflowsV1OrderByEnum} [orderBy]
10867
10946
  * @param {number} [limit]
10868
- * @param {number} [offset]
10947
+ * @param {string} [cursor]
10869
10948
  * @param {*} [options] Override http request option.
10870
10949
  * @throws {RequiredError}
10871
10950
  * @memberof WorkflowsApi
10872
10951
  */
10873
- workflowsControllerListWorkflowsV1(limit, offset, options) {
10874
- return WorkflowsApiFp(this.configuration).workflowsControllerListWorkflowsV1(limit, offset, options).then((request) => request(this.axios, this.basePath));
10952
+ workflowsControllerListWorkflowsV1(orderBy, limit, cursor, options) {
10953
+ return WorkflowsApiFp(this.configuration).workflowsControllerListWorkflowsV1(orderBy, limit, cursor, options).then((request) => request(this.axios, this.basePath));
10875
10954
  }
10876
10955
  /**
10877
10956
  *
@@ -10895,6 +10974,12 @@ var WorkflowsApi = class extends BaseAPI {
10895
10974
  return WorkflowsApiFp(this.configuration).workflowsControllerUpdateWorkflowV1(id, options).then((request) => request(this.axios, this.basePath));
10896
10975
  }
10897
10976
  };
10977
+ var WorkflowsControllerListWorkflowsV1OrderByEnum = {
10978
+ CreatedAtAsc: "createdAt_ASC",
10979
+ CreatedAtDesc: "createdAt_DESC",
10980
+ UpdatedAtAsc: "updatedAt_ASC",
10981
+ UpdatedAtDesc: "updatedAt_DESC"
10982
+ };
10898
10983
 
10899
10984
  // src/autogenerated/configuration.ts
10900
10985
  var Configuration = class {
@@ -11061,6 +11146,9 @@ var accounts = (options) => {
11061
11146
  create: async (props = {}) => api.call({
11062
11147
  run: (methods) => methods.accountsControllerCreateAccountV1({ alias: props.alias })
11063
11148
  }),
11149
+ edit: async (props) => api.call({
11150
+ run: (methods) => methods.accountsControllerUpdateAccountV1(props.id, { alias: props.alias })
11151
+ }),
11064
11152
  get: async (props) => api.callWithReturningUndefinedOn404({
11065
11153
  run: (methods) => methods.accountsControllerGetAccountV1(props.id)
11066
11154
  }),
@@ -11609,7 +11697,7 @@ var pipelines = (options) => {
11609
11697
  metadata: props.metadata,
11610
11698
  tasks: props.template?.tasks ?? props.tasks,
11611
11699
  state: props.state,
11612
- pipelineInput: props.template?.inputRef,
11700
+ pipelineInput: props.template?.input,
11613
11701
  outputRef: props.template?.outputRef
11614
11702
  });
11615
11703
  }
@@ -11859,7 +11947,8 @@ var workflows = (options) => {
11859
11947
  run: (methods) => methods.workflowsControllerGetWorkflowV1(props.id)
11860
11948
  }),
11861
11949
  list: () => api.call({
11862
- run: (methods) => methods.workflowsControllerListWorkflowsV1()
11950
+ run: (methods) => methods.workflowsControllerListWorkflowsV1(),
11951
+ transform: transformToListResponse
11863
11952
  }),
11864
11953
  update: async (props) => api.call({
11865
11954
  run: (methods) => methods.workflowsControllerUpdateWorkflowV1(props.id, props)
@@ -11987,6 +12076,7 @@ export {
11987
12076
  AccessApiAxiosParamCreator,
11988
12077
  AccessApiFactory,
11989
12078
  AccessApiFp,
12079
+ AccountEntityTypeEnum,
11990
12080
  AccountsApi,
11991
12081
  AccountsApiAxiosParamCreator,
11992
12082
  AccountsApiFactory,
@@ -12141,6 +12231,7 @@ export {
12141
12231
  SegmentAnythingEmbeddingsV1ResponseStatusEnum,
12142
12232
  SegmentAnythingMaskV1ResponseKindEnum,
12143
12233
  SegmentAnythingMaskV1ResponseStatusEnum,
12234
+ SelfAccountDtoTypeEnum,
12144
12235
  StackEntityKindEnum,
12145
12236
  StacksApi,
12146
12237
  StacksApiAxiosParamCreator,
@@ -12173,6 +12264,7 @@ export {
12173
12264
  WorkflowsApiAxiosParamCreator,
12174
12265
  WorkflowsApiFactory,
12175
12266
  WorkflowsApiFp,
12267
+ WorkflowsControllerListWorkflowsV1OrderByEnum,
12176
12268
  createSDK,
12177
12269
  createTokenSigner
12178
12270
  };