hume 0.9.18 → 0.10.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 (132) hide show
  1. package/.mock/definition/empathic-voice/__package__.yml +151 -224
  2. package/.mock/definition/empathic-voice/chat.yml +16 -16
  3. package/.mock/definition/empathic-voice/chatGroups.yml +10 -4
  4. package/.mock/definition/empathic-voice/chats.yml +3 -3
  5. package/.mock/definition/empathic-voice/configs.yml +23 -17
  6. package/.mock/definition/empathic-voice/customVoices.yml +9 -6
  7. package/.mock/definition/empathic-voice/prompts.yml +9 -9
  8. package/.mock/definition/empathic-voice/tools.yml +12 -9
  9. package/.mock/definition/expression-measurement/stream/stream.yml +206 -206
  10. package/.mock/definition/tts/__package__.yml +32 -3
  11. package/.mock/definition/tts/voices.yml +4 -2
  12. package/.mock/fern.config.json +1 -1
  13. package/api/resources/empathicVoice/resources/chat/types/index.d.ts +1 -1
  14. package/api/resources/empathicVoice/resources/chat/types/index.js +1 -1
  15. package/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +2 -2
  16. package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +139 -115
  17. package/api/resources/empathicVoice/resources/chats/client/Client.js +3 -3
  18. package/api/resources/empathicVoice/resources/configs/client/Client.d.ts +4 -4
  19. package/api/resources/empathicVoice/resources/configs/client/Client.js +146 -122
  20. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +1 -1
  21. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +1 -1
  22. package/api/resources/empathicVoice/resources/customVoices/client/Client.d.ts +1 -1
  23. package/api/resources/empathicVoice/resources/customVoices/client/Client.js +72 -60
  24. package/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
  25. package/api/resources/empathicVoice/resources/tools/client/Client.d.ts +1 -1
  26. package/api/resources/empathicVoice/resources/tools/client/Client.js +75 -63
  27. package/api/resources/empathicVoice/types/{ReturnLanguageModelModelResource.d.ts → LanguageModelType.d.ts} +3 -6
  28. package/api/resources/empathicVoice/types/{ReturnLanguageModelModelResource.js → LanguageModelType.js} +3 -3
  29. package/api/resources/empathicVoice/types/{PostedLanguageModelModelProvider.d.ts → ModelProviderEnum.d.ts} +2 -5
  30. package/{dist/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.js → api/resources/empathicVoice/types/ModelProviderEnum.js} +2 -2
  31. package/api/resources/empathicVoice/types/PostedLanguageModel.d.ts +2 -2
  32. package/api/resources/empathicVoice/types/ReturnLanguageModel.d.ts +2 -2
  33. package/api/resources/empathicVoice/types/index.d.ts +6 -8
  34. package/api/resources/empathicVoice/types/index.js +6 -8
  35. package/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  36. package/api/resources/expressionMeasurement/resources/stream/resources/stream/types/index.d.ts +4 -4
  37. package/api/resources/expressionMeasurement/resources/stream/resources/stream/types/index.js +4 -4
  38. package/api/resources/tts/client/Client.js +4 -4
  39. package/api/resources/tts/resources/voices/client/Client.d.ts +1 -1
  40. package/api/resources/tts/resources/voices/client/Client.js +72 -60
  41. package/api/resources/tts/types/PostedTts.d.ts +7 -0
  42. package/api/resources/tts/types/SnippetAudioChunk.d.ts +6 -2
  43. package/dist/api/resources/empathicVoice/resources/chat/types/index.d.ts +1 -1
  44. package/dist/api/resources/empathicVoice/resources/chat/types/index.js +1 -1
  45. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +2 -2
  46. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +139 -115
  47. package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +3 -3
  48. package/dist/api/resources/empathicVoice/resources/configs/client/Client.d.ts +4 -4
  49. package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +146 -122
  50. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +1 -1
  51. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +1 -1
  52. package/dist/api/resources/empathicVoice/resources/customVoices/client/Client.d.ts +1 -1
  53. package/dist/api/resources/empathicVoice/resources/customVoices/client/Client.js +72 -60
  54. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
  55. package/dist/api/resources/empathicVoice/resources/tools/client/Client.d.ts +1 -1
  56. package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +75 -63
  57. package/dist/api/resources/empathicVoice/types/{ReturnLanguageModelModelResource.d.ts → LanguageModelType.d.ts} +3 -6
  58. package/dist/api/resources/empathicVoice/types/{ReturnLanguageModelModelResource.js → LanguageModelType.js} +3 -3
  59. package/dist/api/resources/empathicVoice/types/{PostedLanguageModelModelProvider.d.ts → ModelProviderEnum.d.ts} +2 -5
  60. package/{api/resources/empathicVoice/types/PostedLanguageModelModelProvider.js → dist/api/resources/empathicVoice/types/ModelProviderEnum.js} +2 -2
  61. package/dist/api/resources/empathicVoice/types/PostedLanguageModel.d.ts +2 -2
  62. package/dist/api/resources/empathicVoice/types/ReturnLanguageModel.d.ts +2 -2
  63. package/dist/api/resources/empathicVoice/types/index.d.ts +6 -8
  64. package/dist/api/resources/empathicVoice/types/index.js +6 -8
  65. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  66. package/dist/api/resources/expressionMeasurement/resources/stream/resources/stream/types/index.d.ts +4 -4
  67. package/dist/api/resources/expressionMeasurement/resources/stream/resources/stream/types/index.js +4 -4
  68. package/dist/api/resources/tts/client/Client.js +4 -4
  69. package/dist/api/resources/tts/resources/voices/client/Client.d.ts +1 -1
  70. package/dist/api/resources/tts/resources/voices/client/Client.js +72 -60
  71. package/dist/api/resources/tts/types/PostedTts.d.ts +7 -0
  72. package/dist/api/resources/tts/types/SnippetAudioChunk.d.ts +6 -2
  73. package/dist/serialization/resources/empathicVoice/resources/chat/types/index.d.ts +1 -1
  74. package/dist/serialization/resources/empathicVoice/resources/chat/types/index.js +1 -1
  75. package/dist/serialization/resources/empathicVoice/types/LanguageModelType.d.ts +10 -0
  76. package/{serialization/resources/empathicVoice/types/ReturnLanguageModelModelResource.js → dist/serialization/resources/empathicVoice/types/LanguageModelType.js} +3 -3
  77. package/dist/serialization/resources/empathicVoice/types/{PostedLanguageModelModelProvider.d.ts → ModelProviderEnum.d.ts} +2 -2
  78. package/dist/serialization/resources/empathicVoice/types/{ReturnLanguageModelModelProvider.js → ModelProviderEnum.js} +2 -2
  79. package/dist/serialization/resources/empathicVoice/types/PostedLanguageModel.d.ts +4 -4
  80. package/dist/serialization/resources/empathicVoice/types/PostedLanguageModel.js +4 -4
  81. package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModel.d.ts +4 -4
  82. package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModel.js +4 -4
  83. package/dist/serialization/resources/empathicVoice/types/index.d.ts +6 -8
  84. package/dist/serialization/resources/empathicVoice/types/index.js +6 -8
  85. package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/index.d.ts +4 -4
  86. package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/index.js +4 -4
  87. package/dist/serialization/resources/tts/types/PostedTts.d.ts +1 -0
  88. package/dist/serialization/resources/tts/types/PostedTts.js +1 -0
  89. package/dist/serialization/resources/tts/types/SnippetAudioChunk.d.ts +2 -0
  90. package/dist/serialization/resources/tts/types/SnippetAudioChunk.js +2 -0
  91. package/dist/version.d.ts +1 -1
  92. package/dist/version.js +1 -1
  93. package/package.json +1 -1
  94. package/reference.md +93 -16
  95. package/serialization/resources/empathicVoice/resources/chat/types/index.d.ts +1 -1
  96. package/serialization/resources/empathicVoice/resources/chat/types/index.js +1 -1
  97. package/serialization/resources/empathicVoice/types/LanguageModelType.d.ts +10 -0
  98. package/{dist/serialization/resources/empathicVoice/types/ReturnLanguageModelModelResource.js → serialization/resources/empathicVoice/types/LanguageModelType.js} +3 -3
  99. package/{dist/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts → serialization/resources/empathicVoice/types/ModelProviderEnum.d.ts} +2 -2
  100. package/{dist/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.js → serialization/resources/empathicVoice/types/ModelProviderEnum.js} +2 -2
  101. package/serialization/resources/empathicVoice/types/PostedLanguageModel.d.ts +4 -4
  102. package/serialization/resources/empathicVoice/types/PostedLanguageModel.js +4 -4
  103. package/serialization/resources/empathicVoice/types/ReturnLanguageModel.d.ts +4 -4
  104. package/serialization/resources/empathicVoice/types/ReturnLanguageModel.js +4 -4
  105. package/serialization/resources/empathicVoice/types/index.d.ts +6 -8
  106. package/serialization/resources/empathicVoice/types/index.js +6 -8
  107. package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/index.d.ts +4 -4
  108. package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/index.js +4 -4
  109. package/serialization/resources/tts/types/PostedTts.d.ts +1 -0
  110. package/serialization/resources/tts/types/PostedTts.js +1 -0
  111. package/serialization/resources/tts/types/SnippetAudioChunk.d.ts +2 -0
  112. package/serialization/resources/tts/types/SnippetAudioChunk.js +2 -0
  113. package/version.d.ts +1 -1
  114. package/version.js +1 -1
  115. package/api/resources/empathicVoice/types/PostedLanguageModelModelResource.d.ts +0 -34
  116. package/api/resources/empathicVoice/types/PostedLanguageModelModelResource.js +0 -33
  117. package/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +0 -17
  118. package/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +0 -16
  119. package/dist/api/resources/empathicVoice/types/PostedLanguageModelModelResource.d.ts +0 -34
  120. package/dist/api/resources/empathicVoice/types/PostedLanguageModelModelResource.js +0 -33
  121. package/dist/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +0 -17
  122. package/dist/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +0 -16
  123. package/dist/serialization/resources/empathicVoice/types/PostedLanguageModelModelResource.d.ts +0 -10
  124. package/dist/serialization/resources/empathicVoice/types/PostedLanguageModelModelResource.js +0 -67
  125. package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModelModelResource.d.ts +0 -10
  126. package/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +0 -10
  127. package/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +0 -50
  128. package/serialization/resources/empathicVoice/types/PostedLanguageModelModelResource.d.ts +0 -10
  129. package/serialization/resources/empathicVoice/types/PostedLanguageModelModelResource.js +0 -67
  130. package/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +0 -10
  131. package/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +0 -50
  132. package/serialization/resources/empathicVoice/types/ReturnLanguageModelModelResource.d.ts +0 -10
