hume 0.8.1-beta9 → 0.8.3

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 (71) hide show
  1. package/.mock/definition/empathic-voice/__package__.yml +0 -14
  2. package/.mock/definition/empathic-voice/chat.yml +3 -4
  3. package/.mock/definition/empathic-voice/chatGroups.yml +5 -0
  4. package/.mock/definition/empathic-voice/configs.yml +3 -0
  5. package/.mock/definition/empathic-voice/prompts.yml +3 -0
  6. package/.mock/definition/empathic-voice/tools.yml +3 -0
  7. package/README.md +17 -10
  8. package/api/resources/empathicVoice/resources/chat/client/Socket.d.ts +1 -1
  9. package/api/resources/empathicVoice/resources/chat/client/Socket.js +1 -1
  10. package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +6 -3
  11. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +4 -0
  12. package/api/resources/empathicVoice/resources/chats/client/Client.js +2 -2
  13. package/api/resources/empathicVoice/resources/configs/client/Client.js +13 -10
  14. package/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigsRequest.d.ts +4 -0
  15. package/api/resources/empathicVoice/resources/prompts/client/Client.js +13 -10
  16. package/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptsRequest.d.ts +4 -0
  17. package/api/resources/empathicVoice/resources/tools/client/Client.js +13 -10
  18. package/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolsRequest.d.ts +4 -0
  19. package/api/resources/empathicVoice/types/index.d.ts +0 -2
  20. package/api/resources/empathicVoice/types/index.js +0 -2
  21. package/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  22. package/api/resources/index.d.ts +1 -1
  23. package/api/resources/index.js +2 -2
  24. package/core/websocket/ws.js +9 -3
  25. package/dist/api/resources/empathicVoice/resources/chat/client/Socket.d.ts +1 -1
  26. package/dist/api/resources/empathicVoice/resources/chat/client/Socket.js +1 -1
  27. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +6 -3
  28. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +4 -0
  29. package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +2 -2
  30. package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +13 -10
  31. package/dist/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigsRequest.d.ts +4 -0
  32. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +13 -10
  33. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptsRequest.d.ts +4 -0
  34. package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +13 -10
  35. package/dist/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolsRequest.d.ts +4 -0
  36. package/dist/api/resources/empathicVoice/types/index.d.ts +0 -2
  37. package/dist/api/resources/empathicVoice/types/index.js +0 -2
  38. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  39. package/dist/api/resources/index.d.ts +1 -1
  40. package/dist/api/resources/index.js +2 -2
  41. package/dist/core/websocket/ws.js +9 -3
  42. package/dist/serialization/resources/empathicVoice/types/index.d.ts +0 -2
  43. package/dist/serialization/resources/empathicVoice/types/index.js +0 -2
  44. package/dist/serialization/resources/index.d.ts +1 -1
  45. package/dist/serialization/resources/index.js +2 -2
  46. package/dist/wrapper/fetchAccessToken.d.ts +5 -5
  47. package/dist/wrapper/fetchAccessToken.js +35 -13
  48. package/package.json +3 -2
  49. package/reference.md +444 -444
  50. package/serialization/resources/empathicVoice/types/index.d.ts +0 -2
  51. package/serialization/resources/empathicVoice/types/index.js +0 -2
  52. package/serialization/resources/index.d.ts +1 -1
  53. package/serialization/resources/index.js +2 -2
  54. package/wrapper/fetchAccessToken.d.ts +5 -5
  55. package/wrapper/fetchAccessToken.js +35 -13
  56. package/api/resources/empathicVoice/types/ReturnPrivacySettings.d.ts +0 -8
  57. package/api/resources/empathicVoice/types/ReturnPrivacySettings.js +0 -5
  58. package/api/resources/empathicVoice/types/ReturnPurgeStats.d.ts +0 -12
  59. package/api/resources/empathicVoice/types/ReturnPurgeStats.js +0 -5
  60. package/dist/api/resources/empathicVoice/types/ReturnPrivacySettings.d.ts +0 -8
  61. package/dist/api/resources/empathicVoice/types/ReturnPrivacySettings.js +0 -5
  62. package/dist/api/resources/empathicVoice/types/ReturnPurgeStats.d.ts +0 -12
  63. package/dist/api/resources/empathicVoice/types/ReturnPurgeStats.js +0 -5
  64. package/dist/serialization/resources/empathicVoice/types/ReturnPrivacySettings.d.ts +0 -14
  65. package/dist/serialization/resources/empathicVoice/types/ReturnPrivacySettings.js +0 -35
  66. package/dist/serialization/resources/empathicVoice/types/ReturnPurgeStats.d.ts +0 -18
  67. package/dist/serialization/resources/empathicVoice/types/ReturnPurgeStats.js +0 -39
  68. package/serialization/resources/empathicVoice/types/ReturnPrivacySettings.d.ts +0 -14
  69. package/serialization/resources/empathicVoice/types/ReturnPrivacySettings.js +0 -35
  70. package/serialization/resources/empathicVoice/types/ReturnPurgeStats.d.ts +0 -18
  71. package/serialization/resources/empathicVoice/types/ReturnPurgeStats.js +0 -39
