@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.mjs CHANGED
@@ -12055,6 +12055,14 @@ var AnimateKling21V1ResponseStatus = {
12055
12055
  failed: "failed"
12056
12056
  };
12057
12057
 
12058
+ // src/autogenerated/schemas/chatControllerListChatsV1OrderBy.ts
12059
+ var ChatControllerListChatsV1OrderBy = {
12060
+ createdAt_ASC: "createdAt_ASC",
12061
+ createdAt_DESC: "createdAt_DESC",
12062
+ updatedAt_ASC: "updatedAt_ASC",
12063
+ updatedAt_DESC: "updatedAt_DESC"
12064
+ };
12065
+
12058
12066
  // src/autogenerated/schemas/collectionEntityKind.ts
12059
12067
  var CollectionEntityKind = {
12060
12068
  collection: "collection",
@@ -15065,6 +15073,73 @@ var useUploadApi = () => {
15065
15073
  });
15066
15074
  };
15067
15075
 
15076
+ // src/autogenerated/chat/chat.ts
15077
+ var getChat = () => {
15078
+ const chatControllerCreateChatV1 = (createChatParamsDto, options) => {
15079
+ return axiosMutator(
15080
+ {
15081
+ url: `/v1/chat`,
15082
+ method: "POST",
15083
+ headers: { "Content-Type": "application/json" },
15084
+ data: createChatParamsDto
15085
+ },
15086
+ options
15087
+ );
15088
+ };
15089
+ const chatControllerListChatsV1 = (params, options) => {
15090
+ return axiosMutator(
15091
+ {
15092
+ url: `/v1/chat`,
15093
+ method: "GET",
15094
+ params
15095
+ },
15096
+ options
15097
+ );
15098
+ };
15099
+ const chatControllerGetChatV1 = (id, options) => {
15100
+ return axiosMutator(
15101
+ {
15102
+ url: `/v1/chat/${id}`,
15103
+ method: "GET"
15104
+ },
15105
+ options
15106
+ );
15107
+ };
15108
+ const chatControllerDeleteChatV1 = (id, options) => {
15109
+ return axiosMutator(
15110
+ {
15111
+ url: `/v1/chat/${id}`,
15112
+ method: "DELETE"
15113
+ },
15114
+ options
15115
+ );
15116
+ };
15117
+ const chatControllerAddItemsToChatV1 = (chatId, addChatItemsDto, options) => {
15118
+ return axiosMutator(
15119
+ {
15120
+ url: `/v1/chat/${chatId}/items`,
15121
+ method: "POST",
15122
+ headers: { "Content-Type": "application/json" },
15123
+ data: addChatItemsDto
15124
+ },
15125
+ options
15126
+ );
15127
+ };
15128
+ return { chatControllerCreateChatV1, chatControllerListChatsV1, chatControllerGetChatV1, chatControllerDeleteChatV1, chatControllerAddItemsToChatV1 };
15129
+ };
15130
+
15131
+ // src/sdk/api-definitions/chats.ts
15132
+ var useChatsApi = () => {
15133
+ const api = getChat();
15134
+ return useApi({
15135
+ create: api.chatControllerCreateChatV1,
15136
+ list: api.chatControllerListChatsV1,
15137
+ get: wrapApiCallNullable(api.chatControllerGetChatV1),
15138
+ delete: api.chatControllerDeleteChatV1,
15139
+ addItems: api.chatControllerAddItemsToChatV1
15140
+ });
15141
+ };
15142
+
15068
15143
  // src/sdk/ws-client.ts
15069
15144
  import { io } from "socket.io-client";
15070
15145
  var useWsClient = (config) => new WsClient(config);
@@ -15153,6 +15228,7 @@ var apiDefinitions = {
15153
15228
  groups: useGroupsApi(),
15154
15229
  accounts: useAccountsApi(),
15155
15230
  collections: useCollectionsApi(),
15231
+ chats: useChatsApi(),
15156
15232
  balances: useBalancesApi(),
15157
15233
  access: useAccessApi(),
15158
15234
  pipelines: usePipelinesApi(),
@@ -15263,6 +15339,7 @@ export {
15263
15339
  AnimateKling21V1InputDuration,
15264
15340
  AnimateKling21V1ResponseKind,
15265
15341
  AnimateKling21V1ResponseStatus,
15342
+ ChatControllerListChatsV1OrderBy,
15266
15343
  CollectionEntityKind,
15267
15344
  CollectionsControllerListCollectionsV1OrderBy,
15268
15345
  CollectionsControllerListItemsV1Kind,