hume 0.5.17 → 0.6.1

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 (182) 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 +1 -0
  19. package/api/resources/customModels/client/Client.d.ts +1 -0
  20. package/api/resources/customModels/resources/datasets/client/Client.d.ts +1 -0
  21. package/api/resources/customModels/resources/datasets/client/Client.js +38 -30
  22. package/api/resources/customModels/resources/files/client/Client.d.ts +1 -0
  23. package/api/resources/customModels/resources/files/client/Client.js +26 -20
  24. package/api/resources/customModels/resources/jobs/client/Client.d.ts +1 -0
  25. package/api/resources/customModels/resources/jobs/client/Client.js +6 -4
  26. package/api/resources/customModels/resources/models/client/Client.d.ts +1 -0
  27. package/api/resources/customModels/resources/models/client/Client.js +18 -12
  28. package/api/resources/empathicVoice/client/Client.d.ts +4 -0
  29. package/api/resources/empathicVoice/client/Client.js +5 -0
  30. package/api/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +1 -1
  31. package/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +42 -0
  32. package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +178 -0
  33. package/api/resources/empathicVoice/resources/chatGroups/client/index.d.ts +1 -0
  34. package/api/resources/empathicVoice/resources/chatGroups/client/index.js +17 -0
  35. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.ts +21 -0
  36. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.js +5 -0
  37. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +17 -0
  38. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.js +5 -0
  39. package/api/resources/empathicVoice/resources/chatGroups/client/requests/index.d.ts +2 -0
  40. package/api/resources/empathicVoice/resources/chatGroups/client/requests/index.js +2 -0
  41. package/api/resources/empathicVoice/resources/chatGroups/index.d.ts +1 -0
  42. package/api/resources/empathicVoice/resources/chatGroups/index.js +17 -0
  43. package/api/resources/empathicVoice/resources/chats/client/Client.d.ts +1 -0
  44. package/api/resources/empathicVoice/resources/chats/client/Client.js +6 -4
  45. package/api/resources/empathicVoice/resources/configs/client/Client.d.ts +1 -0
  46. package/api/resources/empathicVoice/resources/configs/client/Client.js +27 -18
  47. package/api/resources/empathicVoice/resources/index.d.ts +2 -0
  48. package/api/resources/empathicVoice/resources/index.js +3 -1
  49. package/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +1 -0
  50. package/api/resources/empathicVoice/resources/prompts/client/Client.js +27 -18
  51. package/api/resources/empathicVoice/resources/tools/client/Client.d.ts +1 -0
  52. package/api/resources/empathicVoice/resources/tools/client/Client.js +27 -18
  53. package/api/resources/empathicVoice/types/AssistantMessage.d.ts +1 -1
  54. package/api/resources/empathicVoice/types/ChatMetadata.d.ts +15 -0
  55. package/api/resources/empathicVoice/types/ChatMetadata.js +5 -0
  56. package/api/resources/empathicVoice/types/ReturnChat.d.ts +2 -0
  57. package/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +2 -0
  58. package/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +19 -0
  59. package/api/resources/empathicVoice/types/ReturnChatGroup.js +5 -0
  60. package/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +24 -0
  61. package/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +5 -0
  62. package/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +19 -0
  63. package/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +5 -0
  64. package/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +2 -0
  65. package/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +15 -0
  66. package/api/resources/empathicVoice/types/ReturnPagedChatGroups.js +5 -0
  67. package/api/resources/empathicVoice/types/index.d.ts +5 -0
  68. package/api/resources/empathicVoice/types/index.js +5 -0
  69. package/api/resources/expressionMeasurement/client/Client.d.ts +1 -0
  70. package/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +1 -0
  71. package/api/resources/expressionMeasurement/resources/batch/client/Client.js +17 -12
  72. package/core/fetcher/Fetcher.d.ts +1 -0
  73. package/core/fetcher/Fetcher.js +106 -20
  74. package/core/form-data-utils/FormDataWrapper.d.ts +24 -0
  75. package/core/form-data-utils/FormDataWrapper.js +106 -0
  76. package/core/form-data-utils/index.d.ts +1 -0
  77. package/core/form-data-utils/index.js +17 -0
  78. package/core/index.d.ts +1 -0
  79. package/core/index.js +1 -0
  80. package/dist/Client.d.ts +1 -0
  81. package/dist/api/resources/customModels/client/Client.d.ts +1 -0
  82. package/dist/api/resources/customModels/resources/datasets/client/Client.d.ts +1 -0
  83. package/dist/api/resources/customModels/resources/datasets/client/Client.js +38 -30
  84. package/dist/api/resources/customModels/resources/files/client/Client.d.ts +1 -0
  85. package/dist/api/resources/customModels/resources/files/client/Client.js +26 -20
  86. package/dist/api/resources/customModels/resources/jobs/client/Client.d.ts +1 -0
  87. package/dist/api/resources/customModels/resources/jobs/client/Client.js +6 -4
  88. package/dist/api/resources/customModels/resources/models/client/Client.d.ts +1 -0
  89. package/dist/api/resources/customModels/resources/models/client/Client.js +18 -12
  90. package/dist/api/resources/empathicVoice/client/Client.d.ts +4 -0
  91. package/dist/api/resources/empathicVoice/client/Client.js +5 -0
  92. package/dist/api/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +1 -1
  93. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +42 -0
  94. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +178 -0
  95. package/dist/api/resources/empathicVoice/resources/chatGroups/client/index.d.ts +1 -0
  96. package/dist/api/resources/empathicVoice/resources/chatGroups/client/index.js +17 -0
  97. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.ts +21 -0
  98. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.js +5 -0
  99. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +17 -0
  100. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.js +5 -0
  101. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/index.d.ts +2 -0
  102. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/index.js +2 -0
  103. package/dist/api/resources/empathicVoice/resources/chatGroups/index.d.ts +1 -0
  104. package/dist/api/resources/empathicVoice/resources/chatGroups/index.js +17 -0
  105. package/dist/api/resources/empathicVoice/resources/chats/client/Client.d.ts +1 -0
  106. package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +6 -4
  107. package/dist/api/resources/empathicVoice/resources/configs/client/Client.d.ts +1 -0
  108. package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +27 -18
  109. package/dist/api/resources/empathicVoice/resources/index.d.ts +2 -0
  110. package/dist/api/resources/empathicVoice/resources/index.js +3 -1
  111. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +1 -0
  112. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +27 -18
  113. package/dist/api/resources/empathicVoice/resources/tools/client/Client.d.ts +1 -0
  114. package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +27 -18
  115. package/dist/api/resources/empathicVoice/types/AssistantMessage.d.ts +1 -1
  116. package/dist/api/resources/empathicVoice/types/ChatMetadata.d.ts +15 -0
  117. package/dist/api/resources/empathicVoice/types/ChatMetadata.js +5 -0
  118. package/dist/api/resources/empathicVoice/types/ReturnChat.d.ts +2 -0
  119. package/dist/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +2 -0
  120. package/dist/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +19 -0
  121. package/dist/api/resources/empathicVoice/types/ReturnChatGroup.js +5 -0
  122. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +24 -0
  123. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +5 -0
  124. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +19 -0
  125. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +5 -0
  126. package/dist/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +2 -0
  127. package/dist/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +15 -0
  128. package/dist/api/resources/empathicVoice/types/ReturnPagedChatGroups.js +5 -0
  129. package/dist/api/resources/empathicVoice/types/index.d.ts +5 -0
  130. package/dist/api/resources/empathicVoice/types/index.js +5 -0
  131. package/dist/api/resources/expressionMeasurement/client/Client.d.ts +1 -0
  132. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +1 -0
  133. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +17 -12
  134. package/dist/core/fetcher/Fetcher.d.ts +1 -0
  135. package/dist/core/fetcher/Fetcher.js +106 -20
  136. package/dist/core/form-data-utils/FormDataWrapper.d.ts +24 -0
  137. package/dist/core/form-data-utils/FormDataWrapper.js +106 -0
  138. package/dist/core/form-data-utils/index.d.ts +1 -0
  139. package/dist/core/form-data-utils/index.js +17 -0
  140. package/dist/core/index.d.ts +1 -0
  141. package/dist/core/index.js +1 -0
  142. package/dist/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +2 -1
  143. package/dist/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.js +2 -0
  144. package/dist/serialization/resources/empathicVoice/types/ChatMetadata.d.ts +15 -0
  145. package/dist/serialization/resources/empathicVoice/types/ChatMetadata.js +36 -0
  146. package/dist/serialization/resources/empathicVoice/types/ReturnChat.d.ts +1 -0
  147. package/dist/serialization/resources/empathicVoice/types/ReturnChat.js +1 -0
  148. package/dist/serialization/resources/empathicVoice/types/ReturnChatEvent.d.ts +1 -0
  149. package/dist/serialization/resources/empathicVoice/types/ReturnChatEvent.js +1 -0
  150. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroup.d.ts +17 -0
  151. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroup.js +38 -0
  152. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +20 -0
  153. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +41 -0
  154. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +17 -0
  155. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +38 -0
  156. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +1 -0
  157. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +1 -0
  158. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +15 -0
  159. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +36 -0
  160. package/dist/serialization/resources/empathicVoice/types/index.d.ts +5 -0
  161. package/dist/serialization/resources/empathicVoice/types/index.js +5 -0
  162. package/package.json +3 -1
  163. package/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +2 -1
  164. package/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.js +2 -0
  165. package/serialization/resources/empathicVoice/types/ChatMetadata.d.ts +15 -0
  166. package/serialization/resources/empathicVoice/types/ChatMetadata.js +36 -0
  167. package/serialization/resources/empathicVoice/types/ReturnChat.d.ts +1 -0
  168. package/serialization/resources/empathicVoice/types/ReturnChat.js +1 -0
  169. package/serialization/resources/empathicVoice/types/ReturnChatEvent.d.ts +1 -0
  170. package/serialization/resources/empathicVoice/types/ReturnChatEvent.js +1 -0
  171. package/serialization/resources/empathicVoice/types/ReturnChatGroup.d.ts +17 -0
  172. package/serialization/resources/empathicVoice/types/ReturnChatGroup.js +38 -0
  173. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +20 -0
  174. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +41 -0
  175. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +17 -0
  176. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +38 -0
  177. package/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +1 -0
  178. package/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +1 -0
  179. package/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +15 -0
  180. package/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +36 -0
  181. package/serialization/resources/empathicVoice/types/index.d.ts +5 -0
  182. package/serialization/resources/empathicVoice/types/index.js +5 -0
