@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.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",
@@ -11074,6 +11146,9 @@ var accounts = (options) => {
11074
11146
  create: async (props = {}) => api.call({
11075
11147
  run: (methods) => methods.accountsControllerCreateAccountV1({ alias: props.alias })
11076
11148
  }),
11149
+ edit: async (props) => api.call({
11150
+ run: (methods) => methods.accountsControllerUpdateAccountV1(props.id, { alias: props.alias })
11151
+ }),
11077
11152
  get: async (props) => api.callWithReturningUndefinedOn404({
11078
11153
  run: (methods) => methods.accountsControllerGetAccountV1(props.id)
11079
11154
  }),
@@ -12001,6 +12076,7 @@ export {
12001
12076
  AccessApiAxiosParamCreator,
12002
12077
  AccessApiFactory,
12003
12078
  AccessApiFp,
12079
+ AccountEntityTypeEnum,
12004
12080
  AccountsApi,
12005
12081
  AccountsApiAxiosParamCreator,
12006
12082
  AccountsApiFactory,
@@ -12155,6 +12231,7 @@ export {
12155
12231
  SegmentAnythingEmbeddingsV1ResponseStatusEnum,
12156
12232
  SegmentAnythingMaskV1ResponseKindEnum,
12157
12233
  SegmentAnythingMaskV1ResponseStatusEnum,
12234
+ SelfAccountDtoTypeEnum,
12158
12235
  StackEntityKindEnum,
12159
12236
  StacksApi,
12160
12237
  StacksApiAxiosParamCreator,