@@ -74,66 +74,78 @@ class CustomVoices {
74
74
  */
75
75
  listCustomVoices() {
76
76
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
77
- var _a, _b, _c;
78
- const { pageNumber, pageSize, name } = request;
79
- const _queryParams = {};
80
- if (pageNumber != null) {
81
- _queryParams["page_number"] = pageNumber.toString();
82
- }
83
- if (pageSize != null) {
84
- _queryParams["page_size"] = pageSize.toString();
85
- }
86
- if (name != null) {
87
- _queryParams["name"] = name;
88
- }
89
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
90
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, "v0/evi/custom_voices"),
91
- method: "GET",
92
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.18", "User-Agent": "hume/0.9.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
93
- contentType: "application/json",
94
- queryParameters: _queryParams,
95
- requestType: "json",
96
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
97
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
98
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
99
- });
100
- if (_response.ok) {
101
- return serializers.empathicVoice.ReturnPagedCustomVoices.parseOrThrow(_response.body, {
102
- unrecognizedObjectKeys: "passthrough",
103
- allowUnrecognizedUnionMembers: true,
104
- allowUnrecognizedEnumValues: true,
105
- breadcrumbsPrefix: ["response"],
77
+ const list = (request) => __awaiter(this, void 0, void 0, function* () {
78
+ var _a, _b, _c;
79
+ const { pageNumber, pageSize, name } = request;
80
+ const _queryParams = {};
81
+ if (pageNumber != null) {
82
+ _queryParams["page_number"] = pageNumber.toString();
83
+ }
84
+ if (pageSize != null) {
85
+ _queryParams["page_size"] = pageSize.toString();
86
+ }
87
+ if (name != null) {
88
+ _queryParams["name"] = name;
89
+ }
90
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
91
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, "v0/evi/custom_voices"),
92
+ method: "GET",
93
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
94
+ contentType: "application/json",
95
+ queryParameters: _queryParams,
96
+ requestType: "json",
97
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
98
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
99
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
106
100
  });
107
- }
108
- if (_response.error.reason === "status-code") {
109
- switch (_response.error.statusCode) {
110
- case 400:
111
- throw new Hume.empathicVoice.BadRequestError(serializers.empathicVoice.ErrorResponse.parseOrThrow(_response.error.body, {
112
- unrecognizedObjectKeys: "passthrough",
113
- allowUnrecognizedUnionMembers: true,
114
- allowUnrecognizedEnumValues: true,
115
- breadcrumbsPrefix: ["response"],
116
- }));
117
- default:
101
+ if (_response.ok) {
102
+ return serializers.empathicVoice.ReturnPagedCustomVoices.parseOrThrow(_response.body, {
103
+ unrecognizedObjectKeys: "passthrough",
104
+ allowUnrecognizedUnionMembers: true,
105
+ allowUnrecognizedEnumValues: true,
106
+ breadcrumbsPrefix: ["response"],
107
+ });
108
+ }
109
+ if (_response.error.reason === "status-code") {
110
+ switch (_response.error.statusCode) {
111
+ case 400:
112
+ throw new Hume.empathicVoice.BadRequestError(serializers.empathicVoice.ErrorResponse.parseOrThrow(_response.error.body, {
113
+ unrecognizedObjectKeys: "passthrough",
114
+ allowUnrecognizedUnionMembers: true,
115
+ allowUnrecognizedEnumValues: true,
116
+ breadcrumbsPrefix: ["response"],
117
+ }));
118
+ default:
119
+ throw new errors.HumeError({
120
+ statusCode: _response.error.statusCode,
121
+ body: _response.error.body,
122
+ });
123
+ }
124
+ }
125
+ switch (_response.error.reason) {
126
+ case "non-json":
118
127
  throw new errors.HumeError({
119
128
  statusCode: _response.error.statusCode,
120
- body: _response.error.body,
129
+ body: _response.error.rawBody,
130
+ });
131
+ case "timeout":
132
+ throw new errors.HumeTimeoutError("Timeout exceeded when calling GET /v0/evi/custom_voices.");
133
+ case "unknown":
134
+ throw new errors.HumeError({
135
+ message: _response.error.errorMessage,
121
136
  });
122
137
  }
123
- }
124
- switch (_response.error.reason) {
125
- case "non-json":
126
- throw new errors.HumeError({
127
- statusCode: _response.error.statusCode,
128
- body: _response.error.rawBody,
129
- });
130
- case "timeout":
131
- throw new errors.HumeTimeoutError("Timeout exceeded when calling GET /v0/evi/custom_voices.");
132
- case "unknown":
133
- throw new errors.HumeError({
134
- message: _response.error.errorMessage,
135
- });
136
- }
138
+ });
139
+ let _offset = (request === null || request === void 0 ? void 0 : request.pageNumber) != null ? request === null || request === void 0 ? void 0 : request.pageNumber : 1;
140
+ return new core.Pageable({
141
+ response: yield list(request),
142
+ hasNextPage: (response) => { var _a; return ((_a = response === null || response === void 0 ? void 0 : response.customVoicesPage) !== null && _a !== void 0 ? _a : []).length > 0; },
143
+ getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.customVoicesPage) !== null && _a !== void 0 ? _a : []; },
144
+ loadPage: (_response) => {
145
+ _offset += 1;
146
+ return list(core.setObjectProperty(request, "pageNumber", _offset));
147
+ },
148
+ });
137
149
  });