@@ -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);
@@ -13,6 +13,7 @@ export declare namespace Chats {
13
13
  interface RequestOptions {
14
14
  timeoutInSeconds?: number;
15
15
  maxRetries?: number;
16
+ abortSignal?: AbortSignal;
16
17
  }
17
18
  }
18
19
  export declare class Chats {
@@ -67,13 +67,14 @@ class Chats {
67
67
  _queryParams["page_size"] = pageSize.toString();
68
68
  }
69
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, "chats"),
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.5.17", "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,
76
76
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
77
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
77
78
  });
78
79
  if (_response.ok) {
79
80
  return yield serializers.empathicVoice.ReturnPagedChats.parseOrThrow(_response.body, {
@@ -125,13 +126,14 @@ class Chats {
125
126
  _queryParams["page_number"] = pageNumber.toString();
126
127
  }
127
128
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
128
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `chats/${encodeURIComponent(id)}`),
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)}`),
129
130
  method: "GET",
130
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "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())),
131
132
  contentType: "application/json",
132
133
  queryParameters: _queryParams,
133
134
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
134
135
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
136
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
135
137
  });
136
138
  if (_response.ok) {
137
139
  return yield serializers.empathicVoice.ReturnChatPagedEvents.parseOrThrow(_response.body, {
@@ -13,6 +13,7 @@ export declare namespace Configs {
13
13
  interface RequestOptions {
14
14
  timeoutInSeconds?: number;
15
15
  maxRetries?: number;
16
+ abortSignal?: AbortSignal;
16
17
  }
17
18
  }
18
19
  export declare class Configs {
@@ -70,13 +70,14 @@ class Configs {
70
70
  _queryParams["restrict_to_most_recent"] = restrictToMostRecent.toString();
71
71
  }
72
72
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
73
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "configs"),
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.5.17", "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,
79
79
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
80
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
80
81
  });
81
82
  if (_response.ok) {
82
83
  return yield serializers.empathicVoice.ReturnPagedConfigs.parseOrThrow(_response.body, {
@@ -121,15 +122,16 @@ class Configs {
121
122
  var _a, _b;
122
123
  return __awaiter(this, void 0, void 0, function* () {
123
124
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
124
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "configs"),
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"),
125
126
  method: "POST",
126
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "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())),
127
128
  contentType: "application/json",
128
129
  body: yield serializers.empathicVoice.PostedConfig.jsonOrThrow(request, {
129
130
  unrecognizedObjectKeys: "strip",
130
131
  }),
131
132
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
132
133
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
134
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
133
135
  });
134
136
  if (_response.ok) {
135
137
  return yield serializers.empathicVoice.ReturnConfig.parseOrThrow(_response.body, {
@@ -184,13 +186,14 @@ class Configs {
184
186
  _queryParams["restrict_to_most_recent"] = restrictToMostRecent.toString();
185
187
  }
186
188
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
187
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `configs/${encodeURIComponent(id)}`),
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)}`),
188
190
  method: "GET",
