@hautechai/sdk 2.6.0 → 2.7.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.js CHANGED
@@ -10328,6 +10328,7 @@ __export(index_exports, {
10328
10328
  AnimateKling21V1InputDuration: () => AnimateKling21V1InputDuration,
10329
10329
  AnimateKling21V1ResponseKind: () => AnimateKling21V1ResponseKind,
10330
10330
  AnimateKling21V1ResponseStatus: () => AnimateKling21V1ResponseStatus,
10331
+ ChatControllerListChatsV1OrderBy: () => ChatControllerListChatsV1OrderBy,
10331
10332
  CollectionEntityKind: () => CollectionEntityKind,
10332
10333
  CollectionsControllerListCollectionsV1OrderBy: () => CollectionsControllerListCollectionsV1OrderBy,
10333
10334
  CollectionsControllerListItemsV1Kind: () => CollectionsControllerListItemsV1Kind,
@@ -12357,6 +12358,14 @@ var AnimateKling21V1ResponseStatus = {
12357
12358
  failed: "failed"
12358
12359
  };
12359
12360
 
12361
+ // src/autogenerated/schemas/chatControllerListChatsV1OrderBy.ts
12362
+ var ChatControllerListChatsV1OrderBy = {
12363
+ createdAt_ASC: "createdAt_ASC",
12364
+ createdAt_DESC: "createdAt_DESC",
12365
+ updatedAt_ASC: "updatedAt_ASC",
12366
+ updatedAt_DESC: "updatedAt_DESC"
12367
+ };
12368
+
12360
12369
  // src/autogenerated/schemas/collectionEntityKind.ts
12361
12370
  var CollectionEntityKind = {
12362
12371
  collection: "collection",
@@ -15367,6 +15376,73 @@ var useUploadApi = () => {
15367
15376
  });
15368
15377
  };
15369
15378
 
15379
+ // src/autogenerated/chat/chat.ts
15380
+ var getChat = () => {
15381
+ const chatControllerCreateChatV1 = (createChatParamsDto, options) => {
15382
+ return axiosMutator(
15383
+ {
15384
+ url: `/v1/chat`,
15385
+ method: "POST",
15386
+ headers: { "Content-Type": "application/json" },
15387
+ data: createChatParamsDto
15388
+ },
15389
+ options
15390
+ );
15391
+ };
15392
+ const chatControllerListChatsV1 = (params, options) => {
15393
+ return axiosMutator(
15394
+ {
15395
+ url: `/v1/chat`,
15396
+ method: "GET",
15397
+ params
15398
+ },
15399
+ options
15400
+ );
15401
+ };
15402
+ const chatControllerGetChatV1 = (id, options) => {
15403
+ return axiosMutator(
15404
+ {
15405
+ url: `/v1/chat/${id}`,
15406
+ method: "GET"
15407
+ },
15408
+ options
15409
+ );
15410
+ };
15411
+ const chatControllerDeleteChatV1 = (id, options) => {
15412
+ return axiosMutator(
15413
+ {
15414
+ url: `/v1/chat/${id}`,
15415
+ method: "DELETE"
15416
+ },
15417
+ options
15418
+ );
15419
+ };
15420
+ const chatControllerAddItemsToChatV1 = (chatId, addChatItemsDto, options) => {
15421
+ return axiosMutator(
15422
+ {
15423
+ url: `/v1/chat/${chatId}/items`,
15424
+ method: "POST",
15425
+ headers: { "Content-Type": "application/json" },
15426
+ data: addChatItemsDto
15427
+ },
15428
+ options
15429
+ );
15430
+ };
15431
+ return { chatControllerCreateChatV1, chatControllerListChatsV1, chatControllerGetChatV1, chatControllerDeleteChatV1, chatControllerAddItemsToChatV1 };
15432
+ };
15433
+
15434
+ // src/sdk/api-definitions/chats.ts
15435
+ var useChatsApi = () => {
15436
+ const api = getChat();
15437
+ return useApi({
15438
+ create: api.chatControllerCreateChatV1,
15439
+ list: api.chatControllerListChatsV1,
15440
+ get: wrapApiCallNullable(api.chatControllerGetChatV1),
15441
+ delete: api.chatControllerDeleteChatV1,
15442
+ addItems: api.chatControllerAddItemsToChatV1
15443
+ });
15444
+ };
15445
+
15370
15446
  // src/sdk/ws-client.ts
15371
15447
  var import_socket = require("socket.io-client");
15372
15448
  var useWsClient = (config) => new WsClient(config);
@@ -15455,6 +15531,7 @@ var apiDefinitions = {
15455
15531
  groups: useGroupsApi(),
15456
15532
  accounts: useAccountsApi(),
15457
15533
  collections: useCollectionsApi(),
15534
+ chats: useChatsApi(),
15458
15535
  balances: useBalancesApi(),
15459
15536
  access: useAccessApi(),
15460
15537
  pipelines: usePipelinesApi(),
@@ -15566,6 +15643,7 @@ var createTokenSigner = (options) => {
15566
15643
  AnimateKling21V1InputDuration,
15567
15644
  AnimateKling21V1ResponseKind,
15568
15645
  AnimateKling21V1ResponseStatus,
15646
+ ChatControllerListChatsV1OrderBy,
15569
15647
  CollectionEntityKind,
15570
15648
  CollectionsControllerListCollectionsV1OrderBy,
15571
15649
  CollectionsControllerListItemsV1Kind,