138
150
  }
139
151
  /**
@@ -159,7 +171,7 @@ class CustomVoices {
159
171
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
160
172
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, "v0/evi/custom_voices"),
161
173
  method: "POST",
162
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.18", "User-Agent": "hume/0.9.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
174
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
163
175
  contentType: "application/json",
164
176
  requestType: "json",
165
177
  body: serializers.empathicVoice.PostedCustomVoice.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -225,7 +237,7 @@ class CustomVoices {
225
237
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
226
238
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/custom_voices/${encodeURIComponent(id)}`),
227
239
  method: "GET",
228
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.18", "User-Agent": "hume/0.9.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
240
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
229
241
  contentType: "application/json",
230
242
  requestType: "json",
231
243
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -295,7 +307,7 @@ class CustomVoices {
295
307
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
296
308
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/custom_voices/${encodeURIComponent(id)}`),
297
309
  method: "POST",
298
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.18", "User-Agent": "hume/0.9.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
310
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
299
311
  contentType: "application/json",
300
312
  requestType: "json",
301
313
  body: serializers.empathicVoice.PostedCustomVoice.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -361,7 +373,7 @@ class CustomVoices {
361
373
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
362
374
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/custom_voices/${encodeURIComponent(id)}`),
363
375
  method: "DELETE",
364
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.18", "User-Agent": "hume/0.9.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
376
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
365
377
  contentType: "application/json",
366
378
  requestType: "json",
367
379
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -424,7 +436,7 @@ class CustomVoices {
424
436
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
425
437
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/custom_voices/${encodeURIComponent(id)}`),
426
438
  method: "PATCH",
427
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.18", "User-Agent": "hume/0.9.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
439
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
428
440
  contentType: "application/json",
429
441
  requestType: "json",
430
442
  body: serializers.empathicVoice.PostedCustomVoiceName.jsonOrThrow(request, {
@@ -96,7 +96,7 @@ class Prompts {
96
96
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
97
97
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, "v0/evi/prompts"),
98
98
  method: "GET",
99
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.18", "User-Agent": "hume/0.9.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
99
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
100
100
  contentType: "application/json",
101
101
  queryParameters: _queryParams,
102
102
  requestType: "json",
@@ -176,7 +176,7 @@ class Prompts {
176
176
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
177
177
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, "v0/evi/prompts"),
178
178
  method: "POST",
179
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.18", "User-Agent": "hume/0.9.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
179
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
180
180
  contentType: "application/json",
181
181
  requestType: "json",
182
182
  body: serializers.empathicVoice.PostedPrompt.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -254,7 +254,7 @@ class Prompts {
254
254
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
255
255
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}`),
256
256
  method: "GET",
257
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.18", "User-Agent": "hume/0.9.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
257
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
258
258
  contentType: "application/json",
259
259
  queryParameters: _queryParams,
260
260
  requestType: "json",
@@ -324,7 +324,7 @@ class Prompts {
324
324
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
325
325
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}`),
326
326
  method: "POST",
327
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.18", "User-Agent": "hume/0.9.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
327
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
328
328
  contentType: "application/json",
329
329
  requestType: "json",
330
330
  body: serializers.empathicVoice.PostedPromptVersion.jsonOrThrow(request, {
@@ -392,7 +392,7 @@ class Prompts {
392
392
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
393
393
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}`),
394
394
  method: "DELETE",
395
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.18", "User-Agent": "hume/0.9.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
395
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
396
396
  contentType: "application/json",
397
397
  requestType: "json",
398
398
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -455,7 +455,7 @@ class Prompts {
455
455
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
456
456
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}`),
457
457
  method: "PATCH",
458
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.18", "User-Agent": "hume/0.9.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
458
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
459
459
  contentType: "application/json",
460
460
  requestType: "json",
461
461
  body: serializers.empathicVoice.PostedPromptName.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -522,7 +522,7 @@ class Prompts {
522
522
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
523
523
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
524
524
  method: "GET",
525
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.18", "User-Agent": "hume/0.9.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
525
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
526
526
  contentType: "application/json",
527
527
  requestType: "json",
528
528
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -592,7 +592,7 @@ class Prompts {
592
592
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
593
593
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
594
594
  method: "DELETE",
595
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.18", "User-Agent": "hume/0.9.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
595
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
596
596
  contentType: "application/json",
597
597
  requestType: "json",
598
598
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -660,7 +660,7 @@ class Prompts {
660
660
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
661
661
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
662
662
  method: "PATCH",
663
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.18", "User-Agent": "hume/0.9.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
663
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
664
664
  contentType: "application/json",
665
665
  requestType: "json",
666
666
  body: serializers.empathicVoice.PostedPromptVersionDescription.jsonOrThrow(request, {
@@ -77,7 +77,7 @@ export declare class Tools {
77
77
  * @example
78
78
  * await client.empathicVoice.tools.listToolVersions("00183a3f-79ba-413d-9f3b-609864268bea")
79
79
  */