189
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "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())),
190
192
  contentType: "application/json",
191
193
  queryParameters: _queryParams,
192
194
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
193
195
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
196
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
194
197
  });
195
198
  if (_response.ok) {
196
199
  return yield serializers.empathicVoice.ReturnPagedConfigs.parseOrThrow(_response.body, {
@@ -234,15 +237,16 @@ class Configs {
234
237
  var _a, _b;
235
238
  return __awaiter(this, void 0, void 0, function* () {
236
239
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
237
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `configs/${encodeURIComponent(id)}`),
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)}`),
238
241
  method: "POST",
239
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "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())),
240
243
  contentType: "application/json",
241
244
  body: yield serializers.empathicVoice.PostedConfigVersion.jsonOrThrow(request, {
242
245
  unrecognizedObjectKeys: "strip",
243
246
  }),
244
247
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
245
248
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
249
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
246
250
  });
247
251
  if (_response.ok) {
248
252
  return yield serializers.empathicVoice.ReturnConfig.parseOrThrow(_response.body, {
@@ -285,12 +289,13 @@ class Configs {
285
289
  var _a, _b;
286
290
  return __awaiter(this, void 0, void 0, function* () {
287
291
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
288
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `configs/${encodeURIComponent(id)}`),
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)}`),
289
293
  method: "DELETE",
290
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "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())),
291
295
  contentType: "application/json",
292
296
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
293
297
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
298
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
294
299
  });