@@ -423,11 +423,6 @@ types:
423
423
  docs: >-
424
424
  String with the name of the voice to use. Maximum length of 75
425
425
  characters. Will be converted to all-uppercase.
426
- ReturnPrivacySettings:
427
- properties:
428
- id: optional<string>
429
- do_not_retain_data: optional<boolean>
430
- do_not_use_for_training: optional<boolean>
431
426
  PostedCustomVoiceName:
432
427
  docs: A custom voice name change to be posted to the server
433
428
  properties:
@@ -794,15 +789,6 @@ types:
794
789
  List of chat_events returned for the specified page number and page
795
790
  size.
796
791
  type: list<ReturnChatEvent>
797
- ReturnPurgeStats:
798
- properties:
799
- id: optional<string>
800
- num_chats: optional<integer>
801
- num_chat_events: optional<integer>
802
- num_configs: optional<integer>
803
- num_prompts: optional<integer>
804
- num_tools: optional<integer>
805
- num_voices: optional<integer>
806
792
  AssistantInput:
807
793
  docs: When provided, the input is spoken by EVI.
808
794
  properties:
@@ -23,10 +23,9 @@ channel:
23
23
  `config_id`.
24
24
 
25
25
 
26
- Configs, as well as Prompts, Tools, and Language Models, are versioned.
27
- This versioning system supports iterative development, allowing you to
28
- progressively refine configurations and revert to previous versions if
29
- needed.
26
+ Configs, as well as Prompts and Tools, are versioned. This versioning
27
+ system supports iterative development, allowing you to progressively
28
+ refine configurations and revert to previous versions if needed.
30
29
 
31
30
 
32
31
  Include this parameter to apply a specific version of an EVI
@@ -24,6 +24,11 @@ service:
24
24
  Boolean to indicate if the results should be paginated in
25
25
  chronological order or reverse-chronological order. Defaults to
26
26
  true.
27
+ config_id:
28
+ type: optional<string>
29
+ docs: >-
30
+ Filter chatgroups to only include chats that used this config in
31
+ their most recent chat.
27
32
  response:
28
33
  docs: Success
29
34
  type: root.ReturnPagedChatGroups
@@ -21,6 +21,9 @@ service:
21
21
  restrict_to_most_recent:
22
22
  type: optional<boolean>
23
23
  docs: Only include the most recent version of each config in the list.
24
+ name:
25
+ type: optional<string>
26
+ docs: Filter to only include configs with this name.
24
27
  response:
25
28
  docs: Success
26
29
  type: root.ReturnPagedConfigs
@@ -21,6 +21,9 @@ service:
21
21
  restrict_to_most_recent:
22
22
  type: optional<boolean>
23
23
  docs: Only include the most recent version of each prompt in the list.
24
+ name:
25
+ type: optional<string>
26
+ docs: Filter to only include prompts with this name.
24
27
  response:
25
28
  docs: Success
26
29
  type: root.ReturnPagedPrompts
@@ -21,6 +21,9 @@ service:
21
21
  restrict_to_most_recent:
22
22
  type: optional<boolean>
23
23
  docs: Only include the most recent version of each tool in the list.
24
+ name:
25
+ type: optional<string>
26
+ docs: Filter to only include tools with this name.
24
27
  response:
25
28
  docs: Success
26
29
  type: root.ReturnPagedUserDefinedTools
package/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
  <br>
10
10
  <div>
11
11
  <a href="https://www.npmjs.com/package/hume"><img src="https://img.shields.io/npm/v/hume">