80
- listToolVersions(id: string, request?: Hume.empathicVoice.ToolsListToolVersionsRequest, requestOptions?: Tools.RequestOptions): Promise<Hume.empathicVoice.ReturnPagedUserDefinedTools>;
80
+ listToolVersions(id: string, request?: Hume.empathicVoice.ToolsListToolVersionsRequest, requestOptions?: Tools.RequestOptions): Promise<core.Page<Hume.empathicVoice.ReturnUserDefinedTool | undefined>>;
81
81
  /**
82
82
  * Updates a **Tool** by creating a new version of the **Tool**.
83
83
  *
@@ -96,7 +96,7 @@ class Tools {
96
96
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
97
97
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, "v0/evi/tools"),
98
98
  method: "GET",
99
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.18", "User-Agent": "hume/0.9.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
99
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
100
100
  contentType: "application/json",
101
101
  queryParameters: _queryParams,
102
102
  requestType: "json",
@@ -179,7 +179,7 @@ class Tools {
179
179
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
180
180
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, "v0/evi/tools"),
181
181
  method: "POST",
182
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.18", "User-Agent": "hume/0.9.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
182
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
183
183
  contentType: "application/json",
184
184
  requestType: "json",
185
185
  body: serializers.empathicVoice.PostedUserDefinedTool.jsonOrThrow(request, {
@@ -244,66 +244,78 @@ class Tools {
244
244
  */
