hume 0.6.0 → 0.6.2

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.
Files changed (164) hide show
  1. package/.mock/definition/api.yml +12 -0
  2. package/.mock/definition/custom-models/__package__.yml +1392 -0
  3. package/.mock/definition/custom-models/datasets.yml +406 -0
  4. package/.mock/definition/custom-models/files.yml +263 -0
  5. package/.mock/definition/custom-models/jobs.yml +44 -0
  6. package/.mock/definition/custom-models/models.yml +303 -0
  7. package/.mock/definition/empathic-voice/__package__.yml +896 -0
  8. package/.mock/definition/empathic-voice/chat.yml +59 -0
  9. package/.mock/definition/empathic-voice/chatGroups.yml +80 -0
  10. package/.mock/definition/empathic-voice/chats.yml +86 -0
  11. package/.mock/definition/empathic-voice/configs.yml +413 -0
  12. package/.mock/definition/empathic-voice/prompts.yml +265 -0
  13. package/.mock/definition/empathic-voice/tools.yml +398 -0
  14. package/.mock/definition/expression-measurement/__package__.yml +1122 -0
  15. package/.mock/definition/expression-measurement/batch.yml +352 -0
  16. package/.mock/definition/expression-measurement/stream.yml +362 -0
  17. package/.mock/fern.config.json +4 -0
  18. package/Client.d.ts +3 -3
  19. package/Client.js +6 -6
  20. package/api/resources/customModels/resources/datasets/client/Client.js +9 -9
  21. package/api/resources/customModels/resources/files/client/Client.js +7 -7
  22. package/api/resources/customModels/resources/jobs/client/Client.js +2 -2
  23. package/api/resources/customModels/resources/models/client/Client.js +6 -6
  24. package/api/resources/empathicVoice/client/Client.d.ts +3 -0
  25. package/api/resources/empathicVoice/client/Client.js +5 -0
  26. package/api/resources/empathicVoice/client/StreamSocket.d.ts +9 -1
  27. package/api/resources/empathicVoice/client/StreamSocket.js +17 -1
  28. package/api/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +1 -1
  29. package/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +42 -0
  30. package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +178 -0
  31. package/api/resources/empathicVoice/resources/chatGroups/client/index.d.ts +1 -0
  32. package/api/resources/empathicVoice/resources/chatGroups/client/index.js +17 -0
  33. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.ts +21 -0
  34. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.js +5 -0
  35. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +17 -0
  36. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.js +5 -0
  37. package/api/resources/empathicVoice/resources/chatGroups/client/requests/index.d.ts +2 -0
  38. package/api/resources/empathicVoice/resources/chatGroups/client/requests/index.js +2 -0
  39. package/api/resources/empathicVoice/resources/chatGroups/index.d.ts +1 -0
  40. package/api/resources/empathicVoice/resources/chatGroups/index.js +17 -0
  41. package/api/resources/empathicVoice/resources/chats/client/Client.js +2 -2
  42. package/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
  43. package/api/resources/empathicVoice/resources/index.d.ts +2 -0
  44. package/api/resources/empathicVoice/resources/index.js +3 -1
  45. package/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
  46. package/api/resources/empathicVoice/resources/tools/client/Client.js +9 -9
  47. package/api/resources/empathicVoice/types/AssistantMessage.d.ts +1 -1
  48. package/api/resources/empathicVoice/types/ChatMetadata.d.ts +15 -0
  49. package/api/resources/empathicVoice/types/ChatMetadata.js +5 -0
  50. package/api/resources/empathicVoice/types/ReturnChat.d.ts +2 -0
  51. package/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +2 -0
  52. package/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +19 -0
  53. package/api/resources/empathicVoice/types/ReturnChatGroup.js +5 -0
  54. package/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +24 -0
  55. package/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +5 -0
  56. package/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +19 -0
  57. package/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +5 -0
  58. package/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +2 -0
  59. package/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +15 -0
  60. package/api/resources/empathicVoice/types/ReturnPagedChatGroups.js +5 -0
  61. package/api/resources/empathicVoice/types/index.d.ts +5 -0
  62. package/api/resources/empathicVoice/types/index.js +5 -0
  63. package/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  64. package/api/resources/index.d.ts +1 -1
  65. package/api/resources/index.js +2 -2
  66. package/core/form-data-utils/FormDataWrapper.js +2 -1
  67. package/dist/Client.d.ts +3 -3
  68. package/dist/Client.js +6 -6
  69. package/dist/api/resources/customModels/resources/datasets/client/Client.js +9 -9
  70. package/dist/api/resources/customModels/resources/files/client/Client.js +7 -7
  71. package/dist/api/resources/customModels/resources/jobs/client/Client.js +2 -2
  72. package/dist/api/resources/customModels/resources/models/client/Client.js +6 -6
  73. package/dist/api/resources/empathicVoice/client/Client.d.ts +3 -0
  74. package/dist/api/resources/empathicVoice/client/Client.js +5 -0
  75. package/dist/api/resources/empathicVoice/client/StreamSocket.d.ts +9 -1
  76. package/dist/api/resources/empathicVoice/client/StreamSocket.js +17 -1
  77. package/dist/api/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +1 -1
  78. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +42 -0
  79. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +178 -0
  80. package/dist/api/resources/empathicVoice/resources/chatGroups/client/index.d.ts +1 -0
  81. package/dist/api/resources/empathicVoice/resources/chatGroups/client/index.js +17 -0
  82. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.ts +21 -0
  83. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.js +5 -0
  84. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +17 -0
  85. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.js +5 -0
  86. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/index.d.ts +2 -0
  87. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/index.js +2 -0
  88. package/dist/api/resources/empathicVoice/resources/chatGroups/index.d.ts +1 -0
  89. package/dist/api/resources/empathicVoice/resources/chatGroups/index.js +17 -0
  90. package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +2 -2
  91. package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
  92. package/dist/api/resources/empathicVoice/resources/index.d.ts +2 -0
  93. package/dist/api/resources/empathicVoice/resources/index.js +3 -1
  94. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
  95. package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +9 -9
  96. package/dist/api/resources/empathicVoice/types/AssistantMessage.d.ts +1 -1
  97. package/dist/api/resources/empathicVoice/types/ChatMetadata.d.ts +15 -0
  98. package/dist/api/resources/empathicVoice/types/ChatMetadata.js +5 -0
  99. package/dist/api/resources/empathicVoice/types/ReturnChat.d.ts +2 -0
  100. package/dist/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +2 -0
  101. package/dist/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +19 -0
  102. package/dist/api/resources/empathicVoice/types/ReturnChatGroup.js +5 -0
  103. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +24 -0
  104. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +5 -0
  105. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +19 -0
  106. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +5 -0
  107. package/dist/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +2 -0
  108. package/dist/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +15 -0
  109. package/dist/api/resources/empathicVoice/types/ReturnPagedChatGroups.js +5 -0
  110. package/dist/api/resources/empathicVoice/types/index.d.ts +5 -0
  111. package/dist/api/resources/empathicVoice/types/index.js +5 -0
  112. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  113. package/dist/api/resources/index.d.ts +1 -1
  114. package/dist/api/resources/index.js +2 -2
  115. package/dist/core/form-data-utils/FormDataWrapper.js +2 -1
  116. package/dist/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +2 -1
  117. package/dist/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.js +2 -0
  118. package/dist/serialization/resources/empathicVoice/types/ChatMetadata.d.ts +15 -0
  119. package/dist/serialization/resources/empathicVoice/types/ChatMetadata.js +36 -0
  120. package/dist/serialization/resources/empathicVoice/types/ReturnChat.d.ts +1 -0
  121. package/dist/serialization/resources/empathicVoice/types/ReturnChat.js +1 -0
  122. package/dist/serialization/resources/empathicVoice/types/ReturnChatEvent.d.ts +1 -0
  123. package/dist/serialization/resources/empathicVoice/types/ReturnChatEvent.js +1 -0
  124. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroup.d.ts +17 -0
  125. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroup.js +38 -0
  126. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +20 -0
  127. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +41 -0
  128. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +17 -0
  129. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +38 -0
  130. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +1 -0
  131. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +1 -0
  132. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +15 -0
  133. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +36 -0
  134. package/dist/serialization/resources/empathicVoice/types/index.d.ts +5 -0
  135. package/dist/serialization/resources/empathicVoice/types/index.js +5 -0
  136. package/dist/serialization/resources/index.d.ts +1 -1
  137. package/dist/serialization/resources/index.js +2 -2
  138. package/dist/wrapper/empathicVoice/chat/ChatClient.d.ts +2 -0
  139. package/dist/wrapper/empathicVoice/chat/ChatClient.js +3 -0
  140. package/package.json +1 -1
  141. package/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +2 -1
  142. package/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.js +2 -0
  143. package/serialization/resources/empathicVoice/types/ChatMetadata.d.ts +15 -0
  144. package/serialization/resources/empathicVoice/types/ChatMetadata.js +36 -0
  145. package/serialization/resources/empathicVoice/types/ReturnChat.d.ts +1 -0
  146. package/serialization/resources/empathicVoice/types/ReturnChat.js +1 -0
  147. package/serialization/resources/empathicVoice/types/ReturnChatEvent.d.ts +1 -0
  148. package/serialization/resources/empathicVoice/types/ReturnChatEvent.js +1 -0
  149. package/serialization/resources/empathicVoice/types/ReturnChatGroup.d.ts +17 -0
  150. package/serialization/resources/empathicVoice/types/ReturnChatGroup.js +38 -0
  151. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +20 -0
  152. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +41 -0
  153. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +17 -0
  154. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +38 -0
  155. package/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +1 -0
  156. package/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +1 -0
  157. package/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +15 -0
  158. package/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +36 -0
  159. package/serialization/resources/empathicVoice/types/index.d.ts +5 -0
  160. package/serialization/resources/empathicVoice/types/index.js +5 -0
  161. package/serialization/resources/index.d.ts +1 -1
  162. package/serialization/resources/index.js +2 -2
  163. package/wrapper/empathicVoice/chat/ChatClient.d.ts +2 -0
  164. package/wrapper/empathicVoice/chat/ChatClient.js +3 -0