12
- <a href="https://buildwithfern.com/"><img src="https://img.shields.io/badge/%F0%9F%8C%BF-SDK%20generated%20by%20Fern-brightgreen">
12
+ <a href="https://buildwithfern.com/"><img src="https://img.shields.io/badge/%F0%9F%8C%BF-SDK%20generated%20by%20Fern-brightgreen">
13
13
  </div>
14
14
  <br>
15
15
  </div>
@@ -41,9 +41,11 @@ const job = await hume.expressionMeasurement.batch.startInferenceJob({
41
41
  });
42
42
 
43
43
  console.log("Running...");
44
+
44
45
  await job.awaitCompletion();
45
46
 
46
47
  const predictions = await hume.expressionMeasurement.batch.getJobPredictions(job.jobId);
48
+
47
49
  console.log(predictions);
48
50
  ```
49
51
 
@@ -82,11 +84,13 @@ import { HumeClient } from "hume";
82
84
  const hume = new HumeClient({
83
85
  apiKey: "YOUR_API_KEY",
84
86
  });
87
+
85
88
  const socket = hume.expressionMeasurement.stream.connect({
86
89
  config: {
87
90
  language: {},
88
91
  },
89
92
  });
93
+
90
94
  for (const sample of samples) {
91
95
  const result = await socket.sendText({ text: sample });
92
96
  console.log(result);
@@ -105,16 +109,19 @@ const hume = new HumeClient({
105
109
  secretKey: "<>",
106
110
  });
107
111
 
108
- const socket = await hume.empathicVoice.chat.connect({
109
- async onMessage(message): Promise<void> {
110
- if (message.type === "audio_output") {
111
- const decoded = Buffer.from(message.data, "base64");
112
- // play decoded message
113
- }
114
- },
115
- });
112
+ const socket = hume.empathicVoice.chat.connect();
113
+
114
+ socket.on('message', (message) => {
115
+ if (message.type === "audio_output") {
116
+ const decoded = Buffer.from(message.data, "base64");
117
+ // play decoded message
118
+ }
119
+ })
120
+
121
+ // optional utility to wait for socket to be open
122
+ await socket.tillSocketOpen();
116
123
 
117
- await socket.sendTextInput("Hello, how are you?");
124
+ socket.sendUserInput("Hello, how are you?");
118
125
  ```
119
126
 
120
127
  ## Errors
@@ -5,7 +5,7 @@ export declare namespace ChatSocket {
5
5
  socket: core.ReconnectingWebSocket;
6
6
  }
7
7
  type Response = Hume.empathicVoice.SubscribeEvent & {
8
- receivedAt: number;
8
+ receivedAt: Date;
9
9
  };
10
10
  type EventHandlers = {
11
11
  open?: () => void;
@@ -53,7 +53,7 @@ class ChatSocket {
53
53
  breadcrumbsPrefix: ["response"],
54
54
  });
55
55
  if (parsedResponse.ok) {
56
- (_b = (_a = this.eventHandlers).message) === null || _b === void 0 ? void 0 : _b.call(_a, Object.assign(Object.assign({}, parsedResponse.value), { receivedAt: Date.now() }));
56
+ (_b = (_a = this.eventHandlers).message) === null || _b === void 0 ? void 0 : _b.call(_a, Object.assign(Object.assign({}, parsedResponse.value), { receivedAt: new Date() }));
57
57
  }