245
245
  listToolVersions(id_1) {
246
246
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
247
- var _a, _b, _c;
248
- const { pageNumber, pageSize, restrictToMostRecent } = request;
249
- const _queryParams = {};
250
- if (pageNumber != null) {
251
- _queryParams["page_number"] = pageNumber.toString();
252
- }
253
- if (pageSize != null) {
254
- _queryParams["page_size"] = pageSize.toString();
255
- }
256
- if (restrictToMostRecent != null) {
257
- _queryParams["restrict_to_most_recent"] = restrictToMostRecent.toString();
258
- }
259
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
260
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}`),
261
- method: "GET",
262
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.18", "User-Agent": "hume/0.9.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
263
- contentType: "application/json",
264
- queryParameters: _queryParams,
265
- requestType: "json",
266
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
267
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
268
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
269
- });
270
- if (_response.ok) {
271
- return serializers.empathicVoice.ReturnPagedUserDefinedTools.parseOrThrow(_response.body, {
272
- unrecognizedObjectKeys: "passthrough",
273
- allowUnrecognizedUnionMembers: true,
274
- allowUnrecognizedEnumValues: true,
275
- breadcrumbsPrefix: ["response"],
247
+ const list = (request) => __awaiter(this, void 0, void 0, function* () {
248
+ var _a, _b, _c;
249
+ const { pageNumber, pageSize, restrictToMostRecent } = request;
250
+ const _queryParams = {};
251
+ if (pageNumber != null) {
252
+ _queryParams["page_number"] = pageNumber.toString();
253
+ }
254
+ if (pageSize != null) {
255
+ _queryParams["page_size"] = pageSize.toString();
256
+ }
257
+ if (restrictToMostRecent != null) {
258
+ _queryParams["restrict_to_most_recent"] = restrictToMostRecent.toString();
259
+ }
260
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
261
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}`),
262
+ method: "GET",
263
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
264
+ contentType: "application/json",
265
+ queryParameters: _queryParams,
266
+ requestType: "json",
267
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
268
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
269
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
276
270
  });