295
300
  if (_response.ok) {
296
301
  return;
@@ -330,9 +335,9 @@ class Configs {
330
335
  var _a, _b;
331
336
  return __awaiter(this, void 0, void 0, function* () {
332
337
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
333
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `configs/${encodeURIComponent(id)}`),
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)}`),
334
339
  method: "PATCH",
335
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "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())),
336
341
  contentType: "application/json",
337
342
  body: yield serializers.empathicVoice.PostedConfigName.jsonOrThrow(request, {
338
343
  unrecognizedObjectKeys: "strip",
@@ -340,6 +345,7 @@ class Configs {
340
345
  responseType: "text",
341
346
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
342
347
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
348
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
343
349
  });
344
350
  if (_response.ok) {
345
351
  return _response.body;
@@ -377,12 +383,13 @@ class Configs {
377
383
  var _a, _b;
378
384
  return __awaiter(this, void 0, void 0, function* () {
379
385
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
380
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `configs/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
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)}`),
381
387
  method: "GET",
382
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "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())),
383
389
  contentType: "application/json",
384
390
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
385
391
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
392
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
386
393
  });
387
394
  if (_response.ok) {
388
395
  return yield serializers.empathicVoice.ReturnConfig.parseOrThrow(_response.body, {
@@ -426,12 +433,13 @@ class Configs {
426
433
  var _a, _b;
427
434
  return __awaiter(this, void 0, void 0, function* () {
428
435
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
429
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `configs/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
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)}`),
430
437
  method: "DELETE",
431
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "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())),
432
439
  contentType: "application/json",
433
440
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
434
441
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
442
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
435
443
  });
436
444
  if (_response.ok) {
437
445
  return;
@@ -470,15 +478,16 @@ class Configs {
470
478
  var _a, _b;
471
479
  return __awaiter(this, void 0, void 0, function* () {
472
480
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
473
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `configs/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
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)}`),
474
482
  method: "PATCH",
475
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "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())),
476
484
  contentType: "application/json",
477
485
  body: yield serializers.empathicVoice.PostedConfigVersionDescription.jsonOrThrow(request, {
478
486
  unrecognizedObjectKeys: "strip",
479
487
  }),
480
488
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
481
489
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
490
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
482
491
  });
483
492
  if (_response.ok) {
484
493
  return yield serializers.empathicVoice.ReturnConfig.parseOrThrow(_response.body, {
@@ -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);
@@ -13,6 +13,7 @@ export declare namespace Prompts {
13
13
  interface RequestOptions {
14
14
  timeoutInSeconds?: number;
15
15
  maxRetries?: number;
16
+ abortSignal?: AbortSignal;
16
17
  }
17
18
  }
18
19
  export declare class Prompts {
@@ -70,13 +70,14 @@ class Prompts {
70
70
  _queryParams["restrict_to_most_recent"] = restrictToMostRecent.toString();
71
71
  }
72
72
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
73
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "prompts"),
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/prompts"),
74
74
  method: "GET",
75
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "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,
79
79
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
80
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
80
81
  });
81
82
  if (_response.ok) {
82
83
  return yield serializers.empathicVoice.ReturnPagedPrompts.parseOrThrow(_response.body, {
@@ -122,15 +123,16 @@ class Prompts {
122
123
  var _a, _b;
123
124
  return __awaiter(this, void 0, void 0, function* () {
124
125
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
125
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "prompts"),
126
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/prompts"),
126
127
  method: "POST",
127
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
128
+ 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
129
  contentType: "application/json",
129
130
  body: yield serializers.empathicVoice.PostedPrompt.jsonOrThrow(request, {
130
131
  unrecognizedObjectKeys: "strip",
131
132
  }),
132
133
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
133
134
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
135
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
134
136
  });
135
137
  if (_response.ok) {
136
138
  return yield serializers.empathicVoice.prompts.createPrompt.Response.parseOrThrow(_response.body, {
@@ -185,13 +187,14 @@ class Prompts {
185
187
  _queryParams["restrict_to_most_recent"] = restrictToMostRecent.toString();
186
188
  }
187
189
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
188
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `prompts/${encodeURIComponent(id)}`),
190
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}`),
189
191
  method: "GET",