58
58
  else {
59
59
  (_d = (_c = this.eventHandlers).error) === null || _d === void 0 ? void 0 : _d.call(_c, new Error(`Received unknown message type`));
@@ -58,7 +58,7 @@ class ChatGroups {
58
58
  listChatGroups(request = {}, requestOptions) {
59
59
  var _a, _b;
60
60
  return __awaiter(this, void 0, void 0, function* () {
61
- const { pageNumber, pageSize, ascendingOrder } = request;
61
+ const { pageNumber, pageSize, ascendingOrder, configId } = request;
62
62
  const _queryParams = {};
63
63
  if (pageNumber != null) {
64
64
  _queryParams["page_number"] = pageNumber.toString();
@@ -69,10 +69,13 @@ class ChatGroups {
69
69
  if (ascendingOrder != null) {
70
70
  _queryParams["ascending_order"] = ascendingOrder.toString();
71
71
  }
72
+ if (configId != null) {
73
+ _queryParams["config_id"] = configId;
74
+ }
72
75
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
73
76
  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"),
74
77
  method: "GET",
75
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
78
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
76
79
  contentType: "application/json",
77
80
  queryParameters: _queryParams,
78
81
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -133,7 +136,7 @@ class ChatGroups {
133
136
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
134
137
  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`),
135
138
  method: "GET",
136
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
139
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
137
140
  contentType: "application/json",
138
141
  queryParameters: _queryParams,
139
142
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -18,4 +18,8 @@ export interface ChatGroupsListChatGroupsRequest {
18
18
  * Boolean to indicate if the results should be paginated in chronological order or reverse-chronological order. Defaults to true.
19
19
  */
20
20
  ascendingOrder?: boolean;
21
+ /**
22
+ * Filter chatgroups to only include chats that used this config in their most recent chat.
23
+ */
24
+ configId?: string;
21
25
  }
@@ -72,7 +72,7 @@ class Chats {
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/chats"),
74
74
  method: "GET",
75
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "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.8.2", "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,
@@ -133,7 +133,7 @@ class Chats {
133
133
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
134
134
  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)}`),
135
135
  method: "GET",
136
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
136
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
137
137
  contentType: "application/json",
138
138
  queryParameters: _queryParams,
139
139
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -58,7 +58,7 @@ class Configs {
58
58
  listConfigs(request = {}, requestOptions) {
59
59
  var _a, _b;
60
60
  return __awaiter(this, void 0, void 0, function* () {
61
- const { pageNumber, pageSize, restrictToMostRecent } = request;
61
+ const { pageNumber, pageSize, restrictToMostRecent, name } = request;
62
62
  const _queryParams = {};
63
63
  if (pageNumber != null) {
64
64
  _queryParams["page_number"] = pageNumber.toString();
@@ -69,10 +69,13 @@ class Configs {
69
69
  if (restrictToMostRecent != null) {
70
70
  _queryParams["restrict_to_most_recent"] = restrictToMostRecent.toString();
71
71
  }
72
+ if (name != null) {
73
+ _queryParams["name"] = name;
74
+ }
72
75
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
73
76
  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
77
  method: "GET",
75
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
78
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
76
79
  contentType: "application/json",
77
80
  queryParameters: _queryParams,
78
81
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -123,7 +126,7 @@ class Configs {
123
126
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
124
127
  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
128
  method: "POST",
126
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
129
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
127
130
  contentType: "application/json",
128
131
  body: serializers.empathicVoice.PostedConfig.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
129
132
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -184,7 +187,7 @@ class Configs {
184
187
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
185
188
  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)}`),
186
189
  method: "GET",
187
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
190
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
188
191
  contentType: "application/json",
189
192
  queryParameters: _queryParams,
190
193
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -234,7 +237,7 @@ class Configs {
234
237
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
235
238
  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)}`),
236
239
  method: "POST",
237
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
240
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
238
241
  contentType: "application/json",
239
242
  body: serializers.empathicVoice.PostedConfigVersion.jsonOrThrow(request, {
240
243
  unrecognizedObjectKeys: "strip",
@@ -285,7 +288,7 @@ class Configs {
285
288
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
286
289
  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)}`),
287
290
  method: "DELETE",
288
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
291
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
289
292
  contentType: "application/json",
290
293
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
291
294
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -331,7 +334,7 @@ class Configs {
331
334
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
332
335
  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)}`),
333
336
  method: "PATCH",
334
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
337
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
335
338
  contentType: "application/json",
336
339
  body: serializers.empathicVoice.PostedConfigName.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
337
340
  responseType: "text",
@@ -377,7 +380,7 @@ class Configs {
377
380
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
378
381
  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)}`),
379
382
  method: "GET",
380
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
383
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
381
384
  contentType: "application/json",
382
385
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
383
386
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -426,7 +429,7 @@ class Configs {
426
429
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
427
430
  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)}`),
428
431
  method: "DELETE",
429
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
432
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
430
433
  contentType: "application/json",
431
434
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
432
435
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -471,7 +474,7 @@ class Configs {
471
474
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
472
475
  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)}`),
473
476
  method: "PATCH",
474
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
477
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
475
478
  contentType: "application/json",
476
479
  body: serializers.empathicVoice.PostedConfigVersionDescription.jsonOrThrow(request, {
477
480
  unrecognizedObjectKeys: "strip",
@@ -18,4 +18,8 @@ export interface ConfigsListConfigsRequest {
18
18
  * Only include the most recent version of each config in the list.
19
19
  */
20
20
  restrictToMostRecent?: boolean;
21
+ /**
22
+ * Filter to only include configs with this name.
23
+ */
24
+ name?: string;
21
25
  }
@@ -58,7 +58,7 @@ class Prompts {
58
58
  listPrompts(request = {}, requestOptions) {
59
59
  var _a, _b;
60
60
  return __awaiter(this, void 0, void 0, function* () {
61
- const { pageNumber, pageSize, restrictToMostRecent } = request;
61
+ const { pageNumber, pageSize, restrictToMostRecent, name } = request;
62
62
  const _queryParams = {};
63
63
  if (pageNumber != null) {
64
64
  _queryParams["page_number"] = pageNumber.toString();
@@ -69,10 +69,13 @@ class Prompts {
69
69
  if (restrictToMostRecent != null) {
70
70
  _queryParams["restrict_to_most_recent"] = restrictToMostRecent.toString();
71
71
  }
72
+ if (name != null) {
73
+ _queryParams["name"] = name;
74
+ }
72
75
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
73
76
  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
77
  method: "GET",
75
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
78
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
76
79
  contentType: "application/json",
77
80
  queryParameters: _queryParams,
78
81
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -124,7 +127,7 @@ class Prompts {
124
127
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
125
128
  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
129
  method: "POST",
127
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
130
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
128
131
  contentType: "application/json",
129
132
  body: serializers.empathicVoice.PostedPrompt.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
130
133
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -185,7 +188,7 @@ class Prompts {
185
188
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
186
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/prompts/${encodeURIComponent(id)}`),
187
190
  method: "GET",
188
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "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.8.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
189
192
  contentType: "application/json",
190
193
  queryParameters: _queryParams,
191
194
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -237,7 +240,7 @@ class Prompts {
237
240
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
238
241
  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)}`),
239
242
  method: "POST",
240
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
243
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
241
244
  contentType: "application/json",
242
245
  body: serializers.empathicVoice.PostedPromptVersion.jsonOrThrow(request, {
243
246
  unrecognizedObjectKeys: "strip",
@@ -288,7 +291,7 @@ class Prompts {
288
291
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
289
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/prompts/${encodeURIComponent(id)}`),
290
293
  method: "DELETE",
291
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "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.8.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
292
295
  contentType: "application/json",
293
296
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
294
297
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -334,7 +337,7 @@ class Prompts {
334
337
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
335
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/prompts/${encodeURIComponent(id)}`),
336
339
  method: "PATCH",
337
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "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.8.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
338
341
  contentType: "application/json",
339
342
  body: serializers.empathicVoice.PostedPromptName.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
340
343
  responseType: "text",
@@ -380,7 +383,7 @@ class Prompts {
380
383
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
381
384
  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)}`),
382
385
  method: "GET",
383
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
386
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
384
387
  contentType: "application/json",
385
388
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
386
389
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -429,7 +432,7 @@ class Prompts {
429
432
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
430
433
  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)}`),
431
434
  method: "DELETE",
432
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
435
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
433
436
  contentType: "application/json",
434
437
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
435
438
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -474,7 +477,7 @@ class Prompts {
474
477
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
475
478
  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)}`),
476
479
  method: "PATCH",
477
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
480
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
478
481
  contentType: "application/json",
479
482
  body: serializers.empathicVoice.PostedPromptVersionDescription.jsonOrThrow(request, {
480
483
  unrecognizedObjectKeys: "strip",
@@ -18,4 +18,8 @@ export interface PromptsListPromptsRequest {
18
18
  * Only include the most recent version of each prompt in the list.
19
19
  */
20
20
  restrictToMostRecent?: boolean;
21
+ /**
22
+ * Filter to only include prompts with this name.
23
+ */
24
+ name?: string;
21
25
  }
@@ -61,7 +61,7 @@ class Tools {
61
61
  listTools(request = {}, requestOptions) {
62
62
  var _a, _b;
63
63
  return __awaiter(this, void 0, void 0, function* () {
64
- const { pageNumber, pageSize, restrictToMostRecent } = request;
64
+ const { pageNumber, pageSize, restrictToMostRecent, name } = request;
65
65
  const _queryParams = {};
66
66
  if (pageNumber != null) {
67
67
  _queryParams["page_number"] = pageNumber.toString();
@@ -72,10 +72,13 @@ class Tools {
72
72
  if (restrictToMostRecent != null) {
73
73
  _queryParams["restrict_to_most_recent"] = restrictToMostRecent.toString();
74
74
  }
75
+ if (name != null) {
76
+ _queryParams["name"] = name;
77
+ }
75
78
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
76
79
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/tools"),
77
80
  method: "GET",
78
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
81
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
79
82
  contentType: "application/json",
80
83
  queryParameters: _queryParams,
81
84
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -130,7 +133,7 @@ class Tools {
130
133
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
131
134
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/tools"),
132
135
  method: "POST",
133
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
136
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
134
137
  contentType: "application/json",
135
138
  body: serializers.empathicVoice.PostedUserDefinedTool.jsonOrThrow(request, {
136
139
  unrecognizedObjectKeys: "strip",
@@ -193,7 +196,7 @@ class Tools {
193
196
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
194
197
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}`),
195
198
  method: "GET",
196
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
199
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
197
200
  contentType: "application/json",
198
201
  queryParameters: _queryParams,
199
202
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -248,7 +251,7 @@ class Tools {
248
251
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
249
252
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}`),
250
253
  method: "POST",
251
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
254
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
252
255
  contentType: "application/json",
253
256
  body: serializers.empathicVoice.PostedUserDefinedToolVersion.jsonOrThrow(request, {
254
257
  unrecognizedObjectKeys: "strip",
@@ -299,7 +302,7 @@ class Tools {
299
302
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
300
303
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}`),
301
304
  method: "DELETE",
302
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
305
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
303
306
  contentType: "application/json",
304
307
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
305
308
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -345,7 +348,7 @@ class Tools {
345
348
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
346
349
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}`),
347
350
  method: "PATCH",
348
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
351
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
349
352
  contentType: "application/json",
350
353
  body: serializers.empathicVoice.PostedUserDefinedToolName.jsonOrThrow(request, {
351
354
  unrecognizedObjectKeys: "strip",
@@ -393,7 +396,7 @@ class Tools {
393
396
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
394
397
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
395
398
  method: "GET",
396
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
399
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
397
400
  contentType: "application/json",
398
401
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
399
402
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -442,7 +445,7 @@ class Tools {
442
445
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
443
446
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
444
447
  method: "DELETE",
445
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
448
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
446
449
  contentType: "application/json",
447
450
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
448
451
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -489,7 +492,7 @@ class Tools {
489
492
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
490
493
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
491
494
  method: "PATCH",
492
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
495
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
493
496
  contentType: "application/json",
494
497
  body: serializers.empathicVoice.PostedUserDefinedToolVersionDescription.jsonOrThrow(request, {
495
498
  unrecognizedObjectKeys: "strip",
@@ -21,4 +21,8 @@ export interface ToolsListToolsRequest {
21
21
  * Only include the most recent version of each tool in the list.
22
22
  */
23
23
  restrictToMostRecent?: boolean;
24
+ /**
25
+ * Filter to only include tools with this name.
26
+ */
27
+ name?: string;
24
28
  }
@@ -25,7 +25,6 @@ export * from "./ReturnLanguageModel";
25
25
  export * from "./ReturnTimeoutSpec";
26
26
  export * from "./ReturnTimeoutSpecs";
27
27
  export * from "./ReturnVoice";
28
- export * from "./ReturnPrivacySettings";
29
28
  export * from "./PostedCustomVoiceName";
30
29
  export * from "./ReturnPagedUserDefinedTools";
31
30
  export * from "./ReturnPagedPrompts";
@@ -42,7 +41,6 @@ export * from "./ReturnChatGroup";
42
41
  export * from "./ReturnPagedChatGroups";
43
42
  export * from "./ReturnChatGroupPagedChats";
44
43
  export * from "./ReturnChatGroupPagedEvents";
45
- export * from "./ReturnPurgeStats";
46
44
  export * from "./AssistantInput";
47
45
  export * from "./AudioConfiguration";
48
46
  export * from "./AudioInput";