277
- }
278
- if (_response.error.reason === "status-code") {
279
- switch (_response.error.statusCode) {
280
- case 400:
281
- throw new Hume.empathicVoice.BadRequestError(serializers.empathicVoice.ErrorResponse.parseOrThrow(_response.error.body, {
282
- unrecognizedObjectKeys: "passthrough",
283
- allowUnrecognizedUnionMembers: true,
284
- allowUnrecognizedEnumValues: true,
285
- breadcrumbsPrefix: ["response"],
286
- }));
287
- default:
271
+ if (_response.ok) {
272
+ return serializers.empathicVoice.ReturnPagedUserDefinedTools.parseOrThrow(_response.body, {
273
+ unrecognizedObjectKeys: "passthrough",
274
+ allowUnrecognizedUnionMembers: true,
275
+ allowUnrecognizedEnumValues: true,
276
+ breadcrumbsPrefix: ["response"],
277
+ });
278
+ }
279
+ if (_response.error.reason === "status-code") {
280
+ switch (_response.error.statusCode) {
281
+ case 400:
282
+ throw new Hume.empathicVoice.BadRequestError(serializers.empathicVoice.ErrorResponse.parseOrThrow(_response.error.body, {
283
+ unrecognizedObjectKeys: "passthrough",
284
+ allowUnrecognizedUnionMembers: true,
285
+ allowUnrecognizedEnumValues: true,
286
+ breadcrumbsPrefix: ["response"],
287
+ }));
288
+ default:
289
+ throw new errors.HumeError({
290
+ statusCode: _response.error.statusCode,
291
+ body: _response.error.body,
292
+ });
293
+ }
294
+ }
295
+ switch (_response.error.reason) {
296
+ case "non-json":
288
297
  throw new errors.HumeError({
289
298
  statusCode: _response.error.statusCode,
290
- body: _response.error.body,
299
+ body: _response.error.rawBody,
300
+ });
301
+ case "timeout":
302
+ throw new errors.HumeTimeoutError("Timeout exceeded when calling GET /v0/evi/tools/{id}.");
303
+ case "unknown":
304
+ throw new errors.HumeError({
305
+ message: _response.error.errorMessage,
291
306
  });
292
307
  }
293
- }
294
- switch (_response.error.reason) {
295
- case "non-json":
296
- throw new errors.HumeError({
297
- statusCode: _response.error.statusCode,
298
- body: _response.error.rawBody,
299
- });
300
- case "timeout":
301
- throw new errors.HumeTimeoutError("Timeout exceeded when calling GET /v0/evi/tools/{id}.");
302
- case "unknown":
303
- throw new errors.HumeError({
304
- message: _response.error.errorMessage,
305
- });
306
- }
308
+ });
309
+ let _offset = (request === null || request === void 0 ? void 0 : request.pageNumber) != null ? request === null || request === void 0 ? void 0 : request.pageNumber : 1;
310
+ return new core.Pageable({
311
+ response: yield list(request),
312
+ hasNextPage: (response) => { var _a; return ((_a = response === null || response === void 0 ? void 0 : response.toolsPage) !== null && _a !== void 0 ? _a : []).length > 0; },
313
+ getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.toolsPage) !== null && _a !== void 0 ? _a : []; },
314
+ loadPage: (_response) => {
315
+ _offset += 1;
316
+ return list(core.setObjectProperty(request, "pageNumber", _offset));
317
+ },
318
+ });
307
319
  });
