hume 0.5.15 → 0.5.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +0 -1
- package/api/resources/customModels/client/Client.d.ts +0 -1
- package/api/resources/customModels/resources/datasets/client/Client.d.ts +0 -1
- package/api/resources/customModels/resources/datasets/client/Client.js +9 -27
- package/api/resources/customModels/resources/files/client/Client.d.ts +0 -1
- package/api/resources/customModels/resources/files/client/Client.js +7 -21
- package/api/resources/customModels/resources/jobs/client/Client.d.ts +0 -1
- package/api/resources/customModels/resources/jobs/client/Client.js +2 -6
- package/api/resources/customModels/resources/models/client/Client.d.ts +0 -1
- package/api/resources/customModels/resources/models/client/Client.js +6 -18
- package/api/resources/empathicVoice/client/Client.d.ts +0 -1
- package/api/resources/empathicVoice/resources/chat/types/PublishEvent.d.ts +1 -1
- package/api/resources/empathicVoice/resources/chats/client/Client.d.ts +1 -2
- package/api/resources/empathicVoice/resources/chats/client/Client.js +3 -7
- package/api/resources/empathicVoice/resources/configs/client/Client.d.ts +0 -1
- package/api/resources/empathicVoice/resources/configs/client/Client.js +9 -27
- package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +1 -0
- package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +1 -0
- package/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +1 -2
- package/api/resources/empathicVoice/resources/prompts/client/Client.js +10 -28
- package/api/resources/empathicVoice/resources/tools/client/Client.d.ts +1 -2
- package/api/resources/empathicVoice/resources/tools/client/Client.js +10 -28
- package/api/resources/empathicVoice/types/AssistantEnd.d.ts +2 -0
- package/api/resources/empathicVoice/types/AssistantInput.d.ts +1 -0
- package/api/resources/empathicVoice/types/AssistantMessage.d.ts +1 -0
- package/api/resources/empathicVoice/types/AudioInput.d.ts +1 -0
- package/api/resources/empathicVoice/types/AudioOutput.d.ts +1 -0
- package/api/resources/empathicVoice/types/BuiltInTool.d.ts +4 -0
- package/api/resources/empathicVoice/types/BuiltinToolConfig.d.ts +8 -0
- package/api/resources/empathicVoice/types/Context.d.ts +10 -0
- package/api/resources/empathicVoice/types/Context.js +5 -0
- package/api/resources/empathicVoice/types/ContextType.d.ts +9 -0
- package/api/resources/empathicVoice/types/ContextType.js +11 -0
- package/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +11 -0
- package/api/resources/empathicVoice/types/PauseAssistantMessage.js +5 -0
- package/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +2 -2
- package/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +1 -1
- package/api/resources/empathicVoice/types/PostedVoice.d.ts +4 -3
- package/api/resources/empathicVoice/types/PostedVoiceName.d.ts +11 -0
- package/api/resources/empathicVoice/types/PostedVoiceName.js +10 -0
- package/api/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +11 -0
- package/api/resources/empathicVoice/types/ResumeAssistantMessage.js +5 -0
- package/api/resources/empathicVoice/types/ReturnChat.d.ts +2 -0
- package/api/resources/empathicVoice/types/{ReturnChatWithPagedEvents.d.ts → ReturnChatPagedEvents.d.ts} +1 -1
- package/api/resources/empathicVoice/types/ReturnChatPagedEvents.js +5 -0
- package/api/resources/empathicVoice/types/ReturnConfig.d.ts +1 -0
- package/api/resources/empathicVoice/types/SessionSettings.d.ts +4 -2
- package/api/resources/empathicVoice/types/Tool.d.ts +6 -6
- package/api/resources/empathicVoice/types/ToolCallMessage.d.ts +5 -4
- package/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +7 -6
- package/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +7 -3
- package/api/resources/empathicVoice/types/UserInput.d.ts +1 -0
- package/api/resources/empathicVoice/types/UserInterruption.d.ts +2 -0
- package/api/resources/empathicVoice/types/WebSocketError.d.ts +1 -0
- package/api/resources/empathicVoice/types/index.d.ts +14 -7
- package/api/resources/empathicVoice/types/index.js +14 -7
- package/api/resources/expressionMeasurement/client/Client.d.ts +0 -1
- package/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +0 -1
- package/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -18
- package/dist/Client.d.ts +0 -1
- package/dist/api/resources/customModels/client/Client.d.ts +0 -1
- package/dist/api/resources/customModels/resources/datasets/client/Client.d.ts +0 -1
- package/dist/api/resources/customModels/resources/datasets/client/Client.js +9 -27
- package/dist/api/resources/customModels/resources/files/client/Client.d.ts +0 -1
- package/dist/api/resources/customModels/resources/files/client/Client.js +7 -21
- package/dist/api/resources/customModels/resources/jobs/client/Client.d.ts +0 -1
- package/dist/api/resources/customModels/resources/jobs/client/Client.js +2 -6
- package/dist/api/resources/customModels/resources/models/client/Client.d.ts +0 -1
- package/dist/api/resources/customModels/resources/models/client/Client.js +6 -18
- package/dist/api/resources/empathicVoice/client/Client.d.ts +0 -1
- package/dist/api/resources/empathicVoice/resources/chat/types/PublishEvent.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/chats/client/Client.d.ts +1 -2
- package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +3 -7
- package/dist/api/resources/empathicVoice/resources/configs/client/Client.d.ts +0 -1
- package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +9 -27
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +1 -0
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +1 -0
- package/dist/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +1 -2
- package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +10 -28
- package/dist/api/resources/empathicVoice/resources/tools/client/Client.d.ts +1 -2
- package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +10 -28
- package/dist/api/resources/empathicVoice/types/AssistantEnd.d.ts +2 -0
- package/dist/api/resources/empathicVoice/types/AssistantInput.d.ts +1 -0
- package/dist/api/resources/empathicVoice/types/AssistantMessage.d.ts +1 -0
- package/dist/api/resources/empathicVoice/types/AudioInput.d.ts +1 -0
- package/dist/api/resources/empathicVoice/types/AudioOutput.d.ts +1 -0
- package/dist/api/resources/empathicVoice/types/BuiltInTool.d.ts +4 -0
- package/dist/api/resources/empathicVoice/types/BuiltInTool.js +5 -0
- package/dist/api/resources/empathicVoice/types/BuiltinToolConfig.d.ts +8 -0
- package/dist/api/resources/empathicVoice/types/BuiltinToolConfig.js +5 -0
- package/dist/api/resources/empathicVoice/types/Context.d.ts +10 -0
- package/dist/api/resources/empathicVoice/types/Context.js +5 -0
- package/dist/api/resources/empathicVoice/types/ContextType.d.ts +9 -0
- package/dist/api/resources/empathicVoice/types/ContextType.js +11 -0
- package/dist/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +11 -0
- package/dist/api/resources/empathicVoice/types/PauseAssistantMessage.js +5 -0
- package/dist/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +1 -1
- package/dist/api/resources/empathicVoice/types/PostedVoice.d.ts +4 -3
- package/dist/api/resources/empathicVoice/types/PostedVoiceName.d.ts +11 -0
- package/dist/api/resources/empathicVoice/types/PostedVoiceName.js +10 -0
- package/dist/api/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +11 -0
- package/dist/api/resources/empathicVoice/types/ResumeAssistantMessage.js +5 -0
- package/dist/api/resources/empathicVoice/types/ReturnChat.d.ts +2 -0
- package/dist/api/resources/empathicVoice/types/{ReturnChatWithPagedEvents.d.ts → ReturnChatPagedEvents.d.ts} +1 -1
- package/dist/api/resources/empathicVoice/types/ReturnChatPagedEvents.js +5 -0
- package/dist/api/resources/empathicVoice/types/ReturnConfig.d.ts +1 -0
- package/dist/api/resources/empathicVoice/types/SessionSettings.d.ts +4 -2
- package/dist/api/resources/empathicVoice/types/Tool.d.ts +6 -6
- package/dist/api/resources/empathicVoice/types/ToolCallMessage.d.ts +5 -4
- package/dist/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +7 -6
- package/dist/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +7 -3
- package/dist/api/resources/empathicVoice/types/UserInput.d.ts +1 -0
- package/dist/api/resources/empathicVoice/types/UserInterruption.d.ts +2 -0
- package/dist/api/resources/empathicVoice/types/WebSocketError.d.ts +1 -0
- package/dist/api/resources/empathicVoice/types/index.d.ts +14 -7
- package/dist/api/resources/empathicVoice/types/index.js +14 -7
- package/dist/api/resources/expressionMeasurement/client/Client.d.ts +0 -1
- package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +0 -1
- package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -18
- package/dist/serialization/resources/empathicVoice/resources/chat/types/PublishEvent.d.ts +3 -1
- package/dist/serialization/resources/empathicVoice/resources/chat/types/PublishEvent.js +4 -0
- package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +2 -0
- package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +2 -0
- package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +2 -0
- package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +2 -0
- package/dist/serialization/resources/empathicVoice/types/AssistantEnd.d.ts +1 -0
- package/dist/serialization/resources/empathicVoice/types/AssistantEnd.js +1 -0
- package/dist/serialization/resources/empathicVoice/types/BuiltInTool.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/BuiltInTool.js +31 -0
- package/dist/serialization/resources/empathicVoice/types/BuiltinToolConfig.d.ts +14 -0
- package/dist/serialization/resources/empathicVoice/types/BuiltinToolConfig.js +35 -0
- package/dist/serialization/resources/empathicVoice/types/Context.d.ts +14 -0
- package/dist/serialization/resources/empathicVoice/types/Context.js +35 -0
- package/dist/serialization/resources/empathicVoice/types/ContextType.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ContextType.js +31 -0
- package/dist/serialization/resources/empathicVoice/types/PauseAssistantMessage.d.ts +13 -0
- package/dist/serialization/resources/empathicVoice/types/PauseAssistantMessage.js +34 -0
- package/dist/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/PostedVoice.d.ts +3 -2
- package/dist/serialization/resources/empathicVoice/types/PostedVoice.js +3 -2
- package/dist/serialization/resources/empathicVoice/types/PostedVoiceName.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/PostedVoiceName.js +31 -0
- package/dist/serialization/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +13 -0
- package/dist/serialization/resources/empathicVoice/types/ResumeAssistantMessage.js +34 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChat.d.ts +1 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChat.js +1 -0
- package/dist/serialization/resources/empathicVoice/types/{ReturnChatWithPagedEvents.d.ts → ReturnChatPagedEvents.d.ts} +2 -2
- package/dist/serialization/resources/empathicVoice/types/{ReturnChatWithPagedEvents.js → ReturnChatPagedEvents.js} +2 -2
- package/dist/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +2 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnConfig.js +2 -0
- package/dist/serialization/resources/empathicVoice/types/SessionSettings.d.ts +4 -2
- package/dist/serialization/resources/empathicVoice/types/SessionSettings.js +4 -2
- package/dist/serialization/resources/empathicVoice/types/Tool.d.ts +3 -3
- package/dist/serialization/resources/empathicVoice/types/Tool.js +3 -3
- package/dist/serialization/resources/empathicVoice/types/ToolCallMessage.d.ts +3 -3
- package/dist/serialization/resources/empathicVoice/types/ToolCallMessage.js +3 -3
- package/dist/serialization/resources/empathicVoice/types/ToolErrorMessage.d.ts +6 -4
- package/dist/serialization/resources/empathicVoice/types/ToolErrorMessage.js +6 -4
- package/dist/serialization/resources/empathicVoice/types/ToolResponseMessage.d.ts +5 -2
- package/dist/serialization/resources/empathicVoice/types/ToolResponseMessage.js +5 -2
- package/dist/serialization/resources/empathicVoice/types/index.d.ts +14 -7
- package/dist/serialization/resources/empathicVoice/types/index.js +14 -7
- package/package.json +1 -1
- package/serialization/resources/empathicVoice/resources/chat/types/PublishEvent.d.ts +3 -1
- package/serialization/resources/empathicVoice/resources/chat/types/PublishEvent.js +4 -0
- package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +2 -0
- package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +2 -0
- package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +2 -0
- package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +2 -0
- package/serialization/resources/empathicVoice/types/AssistantEnd.d.ts +1 -0
- package/serialization/resources/empathicVoice/types/AssistantEnd.js +1 -0
- package/serialization/resources/empathicVoice/types/BuiltInTool.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/BuiltInTool.js +31 -0
- package/serialization/resources/empathicVoice/types/BuiltinToolConfig.d.ts +14 -0
- package/serialization/resources/empathicVoice/types/BuiltinToolConfig.js +35 -0
- package/serialization/resources/empathicVoice/types/Context.d.ts +14 -0
- package/serialization/resources/empathicVoice/types/Context.js +35 -0
- package/serialization/resources/empathicVoice/types/ContextType.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ContextType.js +31 -0
- package/serialization/resources/empathicVoice/types/PauseAssistantMessage.d.ts +13 -0
- package/serialization/resources/empathicVoice/types/PauseAssistantMessage.js +34 -0
- package/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +1 -1
- package/serialization/resources/empathicVoice/types/PostedVoice.d.ts +3 -2
- package/serialization/resources/empathicVoice/types/PostedVoice.js +3 -2
- package/serialization/resources/empathicVoice/types/PostedVoiceName.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/PostedVoiceName.js +31 -0
- package/serialization/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +13 -0
- package/serialization/resources/empathicVoice/types/ResumeAssistantMessage.js +34 -0
- package/serialization/resources/empathicVoice/types/ReturnChat.d.ts +1 -0
- package/serialization/resources/empathicVoice/types/ReturnChat.js +1 -0
- package/serialization/resources/empathicVoice/types/{ReturnChatWithPagedEvents.d.ts → ReturnChatPagedEvents.d.ts} +2 -2
- package/serialization/resources/empathicVoice/types/{ReturnChatWithPagedEvents.js → ReturnChatPagedEvents.js} +2 -2
- package/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +2 -0
- package/serialization/resources/empathicVoice/types/ReturnConfig.js +2 -0
- package/serialization/resources/empathicVoice/types/SessionSettings.d.ts +4 -2
- package/serialization/resources/empathicVoice/types/SessionSettings.js +4 -2
- package/serialization/resources/empathicVoice/types/Tool.d.ts +3 -3
- package/serialization/resources/empathicVoice/types/Tool.js +3 -3
- package/serialization/resources/empathicVoice/types/ToolCallMessage.d.ts +3 -3
- package/serialization/resources/empathicVoice/types/ToolCallMessage.js +3 -3
- package/serialization/resources/empathicVoice/types/ToolErrorMessage.d.ts +6 -4
- package/serialization/resources/empathicVoice/types/ToolErrorMessage.js +6 -4
- package/serialization/resources/empathicVoice/types/ToolResponseMessage.d.ts +5 -2
- package/serialization/resources/empathicVoice/types/ToolResponseMessage.js +5 -2
- package/serialization/resources/empathicVoice/types/index.d.ts +14 -7
- package/serialization/resources/empathicVoice/types/index.js +14 -7
- /package/api/resources/empathicVoice/types/{ReturnChatWithPagedEvents.js → BuiltInTool.js} +0 -0
- /package/{dist/api/resources/empathicVoice/types/ReturnChatWithPagedEvents.js → api/resources/empathicVoice/types/BuiltinToolConfig.js} +0 -0
|
@@ -72,9 +72,7 @@ class Prompts {
|
|
|
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, "prompts"),
|
|
74
74
|
method: "GET",
|
|
75
|
-
headers: Object.assign({ "X-
|
|
76
|
-
? yield core.Supplier.get(this._options.accountToken)
|
|
77
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "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.5.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
78
76
|
contentType: "application/json",
|
|
79
77
|
queryParameters: _queryParams,
|
|
80
78
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -126,9 +124,7 @@ class Prompts {
|
|
|
126
124
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
127
125
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "prompts"),
|
|
128
126
|
method: "POST",
|
|
129
|
-
headers: Object.assign({ "X-
|
|
130
|
-
? yield core.Supplier.get(this._options.accountToken)
|
|
131
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
127
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
132
128
|
contentType: "application/json",
|
|
133
129
|
body: yield serializers.empathicVoice.PostedPrompt.jsonOrThrow(request, {
|
|
134
130
|
unrecognizedObjectKeys: "strip",
|
|
@@ -167,7 +163,7 @@ class Prompts {
|
|
|
167
163
|
});
|
|
168
164
|
}
|
|
169
165
|
/**
|
|
170
|
-
* @param {string} id
|
|
166
|
+
* @param {string} id - Identifier for a tool. Formatted as a UUID.
|
|
171
167
|
* @param {Hume.empathicVoice.PromptsListPromptVersionsRequest} request
|
|
172
168
|
* @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
|
|
173
169
|
*
|
|
@@ -191,9 +187,7 @@ class Prompts {
|
|
|
191
187
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
192
188
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `prompts/${encodeURIComponent(id)}`),
|
|
193
189
|
method: "GET",
|
|
194
|
-
headers: Object.assign({ "X-
|
|
195
|
-
? yield core.Supplier.get(this._options.accountToken)
|
|
196
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "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.5.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
197
191
|
contentType: "application/json",
|
|
198
192
|
queryParameters: _queryParams,
|
|
199
193
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -245,9 +239,7 @@ class Prompts {
|
|
|
245
239
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
246
240
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `prompts/${encodeURIComponent(id)}`),
|
|
247
241
|
method: "POST",
|
|
248
|
-
headers: Object.assign({ "X-
|
|
249
|
-
? yield core.Supplier.get(this._options.accountToken)
|
|
250
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
242
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
251
243
|
contentType: "application/json",
|
|
252
244
|
body: yield serializers.empathicVoice.PostedPromptVersion.jsonOrThrow(request, {
|
|
253
245
|
unrecognizedObjectKeys: "strip",
|
|
@@ -298,9 +290,7 @@ class Prompts {
|
|
|
298
290
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
299
291
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `prompts/${encodeURIComponent(id)}`),
|
|
300
292
|
method: "DELETE",
|
|
301
|
-
headers: Object.assign({ "X-
|
|
302
|
-
? yield core.Supplier.get(this._options.accountToken)
|
|
303
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
293
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
304
294
|
contentType: "application/json",
|
|
305
295
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
306
296
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -345,9 +335,7 @@ class Prompts {
|
|
|
345
335
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
346
336
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `prompts/${encodeURIComponent(id)}`),
|
|
347
337
|
method: "PATCH",
|
|
348
|
-
headers: Object.assign({ "X-
|
|
349
|
-
? yield core.Supplier.get(this._options.accountToken)
|
|
350
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
338
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
351
339
|
contentType: "application/json",
|
|
352
340
|
body: yield serializers.empathicVoice.PostedPromptName.jsonOrThrow(request, {
|
|
353
341
|
unrecognizedObjectKeys: "strip",
|
|
@@ -394,9 +382,7 @@ class Prompts {
|
|
|
394
382
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
395
383
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `prompts/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
396
384
|
method: "GET",
|
|
397
|
-
headers: Object.assign({ "X-
|
|
398
|
-
? yield core.Supplier.get(this._options.accountToken)
|
|
399
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
385
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
400
386
|
contentType: "application/json",
|
|
401
387
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
402
388
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -445,9 +431,7 @@ class Prompts {
|
|
|
445
431
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
446
432
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `prompts/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
447
433
|
method: "DELETE",
|
|
448
|
-
headers: Object.assign({ "X-
|
|
449
|
-
? yield core.Supplier.get(this._options.accountToken)
|
|
450
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
434
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
451
435
|
contentType: "application/json",
|
|
452
436
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
453
437
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -491,9 +475,7 @@ class Prompts {
|
|
|
491
475
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
492
476
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `prompts/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
493
477
|
method: "PATCH",
|
|
494
|
-
headers: Object.assign({ "X-
|
|
495
|
-
? yield core.Supplier.get(this._options.accountToken)
|
|
496
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
478
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
497
479
|
contentType: "application/json",
|
|
498
480
|
body: yield serializers.empathicVoice.PostedPromptVersionDescription.jsonOrThrow(request, {
|
|
499
481
|
unrecognizedObjectKeys: "strip",
|
|
@@ -8,7 +8,6 @@ export declare namespace Tools {
|
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.HumeEnvironment | string>;
|
|
10
10
|
apiKey?: core.Supplier<string | undefined>;
|
|
11
|
-
accountToken?: core.Supplier<string | undefined>;
|
|
12
11
|
fetcher?: core.FetchFunction;
|
|
13
12
|
}
|
|
14
13
|
interface RequestOptions {
|
|
@@ -45,7 +44,7 @@ export declare class Tools {
|
|
|
45
44
|
*/
|
|
46
45
|
createTool(request: Hume.empathicVoice.PostedUserDefinedTool, requestOptions?: Tools.RequestOptions): Promise<Hume.empathicVoice.ReturnUserDefinedTool | undefined>;
|
|
47
46
|
/**
|
|
48
|
-
* @param {string} id
|
|
47
|
+
* @param {string} id - Identifier for a tool. Formatted as a UUID.
|
|
49
48
|
* @param {Hume.empathicVoice.ToolsListToolVersionsRequest} request
|
|
50
49
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
51
50
|
*
|
|
@@ -75,9 +75,7 @@ class Tools {
|
|
|
75
75
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
76
76
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "tools"),
|
|
77
77
|
method: "GET",
|
|
78
|
-
headers: Object.assign({ "X-
|
|
79
|
-
? yield core.Supplier.get(this._options.accountToken)
|
|
80
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "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.5.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
81
79
|
contentType: "application/json",
|
|
82
80
|
queryParameters: _queryParams,
|
|
83
81
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -132,9 +130,7 @@ class Tools {
|
|
|
132
130
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
133
131
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "tools"),
|
|
134
132
|
method: "POST",
|
|
135
|
-
headers: Object.assign({ "X-
|
|
136
|
-
? yield core.Supplier.get(this._options.accountToken)
|
|
137
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
133
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
138
134
|
contentType: "application/json",
|
|
139
135
|
body: yield serializers.empathicVoice.PostedUserDefinedTool.jsonOrThrow(request, {
|
|
140
136
|
unrecognizedObjectKeys: "strip",
|
|
@@ -173,7 +169,7 @@ class Tools {
|
|
|
173
169
|
});
|
|
174
170
|
}
|
|
175
171
|
/**
|
|
176
|
-
* @param {string} id
|
|
172
|
+
* @param {string} id - Identifier for a tool. Formatted as a UUID.
|
|
177
173
|
* @param {Hume.empathicVoice.ToolsListToolVersionsRequest} request
|
|
178
174
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
179
175
|
*
|
|
@@ -197,9 +193,7 @@ class Tools {
|
|
|
197
193
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
198
194
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `tools/${encodeURIComponent(id)}`),
|
|
199
195
|
method: "GET",
|
|
200
|
-
headers: Object.assign({ "X-
|
|
201
|
-
? yield core.Supplier.get(this._options.accountToken)
|
|
202
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
196
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
203
197
|
contentType: "application/json",
|
|
204
198
|
queryParameters: _queryParams,
|
|
205
199
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -254,9 +248,7 @@ class Tools {
|
|
|
254
248
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
255
249
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `tools/${encodeURIComponent(id)}`),
|
|
256
250
|
method: "POST",
|
|
257
|
-
headers: Object.assign({ "X-
|
|
258
|
-
? yield core.Supplier.get(this._options.accountToken)
|
|
259
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
251
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
260
252
|
contentType: "application/json",
|
|
261
253
|
body: yield serializers.empathicVoice.PostedUserDefinedToolVersion.jsonOrThrow(request, {
|
|
262
254
|
unrecognizedObjectKeys: "strip",
|
|
@@ -307,9 +299,7 @@ class Tools {
|
|
|
307
299
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
308
300
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `tools/${encodeURIComponent(id)}`),
|
|
309
301
|
method: "DELETE",
|
|
310
|
-
headers: Object.assign({ "X-
|
|
311
|
-
? yield core.Supplier.get(this._options.accountToken)
|
|
312
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
302
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
313
303
|
contentType: "application/json",
|
|
314
304
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
315
305
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -354,9 +344,7 @@ class Tools {
|
|
|
354
344
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
355
345
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `tools/${encodeURIComponent(id)}`),
|
|
356
346
|
method: "PATCH",
|
|
357
|
-
headers: Object.assign({ "X-
|
|
358
|
-
? yield core.Supplier.get(this._options.accountToken)
|
|
359
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
347
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
360
348
|
contentType: "application/json",
|
|
361
349
|
body: yield serializers.empathicVoice.PostedUserDefinedToolName.jsonOrThrow(request, {
|
|
362
350
|
unrecognizedObjectKeys: "strip",
|
|
@@ -403,9 +391,7 @@ class Tools {
|
|
|
403
391
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
404
392
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `tools/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
405
393
|
method: "GET",
|
|
406
|
-
headers: Object.assign({ "X-
|
|
407
|
-
? yield core.Supplier.get(this._options.accountToken)
|
|
408
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
394
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
409
395
|
contentType: "application/json",
|
|
410
396
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
411
397
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -454,9 +440,7 @@ class Tools {
|
|
|
454
440
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
455
441
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `tools/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
456
442
|
method: "DELETE",
|
|
457
|
-
headers: Object.assign({ "X-
|
|
458
|
-
? yield core.Supplier.get(this._options.accountToken)
|
|
459
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
443
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
460
444
|
contentType: "application/json",
|
|
461
445
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
462
446
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -502,9 +486,7 @@ class Tools {
|
|
|
502
486
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
503
487
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `tools/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
504
488
|
method: "PATCH",
|
|
505
|
-
headers: Object.assign({ "X-
|
|
506
|
-
? yield core.Supplier.get(this._options.accountToken)
|
|
507
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
489
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
508
490
|
contentType: "application/json",
|
|
509
491
|
body: yield serializers.empathicVoice.PostedUserDefinedToolVersionDescription.jsonOrThrow(request, {
|
|
510
492
|
unrecognizedObjectKeys: "strip",
|
|
@@ -5,5 +5,7 @@
|
|
|
5
5
|
* When provided, the output is an assistant end message.
|
|
6
6
|
*/
|
|
7
7
|
export interface AssistantEnd {
|
|
8
|
+
customSessionId?: string;
|
|
9
|
+
/** The type of message sent through the socket; for an Assistant End message, this must be 'assistant_end'. */
|
|
8
10
|
type: "assistant_end";
|
|
9
11
|
}
|
|
@@ -15,5 +15,6 @@ export interface AssistantMessage {
|
|
|
15
15
|
message: Hume.empathicVoice.ChatMessage;
|
|
16
16
|
/** Inference model results. */
|
|
17
17
|
models: Hume.empathicVoice.Inference;
|
|
18
|
+
/** The type of message sent through the socket; for an Assistant Message message, this must be 'assistant_message'. */
|
|
18
19
|
type: "assistant_message";
|
|
19
20
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Hume from "../../../index";
|
|
5
|
+
export interface Context {
|
|
6
|
+
/** User context to inject. */
|
|
7
|
+
text: string;
|
|
8
|
+
/** The persistence level of the injected context. */
|
|
9
|
+
type?: Hume.empathicVoice.ContextType;
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export declare type ContextType = "editable" | "persistent" | "temporary";
|
|
5
|
+
export declare const ContextType: {
|
|
6
|
+
readonly Editable: "editable";
|
|
7
|
+
readonly Persistent: "persistent";
|
|
8
|
+
readonly Temporary: "temporary";
|
|
9
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ContextType = void 0;
|
|
7
|
+
exports.ContextType = {
|
|
8
|
+
Editable: "editable",
|
|
9
|
+
Persistent: "persistent",
|
|
10
|
+
Temporary: "temporary",
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Pause responses from EVI. Chat history is still saved and sent after resuming.
|
|
6
|
+
*/
|
|
7
|
+
export interface PauseAssistantMessage {
|
|
8
|
+
customSessionId?: string;
|
|
9
|
+
/** The type of message sent through the socket; for a Pause Assistant message, this must be 'pause_assistant_message'. */
|
|
10
|
+
type?: "pause_assistant_message";
|
|
11
|
+
}
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* The provider of this model. Based on the enum modelProvider.
|
|
6
6
|
*/
|
|
7
|
-
export declare type PostedLanguageModelModelProvider = "OPEN_AI" | "
|
|
7
|
+
export declare type PostedLanguageModelModelProvider = "OPEN_AI" | "CUSTOM_LANGUAGE_MODEL" | "ANTHROPIC" | "FIREWORKS" | "GROQ";
|
|
8
8
|
export declare const PostedLanguageModelModelProvider: {
|
|
9
9
|
readonly OpenAi: "OPEN_AI";
|
|
10
|
-
readonly ByoText: "BYO_TEXT";
|
|
11
10
|
readonly CustomLanguageModel: "CUSTOM_LANGUAGE_MODEL";
|
|
12
11
|
readonly Anthropic: "ANTHROPIC";
|
|
13
12
|
readonly Fireworks: "FIREWORKS";
|
|
13
|
+
readonly Groq: "GROQ";
|
|
14
14
|
};
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.PostedLanguageModelModelProvider = void 0;
|
|
7
7
|
exports.PostedLanguageModelModelProvider = {
|
|
8
8
|
OpenAi: "OPEN_AI",
|
|
9
|
-
ByoText: "BYO_TEXT",
|
|
10
9
|
CustomLanguageModel: "CUSTOM_LANGUAGE_MODEL",
|
|
11
10
|
Anthropic: "ANTHROPIC",
|
|
12
11
|
Fireworks: "FIREWORKS",
|
|
12
|
+
Groq: "GROQ",
|
|
13
13
|
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Hume from "../../../index";
|
|
4
5
|
/**
|
|
5
6
|
* A Voice specification posted to the server
|
|
6
7
|
*/
|
|
7
8
|
export interface PostedVoice {
|
|
8
|
-
/** The provider of the voice to use.
|
|
9
|
-
provider?:
|
|
9
|
+
/** The provider of the voice to use. */
|
|
10
|
+
provider?: "HUME_AI";
|
|
10
11
|
/** String with the name of the voice to use. */
|
|
11
|
-
name:
|
|
12
|
+
name: Hume.empathicVoice.PostedVoiceName;
|
|
12
13
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* String with the name of the voice to use.
|
|
6
|
+
*/
|
|
7
|
+
export declare type PostedVoiceName = "ITO" | "DACHER";
|
|
8
|
+
export declare const PostedVoiceName: {
|
|
9
|
+
readonly Ito: "ITO";
|
|
10
|
+
readonly Dacher: "DACHER";
|
|
11
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.PostedVoiceName = void 0;
|
|
7
|
+
exports.PostedVoiceName = {
|
|
8
|
+
Ito: "ITO",
|
|
9
|
+
Dacher: "DACHER",
|
|
10
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Resume responses from EVI. Chat history sent while paused will now be sent.
|
|
6
|
+
*/
|
|
7
|
+
export interface ResumeAssistantMessage {
|
|
8
|
+
customSessionId?: string;
|
|
9
|
+
/** The type of message sent through the socket; for a Resume Assistant message, this must be 'resume_assistant_message'. */
|
|
10
|
+
type?: "resume_assistant_message";
|
|
11
|
+
}
|
|
@@ -16,6 +16,8 @@ export interface ReturnChat {
|
|
|
16
16
|
startTimestamp: number;
|
|
17
17
|
/** The timestamp when the chat ended, formatted as a Unix epoch milliseconds. */
|
|
18
18
|
endTimestamp?: number;
|
|
19
|
+
/** The total number of events currently in this chat. */
|
|
20
|
+
eventCount?: number;
|
|
19
21
|
/** Stringified JSON with additional metadata about the chat. */
|
|
20
22
|
metadata?: string;
|
|
21
23
|
config?: Hume.empathicVoice.ReturnConfigSpec;
|
|
@@ -5,7 +5,7 @@ import * as Hume from "../../../index";
|
|
|
5
5
|
/**
|
|
6
6
|
* A description of chat status with a paginated list of chat events returned from the server
|
|
7
7
|
*/
|
|
8
|
-
export interface
|
|
8
|
+
export interface ReturnChatPagedEvents {
|
|
9
9
|
/** Identifier for a chat. Formatted as a UUID. */
|
|
10
10
|
id: string;
|
|
11
11
|
/** Optional tag applied to this chat used to group chats by user, application, etc. */
|
|
@@ -19,6 +19,7 @@ export interface ReturnConfig {
|
|
|
19
19
|
/** The timestamp when this version of the config was created. */
|
|
20
20
|
modifiedOn?: number;
|
|
21
21
|
prompt?: Hume.empathicVoice.ReturnPrompt;
|
|
22
|
+
voice?: Hume.empathicVoice.ReturnVoice;
|
|
22
23
|
languageModel?: Hume.empathicVoice.ReturnLanguageModel;
|
|
23
24
|
/** List of user-defined tools associated with this config. */
|
|
24
25
|
tools?: (Hume.empathicVoice.ReturnUserDefinedTool | undefined)[];
|
|
@@ -6,10 +6,12 @@ import * as Hume from "../../../index";
|
|
|
6
6
|
* Settings for this chat session.
|
|
7
7
|
*/
|
|
8
8
|
export interface SessionSettings {
|
|
9
|
-
customSessionId?: string;
|
|
10
9
|
audio?: Hume.empathicVoice.AudioConfiguration;
|
|
10
|
+
builtinTools?: Hume.empathicVoice.BuiltinToolConfig[];
|
|
11
|
+
customSessionId?: string;
|
|
11
12
|
languageModelApiKey?: string;
|
|
12
13
|
systemPrompt?: string;
|
|
13
|
-
type: "session_settings";
|
|
14
14
|
tools?: Hume.empathicVoice.Tool[];
|
|
15
|
+
/** The type of message sent through the socket; for a Session Settings message, this must be 'session_settings'. */
|
|
16
|
+
type: "session_settings";
|
|
15
17
|
}
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Hume from "../../../index";
|
|
5
5
|
export interface Tool {
|
|
6
|
-
/** Type of tool. */
|
|
7
|
-
type: Hume.empathicVoice.ToolType;
|
|
8
|
-
/** Name of the function. */
|
|
9
|
-
name: string;
|
|
10
|
-
/** Parameters of the function. Is a stringified JSON schema. */
|
|
11
|
-
parameters: string;
|
|
12
6
|
description?: string;
|
|
13
7
|
fallbackContent?: string;
|
|
8
|
+
/** Name of the tool. */
|
|
9
|
+
name: string;
|
|
10
|
+
/** Parameters of the tool. Is a stringified JSON schema. */
|
|
11
|
+
parameters: string;
|
|
12
|
+
/** Type of tool. */
|
|
13
|
+
type: Hume.empathicVoice.ToolType;
|
|
14
14
|
}
|
|
@@ -6,16 +6,17 @@ import * as Hume from "../../../index";
|
|
|
6
6
|
* When provided, the output is a tool call.
|
|
7
7
|
*/
|
|
8
8
|
export interface ToolCallMessage {
|
|
9
|
+
customSessionId?: string;
|
|
9
10
|
/** Name of the tool called. */
|
|
10
11
|
name: string;
|
|
11
12
|
/** Parameters of the tool call. Is a stringified JSON schema. */
|
|
12
13
|
parameters: string;
|
|
14
|
+
/** Whether a response is required from the developer. */
|
|
15
|
+
responseRequired: boolean;
|
|
13
16
|
/** ID of the tool call. */
|
|
14
17
|
toolCallId: string;
|
|
15
|
-
type?: "tool_call";
|
|
16
|
-
customSessionId?: string;
|
|
17
18
|
/** Type of tool called, either 'builtin' or 'function'. */
|
|
18
19
|
toolType: Hume.empathicVoice.ToolType;
|
|
19
|
-
/**
|
|
20
|
-
|
|
20
|
+
/** The type of message sent through the socket; for a Tool Call message, this must be 'tool_call'. */
|
|
21
|
+
type?: "tool_call";
|
|
21
22
|
}
|
|
@@ -6,14 +6,15 @@ import * as Hume from "../../../index";
|
|
|
6
6
|
* When provided, the output is a function call error.
|
|
7
7
|
*/
|
|
8
8
|
export interface ToolErrorMessage {
|
|
9
|
-
|
|
9
|
+
code?: string;
|
|
10
|
+
content?: string;
|
|
10
11
|
customSessionId?: string;
|
|
11
|
-
/** ID of the tool call. */
|
|
12
|
-
toolCallId: string;
|
|
13
|
-
/** The content passed to the LLM in place of the tool response. */
|
|
14
|
-
content: string;
|
|
15
12
|
/** Error message from the tool call, not exposed to the LLM or user. */
|
|
16
13
|
error: string;
|
|
17
|
-
code?: string;
|
|
18
14
|
level?: Hume.empathicVoice.ErrorLevel;
|
|
15
|
+
/** ID of the tool call. */
|
|
16
|
+
toolCallId: string;
|
|
17
|
+
toolType?: Hume.empathicVoice.ToolType;
|
|
18
|
+
/** The type of message sent through the socket; for a Tool Error message, this must be 'tool_error'. */
|
|
19
|
+
type?: "tool_error";
|
|
19
20
|
}
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Hume from "../../../index";
|
|
4
5
|
/**
|
|
5
6
|
* When provided, the output is a function call response.
|
|
6
7
|
*/
|
|
7
8
|
export interface ToolResponseMessage {
|
|
8
|
-
|
|
9
|
+
/** Return value of the tool call. */
|
|
10
|
+
content: string;
|
|
9
11
|
customSessionId?: string;
|
|
10
12
|
/** ID of the tool call. */
|
|
11
13
|
toolCallId: string;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
+
toolName?: string;
|
|
15
|
+
toolType?: Hume.empathicVoice.ToolType;
|
|
16
|
+
/** The type of message sent through the socket; for a Tool Response message, this must be ‘tool_response’. */
|
|
17
|
+
type?: "tool_response";
|
|
14
18
|
}
|