190
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
192
+ 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())),
191
193
  contentType: "application/json",
192
194
  queryParameters: _queryParams,
193
195
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
194
196
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
197
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
195
198
  });
196
199
  if (_response.ok) {
197
200
  return yield serializers.empathicVoice.ReturnPagedPrompts.parseOrThrow(_response.body, {
@@ -237,15 +240,16 @@ class Prompts {
237
240
  var _a, _b;
238
241
  return __awaiter(this, void 0, void 0, function* () {
239
242
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
240
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `prompts/${encodeURIComponent(id)}`),
243
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}`),
241
244
  method: "POST",
242
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
245
+ 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
246
  contentType: "application/json",
244
247
  body: yield serializers.empathicVoice.PostedPromptVersion.jsonOrThrow(request, {
245
248
  unrecognizedObjectKeys: "strip",
246
249
  }),
247
250
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
248
251
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
252
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
249
253
  });
250
254
  if (_response.ok) {
251
255
  return yield serializers.empathicVoice.prompts.createPromptVerison.Response.parseOrThrow(_response.body, {
@@ -288,12 +292,13 @@ class Prompts {
288
292
  var _a, _b;
289
293
  return __awaiter(this, void 0, void 0, function* () {
290
294
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
291
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `prompts/${encodeURIComponent(id)}`),
295
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}`),
292
296
  method: "DELETE",
293
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
297
+ 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())),
294
298
  contentType: "application/json",
295
299
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
296
300
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
301
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
297
302
  });