308
320
  }
309
321
  /**
@@ -331,7 +343,7 @@ class Tools {
331
343
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
332
344
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}`),
333
345
  method: "POST",
334
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.18", "User-Agent": "hume/0.9.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
346
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
335
347
  contentType: "application/json",
336
348
  requestType: "json",
337
349
  body: serializers.empathicVoice.PostedUserDefinedToolVersion.jsonOrThrow(request, {
@@ -399,7 +411,7 @@ class Tools {
399
411
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
400
412
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}`),
401
413
  method: "DELETE",
402
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.18", "User-Agent": "hume/0.9.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
414
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
403
415
  contentType: "application/json",
404
416
  requestType: "json",
405
417
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -462,7 +474,7 @@ class Tools {
462
474
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
463
475
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}`),
464
476
  method: "PATCH",
465
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.18", "User-Agent": "hume/0.9.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
477
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
466
478
  contentType: "application/json",
467
479
  requestType: "json",
468
480
  body: serializers.empathicVoice.PostedUserDefinedToolName.jsonOrThrow(request, {
@@ -531,7 +543,7 @@ class Tools {
531
543
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
532
544
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
533
545
  method: "GET",
534
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.18", "User-Agent": "hume/0.9.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
546
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
535
547
  contentType: "application/json",
536
548
  requestType: "json",
537
549
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -601,7 +613,7 @@ class Tools {
601
613
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
602
614
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
603
615
  method: "DELETE",
604
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.18", "User-Agent": "hume/0.9.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
616
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
605
617
  contentType: "application/json",
606
618
  requestType: "json",
607
619
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -669,7 +681,7 @@ class Tools {
669
681
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
670
682
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
671
683
  method: "PATCH",
672
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.18", "User-Agent": "hume/0.9.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
684
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
673
685
  contentType: "application/json",
674
686
  requestType: "json",
675
687
  body: serializers.empathicVoice.PostedUserDefinedToolVersionDescription.jsonOrThrow(request, {
@@ -1,12 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- /**
5
- * String that specifies the language model to use with `model_provider`.
6
- */
7
- export type ReturnLanguageModelModelResource = "claude-3-7-sonnet" | "claude-3-5-sonnet-latest" | "claude-3-5-haiku-latest" | "claude-3-5-sonnet-20240620" | "claude-3-opus-20240229" | "claude-3-sonnet-20240229" | "claude-3-haiku-20240307" | "us.anthropic.claude-3-5-haiku-20241022-v1:0" | "us.anthropic.claude-3-5-sonnet-20240620-v1:0" | "us.anthropic.claude-3-haiku-20240307-v1:0" | "gemini-1.5-pro" | "gemini-1.5-flash" | "gemini-1.5-pro-002" | "gemini-1.5-flash-002" | "gemini-2.0-flash" | "gpt-4-turbo" | "gpt-4-turbo-preview" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo" | "gpt-4o" | "gpt-4o-mini" | "gemma-7b-it" | "llama3-8b-8192" | "llama3-70b-8192" | "llama-3.1-70b-versatile" | "llama-3.3-70b-versatile" | "llama-3.1-8b-instant" | "accounts/fireworks/models/mixtral-8x7b-instruct" | "accounts/fireworks/models/llama-v3p1-405b-instruct" | "accounts/fireworks/models/llama-v3p1-70b-instruct" | "accounts/fireworks/models/llama-v3p1-8b-instruct" | "ellm" | "custom-language-model";
8
- export declare const ReturnLanguageModelModelResource: {
9
- readonly Claude37Sonnet: "claude-3-7-sonnet";
4
+ export type LanguageModelType = "claude-3-7-sonnet-latest" | "claude-3-5-sonnet-latest" | "claude-3-5-haiku-latest" | "claude-3-5-sonnet-20240620" | "claude-3-opus-20240229" | "claude-3-sonnet-20240229" | "claude-3-haiku-20240307" | "us.anthropic.claude-3-5-haiku-20241022-v1:0" | "us.anthropic.claude-3-5-sonnet-20240620-v1:0" | "us.anthropic.claude-3-haiku-20240307-v1:0" | "gemini-1.5-pro" | "gemini-1.5-flash" | "gemini-1.5-pro-002" | "gemini-1.5-flash-002" | "gemini-2.0-flash" | "gpt-4-turbo" | "gpt-4-turbo-preview" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo" | "gpt-4o" | "gpt-4o-mini" | "gemma-7b-it" | "llama3-8b-8192" | "llama3-70b-8192" | "llama-3.1-70b-versatile" | "llama-3.3-70b-versatile" | "llama-3.1-8b-instant" | "accounts/fireworks/models/mixtral-8x7b-instruct" | "accounts/fireworks/models/llama-v3p1-405b-instruct" | "accounts/fireworks/models/llama-v3p1-70b-instruct" | "accounts/fireworks/models/llama-v3p1-8b-instruct" | "ellm" | "custom-language-model";
5
+ export declare const LanguageModelType: {
6
+ readonly Claude37SonnetLatest: "claude-3-7-sonnet-latest";
10
7
  readonly Claude35SonnetLatest: "claude-3-5-sonnet-latest";
11
8
  readonly Claude35HaikuLatest: "claude-3-5-haiku-latest";
12
9
  readonly Claude35Sonnet20240620: "claude-3-5-sonnet-20240620";
@@ -3,9 +3,9 @@
3
3
  * This file was auto-generated by Fern from our API Definition.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ReturnLanguageModelModelResource = void 0;
7
- exports.ReturnLanguageModelModelResource = {
8
- Claude37Sonnet: "claude-3-7-sonnet",
6
+ exports.LanguageModelType = void 0;
7
+ exports.LanguageModelType = {
8
+ Claude37SonnetLatest: "claude-3-7-sonnet-latest",
9
9
  Claude35SonnetLatest: "claude-3-5-sonnet-latest",
10
10
  Claude35HaikuLatest: "claude-3-5-haiku-latest",
11
11
  Claude35Sonnet20240620: "claude-3-5-sonnet-20240620",
@@ -1,11 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- /**
5
- * The provider of the supplemental language model.
6
- */
7
- export type PostedLanguageModelModelProvider = "GROQ" | "OPEN_AI" | "FIREWORKS" | "ANTHROPIC" | "CUSTOM_LANGUAGE_MODEL" | "GOOGLE" | "HUME_AI" | "AMAZON_BEDROCK";
8
- export declare const PostedLanguageModelModelProvider: {
4
+ export type ModelProviderEnum = "GROQ" | "OPEN_AI" | "FIREWORKS" | "ANTHROPIC" | "CUSTOM_LANGUAGE_MODEL" | "GOOGLE" | "HUME_AI" | "AMAZON_BEDROCK";
5
+ export declare const ModelProviderEnum: {
9
6
  readonly Groq: "GROQ";
10
7
  readonly OpenAi: "OPEN_AI";
11
8
  readonly Fireworks: "FIREWORKS";
@@ -3,8 +3,8 @@
3
3
  * This file was auto-generated by Fern from our API Definition.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.PostedLanguageModelModelProvider = void 0;
7
- exports.PostedLanguageModelModelProvider = {
6
+ exports.ModelProviderEnum = void 0;
7
+ exports.ModelProviderEnum = {
8
8
  Groq: "GROQ",
9
9
  OpenAi: "OPEN_AI",
10
10
  Fireworks: "FIREWORKS",
@@ -7,9 +7,9 @@ import * as Hume from "../../../index";
7
7
  */
8
8
  export interface PostedLanguageModel {
9
9
  /** The provider of the supplemental language model. */
10
- modelProvider?: Hume.empathicVoice.PostedLanguageModelModelProvider;
10
+ modelProvider?: Hume.empathicVoice.ModelProviderEnum;
11
11
  /** String that specifies the language model to use with `model_provider`. */
12
- modelResource?: Hume.empathicVoice.PostedLanguageModelModelResource;
12
+ modelResource?: Hume.empathicVoice.LanguageModelType;
13
13
  /**
14
14
  * The model temperature, with values between 0 to 1 (inclusive).
15
15
  *