@@ -77,7 +77,7 @@ class Models {
77
77
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
78
78
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/registry/models"),
79
79
  method: "GET",
80
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
80
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
81
81
  contentType: "application/json",
82
82
  queryParameters: _queryParams,
83
83
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -129,7 +129,7 @@ class Models {
129
129
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
130
130
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/registry/models/${encodeURIComponent(id)}`),
131
131
  method: "GET",
132
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
132
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
133
133
  contentType: "application/json",
134
134
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
135
135
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -186,7 +186,7 @@ class Models {
186
186
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
187
187
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/registry/models/${encodeURIComponent(id)}`),
188
188
  method: "PATCH",
189
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
189
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
190
190
  contentType: "application/json",
191
191
  queryParameters: _queryParams,
192
192
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -257,7 +257,7 @@ class Models {
257
257
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
258
258
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/registry/models/version"),
259
259
  method: "GET",
260
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
260
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
261
261
  contentType: "application/json",
262
262
  queryParameters: _queryParams,
263
263
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -315,7 +315,7 @@ class Models {
315
315
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
316
316
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/registry/models/version/${encodeURIComponent(id)}`),
317
317
  method: "GET",
318
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
318
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
319
319
  contentType: "application/json",
320
320
  queryParameters: _queryParams,
321
321
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -368,7 +368,7 @@ class Models {
368
368
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
369
369
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/registry/models/version/${encodeURIComponent(id)}`),
370
370
  method: "PATCH",
371
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
371
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
372
372
  contentType: "application/json",
373
373
  body: yield serializers.customModels.models.updateModelDescription.Request.jsonOrThrow(request, {
374
374
  unrecognizedObjectKeys: "strip",
@@ -7,6 +7,7 @@ import { Tools } from "../resources/tools/client/Client";
7
7
  import { Prompts } from "../resources/prompts/client/Client";
8
8
  import { Configs } from "../resources/configs/client/Client";
9
9
  import { Chats } from "../resources/chats/client/Client";
10
+ import { ChatGroups } from "../resources/chatGroups/client/Client";
10
11
  export declare namespace EmpathicVoice {
11
12
  interface Options {
12
13
  environment?: core.Supplier<environments.HumeEnvironment | string>;
@@ -30,4 +31,6 @@ export declare class EmpathicVoice {
30
31
  get configs(): Configs;
31
32
  protected _chats: Chats | undefined;
32
33
  get chats(): Chats;
34
+ protected _chatGroups: ChatGroups | undefined;
35
+ get chatGroups(): ChatGroups;
33
36
  }
@@ -8,6 +8,7 @@ const Client_1 = require("../resources/tools/client/Client");
8
8
  const Client_2 = require("../resources/prompts/client/Client");
9
9
  const Client_3 = require("../resources/configs/client/Client");
10
10
  const Client_4 = require("../resources/chats/client/Client");
11
+ const Client_5 = require("../resources/chatGroups/client/Client");
11
12
  class EmpathicVoice {
12
13
  constructor(_options = {}) {
13
14
  this._options = _options;
@@ -28,5 +29,9 @@ class EmpathicVoice {
28
29
  var _a;
29
30
  return ((_a = this._chats) !== null && _a !== void 0 ? _a : (this._chats = new Client_4.Chats(this._options)));
30
31
  }
32
+ get chatGroups() {
33
+ var _a;
34
+ return ((_a = this._chatGroups) !== null && _a !== void 0 ? _a : (this._chatGroups = new Client_5.ChatGroups(this._options)));
35
+ }
31
36
  }
32
37
  exports.EmpathicVoice = EmpathicVoice;
@@ -16,9 +16,17 @@ export declare class StreamSocket {
16
16
  */
17
17
  sendSessionSettings(message: Omit<Hume.empathicVoice.SessionSettings, "type">): Promise<void>;
18
18
  /**
19
- * Send session settings
19
+ * Send assistant input
20
20
  */
21
21
  sendAssistantInput(message: Omit<Hume.empathicVoice.AssistantInput, "type">): Promise<void>;
22
+ /**
23
+ * Send pause assistant message
24
+ */
25
+ pauseAssistant(message: Omit<Hume.empathicVoice.PauseAssistantMessage, "type">): Promise<void>;
26
+ /**
27
+ * Send resume assistant message
28
+ */
29
+ resumeAssistant(message: Omit<Hume.empathicVoice.ResumeAssistantMessage, "type">): Promise<void>;
22
30
  /**
23
31
  * Send text input
24
32
  */
@@ -55,13 +55,29 @@ class StreamSocket {
55
55
  });
56
56
  }
57
57
  /**
58
- * Send session settings
58
+ * Send assistant input
59
59
  */
60
60
  sendAssistantInput(message) {
61
61
  return __awaiter(this, void 0, void 0, function* () {
62
62
  yield this.sendJson(Object.assign({ type: "assistant_input" }, message));
63
63
  });
64
64
  }
65
+ /**
66
+ * Send pause assistant message
67
+ */
68
+ pauseAssistant(message) {
69
+ return __awaiter(this, void 0, void 0, function* () {
70
+ yield this.sendJson(Object.assign({ type: "pause_assistant_message" }, message));
71
+ });
72
+ }
73
+ /**
74
+ * Send resume assistant message
75
+ */
76
+ resumeAssistant(message) {
77
+ return __awaiter(this, void 0, void 0, function* () {
78
+ yield this.sendJson(Object.assign({ type: "resume_assistant_message" }, message));
79
+ });
80
+ }
65
81
  /**
66
82
  * Send text input
67
83
  */
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Hume from "../../../../../index";
5
- export declare type SubscribeEvent = Hume.empathicVoice.AssistantEnd | Hume.empathicVoice.AssistantMessage | Hume.empathicVoice.AudioOutput | Hume.empathicVoice.WebSocketError | Hume.empathicVoice.UserInterruption | Hume.empathicVoice.UserMessage | Hume.empathicVoice.ToolCallMessage | Hume.empathicVoice.ToolResponseMessage | Hume.empathicVoice.ToolErrorMessage;
5
+ export declare type SubscribeEvent = Hume.empathicVoice.AssistantEnd | Hume.empathicVoice.AssistantMessage | Hume.empathicVoice.AudioOutput | Hume.empathicVoice.ChatMetadata | Hume.empathicVoice.WebSocketError | Hume.empathicVoice.UserInterruption | Hume.empathicVoice.UserMessage | Hume.empathicVoice.ToolCallMessage | Hume.empathicVoice.ToolResponseMessage | Hume.empathicVoice.ToolErrorMessage;
@@ -0,0 +1,42 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../environments";
5
+ import * as core from "../../../../../../core";
6
+ import * as Hume from "../../../../../index";
7
+ export declare namespace ChatGroups {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.HumeEnvironment | string>;
10
+ apiKey?: core.Supplier<string | undefined>;
11
+ fetcher?: core.FetchFunction;
12
+ }
13
+ interface RequestOptions {
14
+ timeoutInSeconds?: number;
15
+ maxRetries?: number;
16
+ abortSignal?: AbortSignal;
17
+ }
18
+ }
19
+ export declare class ChatGroups {
20
+ protected readonly _options: ChatGroups.Options;
21
+ constructor(_options?: ChatGroups.Options);
22
+ /**
23
+ * @param {Hume.empathicVoice.ChatGroupsListChatGroupsRequest} request
24
+ * @param {ChatGroups.RequestOptions} requestOptions - Request-specific configuration.
25
+ *
26
+ * @example
27
+ * await hume.empathicVoice.chatGroups.listChatGroups()
28
+ */
29
+ listChatGroups(request?: Hume.empathicVoice.ChatGroupsListChatGroupsRequest, requestOptions?: ChatGroups.RequestOptions): Promise<Hume.empathicVoice.ReturnPagedChatGroups>;
30
+ /**
31
+ * @param {string} id - Identifier for a chat. Formatted as a UUID.
32
+ * @param {Hume.empathicVoice.ChatGroupsListChatGroupEventsRequest} request
33
+ * @param {ChatGroups.RequestOptions} requestOptions - Request-specific configuration.
34
+ *
35
+ * @example
36
+ * await hume.empathicVoice.chatGroups.listChatGroupEvents("id")
37
+ */
38
+ listChatGroupEvents(id: string, request?: Hume.empathicVoice.ChatGroupsListChatGroupEventsRequest, requestOptions?: ChatGroups.RequestOptions): Promise<Hume.empathicVoice.ReturnChatGroupPagedEvents>;
39
+ protected _getCustomAuthorizationHeaders(): Promise<{
40
+ "X-Hume-Api-Key": string | undefined;
41
+ }>;
42
+ }
@@ -0,0 +1,178 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
37
+ var __importDefault = (this && this.__importDefault) || function (mod) {
38
+ return (mod && mod.__esModule) ? mod : { "default": mod };
39
+ };
40
+ Object.defineProperty(exports, "__esModule", { value: true });
41
+ exports.ChatGroups = void 0;
42
+ const environments = __importStar(require("../../../../../../environments"));
43
+ const core = __importStar(require("../../../../../../core"));
44
+ const url_join_1 = __importDefault(require("url-join"));
45
+ const serializers = __importStar(require("../../../../../../serialization/index"));
46
+ const errors = __importStar(require("../../../../../../errors/index"));
47
+ class ChatGroups {
48
+ constructor(_options = {}) {
49
+ this._options = _options;
50
+ }
51
+ /**
52
+ * @param {Hume.empathicVoice.ChatGroupsListChatGroupsRequest} request
53
+ * @param {ChatGroups.RequestOptions} requestOptions - Request-specific configuration.
54
+ *
55
+ * @example
56
+ * await hume.empathicVoice.chatGroups.listChatGroups()
57
+ */
58
+ listChatGroups(request = {}, requestOptions) {
59
+ var _a, _b;
60
+ return __awaiter(this, void 0, void 0, function* () {
61
+ const { pageNumber, pageSize } = request;
62
+ const _queryParams = {};
63
+ if (pageNumber != null) {
64
+ _queryParams["page_number"] = pageNumber.toString();
65
+ }
66
+ if (pageSize != null) {
67
+ _queryParams["page_size"] = pageSize.toString();
68
+ }
69
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
70
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/chat_groups"),
71
+ method: "GET",
72
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
73
+ contentType: "application/json",
74
+ queryParameters: _queryParams,
75
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
76
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
77
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
78
+ });
79
+ if (_response.ok) {
80
+ return yield serializers.empathicVoice.ReturnPagedChatGroups.parseOrThrow(_response.body, {
81
+ unrecognizedObjectKeys: "passthrough",
82
+ allowUnrecognizedUnionMembers: true,
83
+ allowUnrecognizedEnumValues: true,
84
+ skipValidation: true,
85
+ breadcrumbsPrefix: ["response"],
86
+ });
87
+ }
88
+ if (_response.error.reason === "status-code") {
89
+ throw new errors.HumeError({
90
+ statusCode: _response.error.statusCode,
91
+ body: _response.error.body,
92
+ });
93
+ }
94
+ switch (_response.error.reason) {
95
+ case "non-json":
96
+ throw new errors.HumeError({
97
+ statusCode: _response.error.statusCode,
98
+ body: _response.error.rawBody,
99
+ });
100
+ case "timeout":
101
+ throw new errors.HumeTimeoutError();
102
+ case "unknown":
103
+ throw new errors.HumeError({
104
+ message: _response.error.errorMessage,
105
+ });
106
+ }
107
+ });
108
+ }
109
+ /**
110
+ * @param {string} id - Identifier for a chat. Formatted as a UUID.
111
+ * @param {Hume.empathicVoice.ChatGroupsListChatGroupEventsRequest} request
112
+ * @param {ChatGroups.RequestOptions} requestOptions - Request-specific configuration.
113
+ *
114
+ * @example
115
+ * await hume.empathicVoice.chatGroups.listChatGroupEvents("id")
116
+ */
117
+ listChatGroupEvents(id, request = {}, requestOptions) {
118
+ var _a, _b;
119
+ return __awaiter(this, void 0, void 0, function* () {
120
+ const { pageSize, pageNumber, ascendingOrder } = request;
121
+ const _queryParams = {};
122
+ if (pageSize != null) {
123
+ _queryParams["page_size"] = pageSize.toString();
124
+ }
125
+ if (pageNumber != null) {
126
+ _queryParams["page_number"] = pageNumber.toString();
127
+ }
128
+ if (ascendingOrder != null) {
129
+ _queryParams["ascending_order"] = ascendingOrder.toString();
130
+ }
131
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
132
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/chat_groups/${encodeURIComponent(id)}/events`),
133
+ method: "GET",
134
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
135
+ contentType: "application/json",
136
+ queryParameters: _queryParams,
137
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
138
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
139
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
140
+ });
141
+ if (_response.ok) {
142
+ return yield serializers.empathicVoice.ReturnChatGroupPagedEvents.parseOrThrow(_response.body, {
143
+ unrecognizedObjectKeys: "passthrough",
144
+ allowUnrecognizedUnionMembers: true,
145
+ allowUnrecognizedEnumValues: true,
146
+ skipValidation: true,
147
+ breadcrumbsPrefix: ["response"],
148
+ });
149
+ }
150
+ if (_response.error.reason === "status-code") {
151
+ throw new errors.HumeError({
152
+ statusCode: _response.error.statusCode,
153
+ body: _response.error.body,
154
+ });
155
+ }
156
+ switch (_response.error.reason) {
157
+ case "non-json":
158
+ throw new errors.HumeError({
159
+ statusCode: _response.error.statusCode,
160
+ body: _response.error.rawBody,
161
+ });
162
+ case "timeout":
163
+ throw new errors.HumeTimeoutError();
164
+ case "unknown":
165
+ throw new errors.HumeError({
166
+ message: _response.error.errorMessage,
167
+ });
168
+ }
169
+ });
170
+ }
171
+ _getCustomAuthorizationHeaders() {
172
+ return __awaiter(this, void 0, void 0, function* () {
173
+ const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
174
+ return { "X-Hume-Api-Key": apiKeyValue };
175
+ });
176
+ }
177
+ }
178
+ exports.ChatGroups = ChatGroups;
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface ChatGroupsListChatGroupEventsRequest {
9
+ /**
10
+ * The maximum number of results to include per page.
11
+ */
12
+ pageSize?: number;
13
+ /**
14
+ * The page number of the results to return.
15
+ */
16
+ pageNumber?: number;
17
+ /**
18
+ * Boolean to indicate if the results should be paginated in chronological order or reverse-chronological order. Defaults to true.
19
+ */
20
+ ascendingOrder?: boolean;
21
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface ChatGroupsListChatGroupsRequest {
9
+ /**
10
+ * The page number of the results to return.
11
+ */
12
+ pageNumber?: number;
13
+ /**
14
+ * The maximum number of results to include per page.
15
+ */
16
+ pageSize?: number;
17
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { type ChatGroupsListChatGroupsRequest } from "./ChatGroupsListChatGroupsRequest";
2
+ export { type ChatGroupsListChatGroupEventsRequest } from "./ChatGroupsListChatGroupEventsRequest";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
@@ -69,7 +69,7 @@ class Chats {
69
69
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
70
70
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/chats"),
71
71
  method: "GET",
72
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
72
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
73
73
  contentType: "application/json",
74
74
  queryParameters: _queryParams,
75
75
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -128,7 +128,7 @@ class Chats {
128
128
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
129
129
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/chats/${encodeURIComponent(id)}`),
130
130
  method: "GET",
131
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
131
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
132
132
  contentType: "application/json",
133
133
  queryParameters: _queryParams,
134
134
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -72,7 +72,7 @@ class Configs {
72
72
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
73
73
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/configs"),
74
74
  method: "GET",
75
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
75
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
76
76
  contentType: "application/json",
77
77
  queryParameters: _queryParams,
78
78
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -124,7 +124,7 @@ class Configs {
124
124
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
125
125
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/configs"),
126
126
  method: "POST",
127
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
127
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
128
128
  contentType: "application/json",
129
129
  body: yield serializers.empathicVoice.PostedConfig.jsonOrThrow(request, {
130
130
  unrecognizedObjectKeys: "strip",
@@ -188,7 +188,7 @@ class Configs {
188
188
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
189
189
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}`),
190
190
  method: "GET",
191
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
191
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
192
192
  contentType: "application/json",
193
193
  queryParameters: _queryParams,
194
194
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -239,7 +239,7 @@ class Configs {
239
239
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
240
240
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}`),
241
241
  method: "POST",
242
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
242
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
243
243
  contentType: "application/json",
244
244
  body: yield serializers.empathicVoice.PostedConfigVersion.jsonOrThrow(request, {
245
245
  unrecognizedObjectKeys: "strip",
@@ -291,7 +291,7 @@ class Configs {
291
291
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
292
292
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}`),
293
293
  method: "DELETE",
294
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
294
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
295
295
  contentType: "application/json",
296
296
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
297
297
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -337,7 +337,7 @@ class Configs {
337
337
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
338
338
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}`),
339
339
  method: "PATCH",
340
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
340
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
341
341
  contentType: "application/json",
342
342
  body: yield serializers.empathicVoice.PostedConfigName.jsonOrThrow(request, {
343
343
  unrecognizedObjectKeys: "strip",
@@ -385,7 +385,7 @@ class Configs {
385
385
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
386
386
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
387
387
  method: "GET",
388
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
388
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
389
389
  contentType: "application/json",
390
390
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
391
391
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -435,7 +435,7 @@ class Configs {
435
435
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
436
436
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
437
437
  method: "DELETE",
438
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
438
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
439
439
  contentType: "application/json",
440
440
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
441
441
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -480,7 +480,7 @@ class Configs {
480
480
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
481
481
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
482
482
  method: "PATCH",
483
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
483
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
484
484
  contentType: "application/json",
485
485
  body: yield serializers.empathicVoice.PostedConfigVersionDescription.jsonOrThrow(request, {
486
486
  unrecognizedObjectKeys: "strip",
@@ -4,7 +4,9 @@ export * as tools from "./tools";
4
4
  export * as prompts from "./prompts";
5
5
  export * as configs from "./configs";
6
6
  export * as chats from "./chats";
7
+ export * as chatGroups from "./chatGroups";
7
8
  export * from "./tools/client/requests";
8
9
  export * from "./prompts/client/requests";
9
10
  export * from "./configs/client/requests";
10
11
  export * from "./chats/client/requests";
12
+ export * from "./chatGroups/client/requests";
@@ -26,14 +26,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.chats = exports.configs = exports.prompts = exports.tools = exports.chat = void 0;
29
+ exports.chatGroups = exports.chats = exports.configs = exports.prompts = exports.tools = exports.chat = void 0;
30
30
  exports.chat = __importStar(require("./chat"));
31
31
  __exportStar(require("./chat/types"), exports);
32
32
  exports.tools = __importStar(require("./tools"));
33
33
  exports.prompts = __importStar(require("./prompts"));
34
34
  exports.configs = __importStar(require("./configs"));
35
35
  exports.chats = __importStar(require("./chats"));
36
+ exports.chatGroups = __importStar(require("./chatGroups"));
36
37
  __exportStar(require("./tools/client/requests"), exports);
37
38
  __exportStar(require("./prompts/client/requests"), exports);
38
39
  __exportStar(require("./configs/client/requests"), exports);
39
40
  __exportStar(require("./chats/client/requests"), exports);
41
+ __exportStar(require("./chatGroups/client/requests"), exports);