298
303
  if (_response.ok) {
299
304
  return;
@@ -333,9 +338,9 @@ class Prompts {
333
338
  var _a, _b;
334
339
  return __awaiter(this, void 0, void 0, function* () {
335
340
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
336
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `prompts/${encodeURIComponent(id)}`),
341
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}`),
337
342
  method: "PATCH",
338
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
343
+ 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())),
339
344
  contentType: "application/json",
340
345
  body: yield serializers.empathicVoice.PostedPromptName.jsonOrThrow(request, {
341
346
  unrecognizedObjectKeys: "strip",
@@ -343,6 +348,7 @@ class Prompts {
343
348
  responseType: "text",
344
349
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
345
350
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
351
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
346
352
  });
347
353
  if (_response.ok) {
348
354
  return _response.body;
@@ -380,12 +386,13 @@ class Prompts {
380
386
  var _a, _b;
381
387
  return __awaiter(this, void 0, void 0, function* () {
382
388
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
383
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `prompts/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
389
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
384
390
  method: "GET",
385
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
391
+ 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())),
386
392
  contentType: "application/json",
387
393
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
388
394
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
395
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
389
396
  });
390
397
  if (_response.ok) {
391
398
  return yield serializers.empathicVoice.prompts.getPromptVersion.Response.parseOrThrow(_response.body, {
@@ -429,12 +436,13 @@ class Prompts {
429
436
  var _a, _b;
430
437
  return __awaiter(this, void 0, void 0, function* () {
431
438
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
432
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `prompts/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
439
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
433
440
  method: "DELETE",
434
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
441
+ 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())),
435
442
  contentType: "application/json",
436
443
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
437
444
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
445
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
438
446
  });
439
447
  if (_response.ok) {
440
448
  return;
@@ -473,15 +481,16 @@ class Prompts {
473
481
  var _a, _b;
474
482
  return __awaiter(this, void 0, void 0, function* () {
475
483
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
476
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `prompts/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
484
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
477
485
  method: "PATCH",
478
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
486
+ 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())),
479
487
  contentType: "application/json",
480
488
  body: yield serializers.empathicVoice.PostedPromptVersionDescription.jsonOrThrow(request, {
481
489
  unrecognizedObjectKeys: "strip",
482
490
  }),
483
491
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
484
492
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
493
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
485
494
  });
486
495
  if (_response.ok) {
487
496
  return yield serializers.empathicVoice.prompts.updatePromptDescription.Response.parseOrThrow(_response.body, {
@@ -13,6 +13,7 @@ export declare namespace Tools {
13
13
  interface RequestOptions {
14
14
  timeoutInSeconds?: number;
15
15
  maxRetries?: number;
16
+ abortSignal?: AbortSignal;
16
17
  }
17
18
  }
18
19
  export declare class Tools {