hume 0.15.13 → 0.15.15
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/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/empathicVoice/exports.d.ts +3 -0
- package/dist/cjs/api/resources/empathicVoice/exports.js +22 -0
- package/dist/cjs/api/resources/empathicVoice/resources/chat/client/Client.js +6 -0
- package/dist/cjs/api/resources/empathicVoice/resources/chat/exports.d.ts +2 -0
- package/dist/cjs/api/resources/empathicVoice/resources/chat/exports.js +21 -0
- package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/Client.js +4 -4
- package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/exports.d.ts +2 -0
- package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/exports.js +21 -0
- package/dist/cjs/api/resources/empathicVoice/resources/chatWebhooks/exports.d.ts +1 -0
- package/dist/cjs/api/resources/empathicVoice/resources/chatWebhooks/exports.js +18 -0
- package/dist/cjs/api/resources/empathicVoice/resources/chatWebhooks/index.d.ts +1 -0
- package/dist/cjs/api/resources/empathicVoice/resources/chatWebhooks/index.js +2 -0
- package/dist/cjs/api/resources/empathicVoice/resources/chats/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/empathicVoice/resources/chats/client/Client.js +2 -2
- package/dist/cjs/api/resources/empathicVoice/resources/chats/exports.d.ts +2 -0
- package/dist/cjs/api/resources/empathicVoice/resources/chats/exports.js +21 -0
- package/dist/cjs/api/resources/empathicVoice/resources/configs/client/Client.d.ts +9 -9
- package/dist/cjs/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
- package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/resources/configs/exports.d.ts +2 -0
- package/dist/cjs/api/resources/empathicVoice/resources/configs/exports.js +21 -0
- package/dist/cjs/api/resources/empathicVoice/resources/controlPlane/exports.d.ts +2 -0
- package/dist/cjs/api/resources/empathicVoice/resources/controlPlane/exports.js +21 -0
- package/dist/cjs/api/resources/empathicVoice/resources/index.d.ts +1 -0
- package/dist/cjs/api/resources/empathicVoice/resources/index.js +2 -1
- package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +7 -7
- package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/Client.js +7 -7
- package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +2 -0
- package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +2 -0
- package/dist/cjs/api/resources/empathicVoice/resources/prompts/exports.d.ts +2 -0
- package/dist/cjs/api/resources/empathicVoice/resources/prompts/exports.js +21 -0
- package/dist/cjs/api/resources/empathicVoice/resources/tools/client/Client.d.ts +7 -7
- package/dist/cjs/api/resources/empathicVoice/resources/tools/client/Client.js +7 -7
- package/dist/cjs/api/resources/empathicVoice/resources/tools/exports.d.ts +2 -0
- package/dist/cjs/api/resources/empathicVoice/resources/tools/exports.js +21 -0
- package/dist/cjs/api/resources/empathicVoice/types/LanguageModelType.d.ts +5 -0
- package/dist/cjs/api/resources/empathicVoice/types/LanguageModelType.js +5 -0
- package/dist/cjs/api/resources/empathicVoice/types/ModelProviderEnum.d.ts +1 -0
- package/dist/cjs/api/resources/empathicVoice/types/ModelProviderEnum.js +1 -0
- package/dist/cjs/api/resources/empathicVoice/types/PostedConfigPromptSpec.d.ts +2 -0
- package/dist/cjs/api/resources/empathicVoice/types/PostedEllmModel.d.ts +1 -5
- package/dist/cjs/api/resources/empathicVoice/types/PromptExpansionSpec.d.ts +11 -0
- package/dist/cjs/api/resources/empathicVoice/types/PromptExpansionSpec.js +3 -0
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatEventType.d.ts +8 -6
- package/dist/cjs/api/resources/empathicVoice/types/ReturnChatEventType.js +8 -6
- package/dist/cjs/api/resources/empathicVoice/types/ReturnEllmModel.d.ts +1 -5
- package/dist/cjs/api/resources/empathicVoice/types/ReturnPrompt.d.ts +2 -0
- package/dist/cjs/api/resources/empathicVoice/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/empathicVoice/types/index.js +1 -0
- package/dist/cjs/api/resources/expressionMeasurement/exports.d.ts +3 -0
- package/dist/cjs/api/resources/expressionMeasurement/exports.js +22 -0
- package/dist/cjs/api/resources/expressionMeasurement/resources/batch/exports.d.ts +2 -0
- package/dist/cjs/api/resources/expressionMeasurement/resources/batch/exports.js +21 -0
- package/dist/cjs/api/resources/expressionMeasurement/resources/stream/exports.d.ts +2 -0
- package/dist/cjs/api/resources/expressionMeasurement/resources/stream/exports.js +19 -0
- package/dist/cjs/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Client.js +1 -1
- package/dist/cjs/api/resources/expressionMeasurement/resources/stream/resources/stream/exports.d.ts +2 -0
- package/dist/cjs/api/resources/expressionMeasurement/resources/stream/resources/stream/exports.js +21 -0
- package/dist/cjs/api/resources/tts/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/tts/client/Client.js +4 -2
- package/dist/cjs/api/resources/tts/exports.d.ts +3 -0
- package/dist/cjs/api/resources/tts/exports.js +22 -0
- package/dist/cjs/api/resources/tts/resources/streamInput/exports.d.ts +2 -0
- package/dist/cjs/api/resources/tts/resources/streamInput/exports.js +21 -0
- package/dist/cjs/api/resources/tts/resources/voices/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/tts/resources/voices/client/Client.js +1 -1
- package/dist/cjs/api/resources/tts/resources/voices/client/requests/PostedVoice.d.ts +1 -1
- package/dist/cjs/api/resources/tts/resources/voices/exports.d.ts +2 -0
- package/dist/cjs/api/resources/tts/resources/voices/exports.js +21 -0
- package/dist/cjs/core/fetcher/Fetcher.js +8 -2
- package/dist/cjs/core/fetcher/makeRequest.d.ts +6 -1
- package/dist/cjs/core/fetcher/makeRequest.js +30 -9
- package/dist/cjs/core/schemas/builders/list/list.js +12 -17
- package/dist/cjs/core/schemas/builders/object/object.js +102 -40
- package/dist/cjs/core/schemas/builders/object-like/getObjectLikeUtils.js +10 -3
- package/dist/cjs/core/schemas/builders/record/record.js +26 -25
- package/dist/cjs/core/schemas/builders/union/union.js +9 -12
- package/dist/cjs/core/schemas/utils/isPlainObject.js +4 -6
- package/dist/cjs/core/stream/Stream.d.ts +9 -0
- package/dist/cjs/core/stream/Stream.js +100 -5
- package/dist/cjs/core/websocket/ws.d.ts +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +2 -0
- package/dist/cjs/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.js +2 -0
- package/dist/cjs/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +2 -0
- package/dist/cjs/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.js +2 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/LanguageModelType.d.ts +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/types/LanguageModelType.js +5 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/ModelProviderEnum.d.ts +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/types/ModelProviderEnum.js +1 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/PostedConfigPromptSpec.d.ts +2 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/PostedConfigPromptSpec.js +2 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/PromptExpansionSpec.d.ts +9 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/PromptExpansionSpec.js +41 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatEventType.d.ts +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnChatEventType.js +8 -6
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPrompt.d.ts +2 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/ReturnPrompt.js +2 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/index.js +1 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/empathicVoice/exports.d.mts +3 -0
- package/dist/esm/api/resources/empathicVoice/exports.mjs +4 -0
- package/dist/esm/api/resources/empathicVoice/resources/chat/client/Client.mjs +6 -0
- package/dist/esm/api/resources/empathicVoice/resources/chat/exports.d.mts +2 -0
- package/dist/esm/api/resources/empathicVoice/resources/chat/exports.mjs +3 -0
- package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/Client.mjs +4 -4
- package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/chatGroups/exports.d.mts +2 -0
- package/dist/esm/api/resources/empathicVoice/resources/chatGroups/exports.mjs +3 -0
- package/dist/esm/api/resources/empathicVoice/resources/chatWebhooks/exports.d.mts +1 -0
- package/dist/esm/api/resources/empathicVoice/resources/chatWebhooks/exports.mjs +2 -0
- package/dist/esm/api/resources/empathicVoice/resources/chatWebhooks/index.d.mts +1 -0
- package/dist/esm/api/resources/empathicVoice/resources/chatWebhooks/index.mjs +1 -0
- package/dist/esm/api/resources/empathicVoice/resources/chats/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/empathicVoice/resources/chats/client/Client.mjs +2 -2
- package/dist/esm/api/resources/empathicVoice/resources/chats/exports.d.mts +2 -0
- package/dist/esm/api/resources/empathicVoice/resources/chats/exports.mjs +3 -0
- package/dist/esm/api/resources/empathicVoice/resources/configs/client/Client.d.mts +9 -9
- package/dist/esm/api/resources/empathicVoice/resources/configs/client/Client.mjs +9 -9
- package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/resources/configs/exports.d.mts +2 -0
- package/dist/esm/api/resources/empathicVoice/resources/configs/exports.mjs +3 -0
- package/dist/esm/api/resources/empathicVoice/resources/controlPlane/exports.d.mts +2 -0
- package/dist/esm/api/resources/empathicVoice/resources/controlPlane/exports.mjs +3 -0
- package/dist/esm/api/resources/empathicVoice/resources/index.d.mts +1 -0
- package/dist/esm/api/resources/empathicVoice/resources/index.mjs +1 -0
- package/dist/esm/api/resources/empathicVoice/resources/prompts/client/Client.d.mts +7 -7
- package/dist/esm/api/resources/empathicVoice/resources/prompts/client/Client.mjs +7 -7
- package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.mts +2 -0
- package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.mts +2 -0
- package/dist/esm/api/resources/empathicVoice/resources/prompts/exports.d.mts +2 -0
- package/dist/esm/api/resources/empathicVoice/resources/prompts/exports.mjs +3 -0
- package/dist/esm/api/resources/empathicVoice/resources/tools/client/Client.d.mts +7 -7
- package/dist/esm/api/resources/empathicVoice/resources/tools/client/Client.mjs +7 -7
- package/dist/esm/api/resources/empathicVoice/resources/tools/exports.d.mts +2 -0
- package/dist/esm/api/resources/empathicVoice/resources/tools/exports.mjs +3 -0
- package/dist/esm/api/resources/empathicVoice/types/LanguageModelType.d.mts +5 -0
- package/dist/esm/api/resources/empathicVoice/types/LanguageModelType.mjs +5 -0
- package/dist/esm/api/resources/empathicVoice/types/ModelProviderEnum.d.mts +1 -0
- package/dist/esm/api/resources/empathicVoice/types/ModelProviderEnum.mjs +1 -0
- package/dist/esm/api/resources/empathicVoice/types/PostedConfigPromptSpec.d.mts +2 -0
- package/dist/esm/api/resources/empathicVoice/types/PostedEllmModel.d.mts +1 -5
- package/dist/esm/api/resources/empathicVoice/types/PromptExpansionSpec.d.mts +11 -0
- package/dist/esm/api/resources/empathicVoice/types/PromptExpansionSpec.mjs +2 -0
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatEventType.d.mts +8 -6
- package/dist/esm/api/resources/empathicVoice/types/ReturnChatEventType.mjs +8 -6
- package/dist/esm/api/resources/empathicVoice/types/ReturnEllmModel.d.mts +1 -5
- package/dist/esm/api/resources/empathicVoice/types/ReturnPrompt.d.mts +2 -0
- package/dist/esm/api/resources/empathicVoice/types/index.d.mts +1 -0
- package/dist/esm/api/resources/empathicVoice/types/index.mjs +1 -0
- package/dist/esm/api/resources/expressionMeasurement/exports.d.mts +3 -0
- package/dist/esm/api/resources/expressionMeasurement/exports.mjs +4 -0
- package/dist/esm/api/resources/expressionMeasurement/resources/batch/exports.d.mts +2 -0
- package/dist/esm/api/resources/expressionMeasurement/resources/batch/exports.mjs +3 -0
- package/dist/esm/api/resources/expressionMeasurement/resources/stream/exports.d.mts +2 -0
- package/dist/esm/api/resources/expressionMeasurement/resources/stream/exports.mjs +3 -0
- package/dist/esm/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Client.mjs +1 -1
- package/dist/esm/api/resources/expressionMeasurement/resources/stream/resources/stream/exports.d.mts +2 -0
- package/dist/esm/api/resources/expressionMeasurement/resources/stream/resources/stream/exports.mjs +3 -0
- package/dist/esm/api/resources/tts/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/tts/client/Client.mjs +4 -2
- package/dist/esm/api/resources/tts/exports.d.mts +3 -0
- package/dist/esm/api/resources/tts/exports.mjs +4 -0
- package/dist/esm/api/resources/tts/resources/streamInput/exports.d.mts +2 -0
- package/dist/esm/api/resources/tts/resources/streamInput/exports.mjs +3 -0
- package/dist/esm/api/resources/tts/resources/voices/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/tts/resources/voices/client/Client.mjs +1 -1
- package/dist/esm/api/resources/tts/resources/voices/client/requests/PostedVoice.d.mts +1 -1
- package/dist/esm/api/resources/tts/resources/voices/exports.d.mts +2 -0
- package/dist/esm/api/resources/tts/resources/voices/exports.mjs +3 -0
- package/dist/esm/core/fetcher/Fetcher.mjs +8 -2
- package/dist/esm/core/fetcher/makeRequest.d.mts +6 -1
- package/dist/esm/core/fetcher/makeRequest.mjs +28 -9
- package/dist/esm/core/schemas/builders/list/list.mjs +12 -17
- package/dist/esm/core/schemas/builders/object/object.mjs +102 -40
- package/dist/esm/core/schemas/builders/object-like/getObjectLikeUtils.mjs +10 -3
- package/dist/esm/core/schemas/builders/record/record.mjs +26 -25
- package/dist/esm/core/schemas/builders/union/union.mjs +9 -12
- package/dist/esm/core/schemas/utils/isPlainObject.mjs +4 -6
- package/dist/esm/core/stream/Stream.d.mts +9 -0
- package/dist/esm/core/stream/Stream.mjs +100 -5
- package/dist/esm/core/websocket/ws.d.mts +1 -1
- package/dist/esm/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.mts +2 -0
- package/dist/esm/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.mjs +2 -0
- package/dist/esm/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.mts +2 -0
- package/dist/esm/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.mjs +2 -0
- package/dist/esm/serialization/resources/empathicVoice/types/LanguageModelType.d.mts +1 -1
- package/dist/esm/serialization/resources/empathicVoice/types/LanguageModelType.mjs +5 -0
- package/dist/esm/serialization/resources/empathicVoice/types/ModelProviderEnum.d.mts +1 -1
- package/dist/esm/serialization/resources/empathicVoice/types/ModelProviderEnum.mjs +1 -0
- package/dist/esm/serialization/resources/empathicVoice/types/PostedConfigPromptSpec.d.mts +2 -0
- package/dist/esm/serialization/resources/empathicVoice/types/PostedConfigPromptSpec.mjs +2 -0
- package/dist/esm/serialization/resources/empathicVoice/types/PromptExpansionSpec.d.mts +9 -0
- package/dist/esm/serialization/resources/empathicVoice/types/PromptExpansionSpec.mjs +5 -0
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatEventType.d.mts +1 -1
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnChatEventType.mjs +8 -6
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnPrompt.d.mts +2 -0
- package/dist/esm/serialization/resources/empathicVoice/types/ReturnPrompt.mjs +2 -0
- package/dist/esm/serialization/resources/empathicVoice/types/index.d.mts +1 -0
- package/dist/esm/serialization/resources/empathicVoice/types/index.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +158 -5
- package/reference.md +37 -36
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "hume",
|
|
46
|
-
"X-Fern-SDK-Version": "0.15.
|
|
47
|
-
"User-Agent": "hume/0.15.
|
|
46
|
+
"X-Fern-SDK-Version": "0.15.15",
|
|
47
|
+
"User-Agent": "hume/0.15.15",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.EmpathicVoiceClient = void 0;
|
|
19
|
+
var Client_js_1 = require("./client/Client.js");
|
|
20
|
+
Object.defineProperty(exports, "EmpathicVoiceClient", { enumerable: true, get: function () { return Client_js_1.EmpathicVoiceClient; } });
|
|
21
|
+
__exportStar(require("./client/index.js"), exports);
|
|
22
|
+
__exportStar(require("./resources/index.js"), exports);
|
|
@@ -40,6 +40,8 @@ const environments = __importStar(require("../../../../../../environments.js"));
|
|
|
40
40
|
const serializers = __importStar(require("../../../../../../serialization/index.js"));
|
|
41
41
|
const headers_js_1 = require("../../../../../../core/headers.js");
|
|
42
42
|
const Socket_js_1 = require("./Socket.js");
|
|
43
|
+
/** Maximum systemPrompt length when passed at connect (serialized as query param). */
|
|
44
|
+
const MAX_SYSTEM_PROMPT_LENGTH = 1000;
|
|
43
45
|
class ChatClient {
|
|
44
46
|
constructor(options = {}) {
|
|
45
47
|
this._options = (0, BaseClient_js_1.normalizeClientOptions)(options);
|
|
@@ -77,6 +79,10 @@ class ChatClient {
|
|
|
77
79
|
_queryParams[name] = value;
|
|
78
80
|
}
|
|
79
81
|
}
|
|
82
|
+
// Warn when systemPrompt exceeds recommended length - it's serialized as a query param with URL length limits
|
|
83
|
+
if ((sessionSettings === null || sessionSettings === void 0 ? void 0 : sessionSettings.systemPrompt) != null && sessionSettings.systemPrompt.length > MAX_SYSTEM_PROMPT_LENGTH) {
|
|
84
|
+
console.warn(`[Hume SDK] systemPrompt (${sessionSettings.systemPrompt.length} chars) exceeds recommended max of ${MAX_SYSTEM_PROMPT_LENGTH} when passed at connect. The connection may fail or the prompt may be truncated. Consider using sendSessionSettings() after connecting for longer prompts.`);
|
|
85
|
+
}
|
|
80
86
|
const _headers = (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign(Object.assign({}, this._getCustomAuthorizationHeaders()), headers));
|
|
81
87
|
const socket = new core.ReconnectingWebSocket({
|
|
82
88
|
url: core.url.join((_a = core.Supplier.get(this._options.baseUrl)) !== null && _a !== void 0 ? _a : ((_b = core.Supplier.get(this._options.environment)) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Prod).evi, "/chat"),
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.ChatClient = void 0;
|
|
19
|
+
var Client_js_1 = require("./client/Client.js");
|
|
20
|
+
Object.defineProperty(exports, "ChatClient", { enumerable: true, get: function () { return Client_js_1.ChatClient; } });
|
|
21
|
+
__exportStar(require("./client/index.js"), exports);
|
|
@@ -23,7 +23,7 @@ export declare class ChatGroupsClient {
|
|
|
23
23
|
* pageNumber: 0,
|
|
24
24
|
* pageSize: 1,
|
|
25
25
|
* ascendingOrder: true,
|
|
26
|
-
* configId: "
|
|
26
|
+
* configId: "your-config-id"
|
|
27
27
|
* })
|
|
28
28
|
*/
|
|
29
29
|
listChatGroups(request?: Hume.empathicVoice.ChatGroupsListChatGroupsRequest, requestOptions?: ChatGroupsClient.RequestOptions): Promise<core.Page<Hume.empathicVoice.ReturnChatGroup, Hume.empathicVoice.ReturnPagedChatGroups>>;
|
|
@@ -37,7 +37,7 @@ export declare class ChatGroupsClient {
|
|
|
37
37
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
38
38
|
*
|
|
39
39
|
* @example
|
|
40
|
-
* await client.empathicVoice.chatGroups.getChatGroup("
|
|
40
|
+
* await client.empathicVoice.chatGroups.getChatGroup("your-chat-group-id", {
|
|
41
41
|
* pageNumber: 0,
|
|
42
42
|
* pageSize: 1,
|
|
43
43
|
* ascendingOrder: true
|
|
@@ -55,7 +55,7 @@ export declare class ChatGroupsClient {
|
|
|
55
55
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
56
56
|
*
|
|
57
57
|
* @example
|
|
58
|
-
* await client.empathicVoice.chatGroups.getAudio("
|
|
58
|
+
* await client.empathicVoice.chatGroups.getAudio("your-chat-group-id", {
|
|
59
59
|
* pageNumber: 0,
|
|
60
60
|
* pageSize: 10,
|
|
61
61
|
* ascendingOrder: true
|
|
@@ -73,7 +73,7 @@ export declare class ChatGroupsClient {
|
|
|
73
73
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
74
74
|
*
|
|
75
75
|
* @example
|
|
76
|
-
* await client.empathicVoice.chatGroups.listChatGroupEvents("
|
|
76
|
+
* await client.empathicVoice.chatGroups.listChatGroupEvents("your-chat-group-id", {
|
|
77
77
|
* pageNumber: 0,
|
|
78
78
|
* pageSize: 3,
|
|
79
79
|
* ascendingOrder: true
|
|
@@ -69,7 +69,7 @@ class ChatGroupsClient {
|
|
|
69
69
|
* pageNumber: 0,
|
|
70
70
|
* pageSize: 1,
|
|
71
71
|
* ascendingOrder: true,
|
|
72
|
-
* configId: "
|
|
72
|
+
* configId: "your-config-id"
|
|
73
73
|
* })
|
|
74
74
|
*/
|
|
75
75
|
listChatGroups() {
|
|
@@ -153,7 +153,7 @@ class ChatGroupsClient {
|
|
|
153
153
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
154
154
|
*
|
|
155
155
|
* @example
|
|
156
|
-
* await client.empathicVoice.chatGroups.getChatGroup("
|
|
156
|
+
* await client.empathicVoice.chatGroups.getChatGroup("your-chat-group-id", {
|
|
157
157
|
* pageNumber: 0,
|
|
158
158
|
* pageSize: 1,
|
|
159
159
|
* ascendingOrder: true
|
|
@@ -228,7 +228,7 @@ class ChatGroupsClient {
|
|
|
228
228
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
229
229
|
*
|
|
230
230
|
* @example
|
|
231
|
-
* await client.empathicVoice.chatGroups.getAudio("
|
|
231
|
+
* await client.empathicVoice.chatGroups.getAudio("your-chat-group-id", {
|
|
232
232
|
* pageNumber: 0,
|
|
233
233
|
* pageSize: 10,
|
|
234
234
|
* ascendingOrder: true
|
|
@@ -302,7 +302,7 @@ class ChatGroupsClient {
|
|
|
302
302
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
303
303
|
*
|
|
304
304
|
* @example
|
|
305
|
-
* await client.empathicVoice.chatGroups.listChatGroupEvents("
|
|
305
|
+
* await client.empathicVoice.chatGroups.listChatGroupEvents("your-chat-group-id", {
|
|
306
306
|
* pageNumber: 0,
|
|
307
307
|
* pageSize: 3,
|
|
308
308
|
* ascendingOrder: true
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.ChatGroupsClient = void 0;
|
|
19
|
+
var Client_js_1 = require("./client/Client.js");
|
|
20
|
+
Object.defineProperty(exports, "ChatGroupsClient", { enumerable: true, get: function () { return Client_js_1.ChatGroupsClient; } });
|
|
21
|
+
__exportStar(require("./client/index.js"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./index.js";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
__exportStar(require("./index.js"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -36,7 +36,7 @@ export declare class ChatsClient {
|
|
|
36
36
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
37
37
|
*
|
|
38
38
|
* @example
|
|
39
|
-
* await client.empathicVoice.chats.listChatEvents("
|
|
39
|
+
* await client.empathicVoice.chats.listChatEvents("your-chat-id", {
|
|
40
40
|
* pageNumber: 0,
|
|
41
41
|
* pageSize: 3,
|
|
42
42
|
* ascendingOrder: true
|
|
@@ -52,7 +52,7 @@ export declare class ChatsClient {
|
|
|
52
52
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
53
53
|
*
|
|
54
54
|
* @example
|
|
55
|
-
* await client.empathicVoice.chats.getAudio("
|
|
55
|
+
* await client.empathicVoice.chats.getAudio("your-chat-id")
|
|
56
56
|
*/
|
|
57
57
|
getAudio(id: string, requestOptions?: ChatsClient.RequestOptions): core.HttpResponsePromise<Hume.empathicVoice.ReturnChatAudioReconstruction>;
|
|
58
58
|
private __getAudio;
|
|
@@ -153,7 +153,7 @@ class ChatsClient {
|
|
|
153
153
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
154
154
|
*
|
|
155
155
|
* @example
|
|
156
|
-
* await client.empathicVoice.chats.listChatEvents("
|
|
156
|
+
* await client.empathicVoice.chats.listChatEvents("your-chat-id", {
|
|
157
157
|
* pageNumber: 0,
|
|
158
158
|
* pageSize: 3,
|
|
159
159
|
* ascendingOrder: true
|
|
@@ -238,7 +238,7 @@ class ChatsClient {
|
|
|
238
238
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
239
239
|
*
|
|
240
240
|
* @example
|
|
241
|
-
* await client.empathicVoice.chats.getAudio("
|
|
241
|
+
* await client.empathicVoice.chats.getAudio("your-chat-id")
|
|
242
242
|
*/
|
|
243
243
|
getAudio(id, requestOptions) {
|
|
244
244
|
return core.HttpResponsePromise.fromPromise(this.__getAudio(id, requestOptions));
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.ChatsClient = void 0;
|
|
19
|
+
var Client_js_1 = require("./client/Client.js");
|
|
20
|
+
Object.defineProperty(exports, "ChatsClient", { enumerable: true, get: function () { return Client_js_1.ChatsClient; } });
|
|
21
|
+
__exportStar(require("./client/index.js"), exports);
|
|
@@ -41,7 +41,7 @@ export declare class ConfigsClient {
|
|
|
41
41
|
* await client.empathicVoice.configs.createConfig({
|
|
42
42
|
* name: "Weather Assistant Config",
|
|
43
43
|
* prompt: {
|
|
44
|
-
* id: "
|
|
44
|
+
* id: "",
|
|
45
45
|
* version: 0
|
|
46
46
|
* },
|
|
47
47
|
* eviVersion: "3",
|
|
@@ -84,7 +84,7 @@ export declare class ConfigsClient {
|
|
|
84
84
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
85
85
|
*
|
|
86
86
|
* @example
|
|
87
|
-
* await client.empathicVoice.configs.listConfigVersions("
|
|
87
|
+
* await client.empathicVoice.configs.listConfigVersions("your-config-id")
|
|
88
88
|
*/
|
|
89
89
|
listConfigVersions(id: string, request?: Hume.empathicVoice.ConfigsListConfigVersionsRequest, requestOptions?: ConfigsClient.RequestOptions): Promise<core.Page<Hume.empathicVoice.ReturnConfig, Hume.empathicVoice.ReturnPagedConfigs>>;
|
|
90
90
|
/**
|
|
@@ -99,11 +99,11 @@ export declare class ConfigsClient {
|
|
|
99
99
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
100
100
|
*
|
|
101
101
|
* @example
|
|
102
|
-
* await client.empathicVoice.configs.createConfigVersion("
|
|
102
|
+
* await client.empathicVoice.configs.createConfigVersion("your-config-id", {
|
|
103
103
|
* versionDescription: "This is an updated version of the Weather Assistant Config.",
|
|
104
104
|
* eviVersion: "3",
|
|
105
105
|
* prompt: {
|
|
106
|
-
* id: "
|
|
106
|
+
* id: "",
|
|
107
107
|
* version: 0
|
|
108
108
|
* },
|
|
109
109
|
* voice: {
|
|
@@ -147,7 +147,7 @@ export declare class ConfigsClient {
|
|
|
147
147
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
148
148
|
*
|
|
149
149
|
* @example
|
|
150
|
-
* await client.empathicVoice.configs.deleteConfig("
|
|
150
|
+
* await client.empathicVoice.configs.deleteConfig("your-config-id")
|
|
151
151
|
*/
|
|
152
152
|
deleteConfig(id: string, requestOptions?: ConfigsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
153
153
|
private __deleteConfig;
|
|
@@ -163,7 +163,7 @@ export declare class ConfigsClient {
|
|
|
163
163
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
164
164
|
*
|
|
165
165
|
* @example
|
|
166
|
-
* await client.empathicVoice.configs.updateConfigName("
|
|
166
|
+
* await client.empathicVoice.configs.updateConfigName("your-config-id", {
|
|
167
167
|
* name: "Updated Weather Assistant Config Name"
|
|
168
168
|
* })
|
|
169
169
|
*/
|
|
@@ -185,7 +185,7 @@ export declare class ConfigsClient {
|
|
|
185
185
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
186
186
|
*
|
|
187
187
|
* @example
|
|
188
|
-
* await client.empathicVoice.configs.getConfigVersion("
|
|
188
|
+
* await client.empathicVoice.configs.getConfigVersion("your-config-id", 1)
|
|
189
189
|
*/
|
|
190
190
|
getConfigVersion(id: string, version: number, requestOptions?: ConfigsClient.RequestOptions): core.HttpResponsePromise<Hume.empathicVoice.ReturnConfig>;
|
|
191
191
|
private __getConfigVersion;
|
|
@@ -205,7 +205,7 @@ export declare class ConfigsClient {
|
|
|
205
205
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
206
206
|
*
|
|
207
207
|
* @example
|
|
208
|
-
* await client.empathicVoice.configs.deleteConfigVersion("
|
|
208
|
+
* await client.empathicVoice.configs.deleteConfigVersion("your-config-id", 1)
|
|
209
209
|
*/
|
|
210
210
|
deleteConfigVersion(id: string, version: number, requestOptions?: ConfigsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
211
211
|
private __deleteConfigVersion;
|
|
@@ -226,7 +226,7 @@ export declare class ConfigsClient {
|
|
|
226
226
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
227
227
|
*
|
|
228
228
|
* @example
|
|
229
|
-
* await client.empathicVoice.configs.updateConfigDescription("
|
|
229
|
+
* await client.empathicVoice.configs.updateConfigDescription("your-config-id", 1, {
|
|
230
230
|
* versionDescription: "This is an updated version_description."
|
|
231
231
|
* })
|
|
232
232
|
*/
|
|
@@ -157,7 +157,7 @@ class ConfigsClient {
|
|
|
157
157
|
* await client.empathicVoice.configs.createConfig({
|
|
158
158
|
* name: "Weather Assistant Config",
|
|
159
159
|
* prompt: {
|
|
160
|
-
* id: "
|
|
160
|
+
* id: "",
|
|
161
161
|
* version: 0
|
|
162
162
|
* },
|
|
163
163
|
* eviVersion: "3",
|
|
@@ -256,7 +256,7 @@ class ConfigsClient {
|
|
|
256
256
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
257
257
|
*
|
|
258
258
|
* @example
|
|
259
|
-
* await client.empathicVoice.configs.listConfigVersions("
|
|
259
|
+
* await client.empathicVoice.configs.listConfigVersions("your-config-id")
|
|
260
260
|
*/
|
|
261
261
|
listConfigVersions(id_1) {
|
|
262
262
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
@@ -340,11 +340,11 @@ class ConfigsClient {
|
|
|
340
340
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
341
341
|
*
|
|
342
342
|
* @example
|
|
343
|
-
* await client.empathicVoice.configs.createConfigVersion("
|
|
343
|
+
* await client.empathicVoice.configs.createConfigVersion("your-config-id", {
|
|
344
344
|
* versionDescription: "This is an updated version of the Weather Assistant Config.",
|
|
345
345
|
* eviVersion: "3",
|
|
346
346
|
* prompt: {
|
|
347
|
-
* id: "
|
|
347
|
+
* id: "",
|
|
348
348
|
* version: 0
|
|
349
349
|
* },
|
|
350
350
|
* voice: {
|
|
@@ -444,7 +444,7 @@ class ConfigsClient {
|
|
|
444
444
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
445
445
|
*
|
|
446
446
|
* @example
|
|
447
|
-
* await client.empathicVoice.configs.deleteConfig("
|
|
447
|
+
* await client.empathicVoice.configs.deleteConfig("your-config-id")
|
|
448
448
|
*/
|
|
449
449
|
deleteConfig(id, requestOptions) {
|
|
450
450
|
return core.HttpResponsePromise.fromPromise(this.__deleteConfig(id, requestOptions));
|
|
@@ -501,7 +501,7 @@ class ConfigsClient {
|
|
|
501
501
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
502
502
|
*
|
|
503
503
|
* @example
|
|
504
|
-
* await client.empathicVoice.configs.updateConfigName("
|
|
504
|
+
* await client.empathicVoice.configs.updateConfigName("your-config-id", {
|
|
505
505
|
* name: "Updated Weather Assistant Config Name"
|
|
506
506
|
* })
|
|
507
507
|
*/
|
|
@@ -571,7 +571,7 @@ class ConfigsClient {
|
|
|
571
571
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
572
572
|
*
|
|
573
573
|
* @example
|
|
574
|
-
* await client.empathicVoice.configs.getConfigVersion("
|
|
574
|
+
* await client.empathicVoice.configs.getConfigVersion("your-config-id", 1)
|
|
575
575
|
*/
|
|
576
576
|
getConfigVersion(id, version, requestOptions) {
|
|
577
577
|
return core.HttpResponsePromise.fromPromise(this.__getConfigVersion(id, version, requestOptions));
|
|
@@ -641,7 +641,7 @@ class ConfigsClient {
|
|
|
641
641
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
642
642
|
*
|
|
643
643
|
* @example
|
|
644
|
-
* await client.empathicVoice.configs.deleteConfigVersion("
|
|
644
|
+
* await client.empathicVoice.configs.deleteConfigVersion("your-config-id", 1)
|
|
645
645
|
*/
|
|
646
646
|
deleteConfigVersion(id, version, requestOptions) {
|
|
647
647
|
return core.HttpResponsePromise.fromPromise(this.__deleteConfigVersion(id, version, requestOptions));
|
|
@@ -703,7 +703,7 @@ class ConfigsClient {
|
|
|
703
703
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
704
704
|
*
|
|
705
705
|
* @example
|
|
706
|
-
* await client.empathicVoice.configs.updateConfigDescription("
|
|
706
|
+
* await client.empathicVoice.configs.updateConfigDescription("your-config-id", 1, {
|
|
707
707
|
* versionDescription: "This is an updated version_description."
|
|
708
708
|
* })
|
|
709
709
|
*/
|
|
@@ -5,7 +5,7 @@ import type * as Hume from "../../../../../../index.js";
|
|
|
5
5
|
* versionDescription: "This is an updated version of the Weather Assistant Config.",
|
|
6
6
|
* eviVersion: "3",
|
|
7
7
|
* prompt: {
|
|
8
|
-
* id: "
|
|
8
|
+
* id: "",
|
|
9
9
|
* version: 0
|
|
10
10
|
* },
|
|
11
11
|
* voice: {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.ConfigsClient = void 0;
|
|
19
|
+
var Client_js_1 = require("./client/Client.js");
|
|
20
|
+
Object.defineProperty(exports, "ConfigsClient", { enumerable: true, get: function () { return Client_js_1.ConfigsClient; } });
|
|
21
|
+
__exportStar(require("./client/index.js"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.ControlPlaneClient = void 0;
|
|
19
|
+
var Client_js_1 = require("./client/Client.js");
|
|
20
|
+
Object.defineProperty(exports, "ControlPlaneClient", { enumerable: true, get: function () { return Client_js_1.ControlPlaneClient; } });
|
|
21
|
+
__exportStar(require("./client/index.js"), exports);
|
|
@@ -4,6 +4,7 @@ export * from "./chatGroups/client/requests/index.js";
|
|
|
4
4
|
export * as chatGroups from "./chatGroups/index.js";
|
|
5
5
|
export * from "./chats/client/requests/index.js";
|
|
6
6
|
export * as chats from "./chats/index.js";
|
|
7
|
+
export * as chatWebhooks from "./chatWebhooks/index.js";
|
|
7
8
|
export * from "./configs/client/requests/index.js";
|
|
8
9
|
export * as configs from "./configs/index.js";
|
|
9
10
|
export * as controlPlane from "./controlPlane/index.js";
|
|
@@ -36,13 +36,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.tools = exports.prompts = exports.controlPlane = exports.configs = exports.chats = exports.chatGroups = exports.chat = void 0;
|
|
39
|
+
exports.tools = exports.prompts = exports.controlPlane = exports.configs = exports.chatWebhooks = exports.chats = exports.chatGroups = exports.chat = void 0;
|
|
40
40
|
exports.chat = __importStar(require("./chat/index.js"));
|
|
41
41
|
__exportStar(require("./chat/types/index.js"), exports);
|
|
42
42
|
__exportStar(require("./chatGroups/client/requests/index.js"), exports);
|
|
43
43
|
exports.chatGroups = __importStar(require("./chatGroups/index.js"));
|
|
44
44
|
__exportStar(require("./chats/client/requests/index.js"), exports);
|
|
45
45
|
exports.chats = __importStar(require("./chats/index.js"));
|
|
46
|
+
exports.chatWebhooks = __importStar(require("./chatWebhooks/index.js"));
|
|
46
47
|
__exportStar(require("./configs/client/requests/index.js"), exports);
|
|
47
48
|
exports.configs = __importStar(require("./configs/index.js"));
|
|
48
49
|
exports.controlPlane = __importStar(require("./controlPlane/index.js"));
|
|
@@ -57,7 +57,7 @@ export declare class PromptsClient {
|
|
|
57
57
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
58
58
|
*
|
|
59
59
|
* @example
|
|
60
|
-
* await client.empathicVoice.prompts.listPromptVersions("
|
|
60
|
+
* await client.empathicVoice.prompts.listPromptVersions("your-prompt-id")
|
|
61
61
|
*/
|
|
62
62
|
listPromptVersions(id: string, request?: Hume.empathicVoice.PromptsListPromptVersionsRequest, requestOptions?: PromptsClient.RequestOptions): core.HttpResponsePromise<Hume.empathicVoice.ReturnPagedPrompts>;
|
|
63
63
|
private __listPromptVersions;
|
|
@@ -73,7 +73,7 @@ export declare class PromptsClient {
|
|
|
73
73
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
74
74
|
*
|
|
75
75
|
* @example
|
|
76
|
-
* await client.empathicVoice.prompts.createPromptVersion("
|
|
76
|
+
* await client.empathicVoice.prompts.createPromptVersion("your-prompt-id", {
|
|
77
77
|
* text: "<role>You are an updated version of an AI weather assistant providing users with accurate and up-to-date weather information. Respond to user queries concisely and clearly. Use simple language and avoid technical jargon. Provide temperature, precipitation, wind conditions, and any weather alerts. Include helpful tips if severe weather is expected.</role>",
|
|
78
78
|
* versionDescription: "This is an updated version of the Weather Assistant Prompt."
|
|
79
79
|
* })
|
|
@@ -91,7 +91,7 @@ export declare class PromptsClient {
|
|
|
91
91
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
92
92
|
*
|
|
93
93
|
* @example
|
|
94
|
-
* await client.empathicVoice.prompts.deletePrompt("
|
|
94
|
+
* await client.empathicVoice.prompts.deletePrompt("your-prompt-id")
|
|
95
95
|
*/
|
|
96
96
|
deletePrompt(id: string, requestOptions?: PromptsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
97
97
|
private __deletePrompt;
|
|
@@ -107,7 +107,7 @@ export declare class PromptsClient {
|
|
|
107
107
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
108
108
|
*
|
|
109
109
|
* @example
|
|
110
|
-
* await client.empathicVoice.prompts.updatePromptName("
|
|
110
|
+
* await client.empathicVoice.prompts.updatePromptName("your-prompt-id", {
|
|
111
111
|
* name: "Updated Weather Assistant Prompt Name"
|
|
112
112
|
* })
|
|
113
113
|
*/
|
|
@@ -129,7 +129,7 @@ export declare class PromptsClient {
|
|
|
129
129
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
130
130
|
*
|
|
131
131
|
* @example
|
|
132
|
-
* await client.empathicVoice.prompts.getPromptVersion("
|
|
132
|
+
* await client.empathicVoice.prompts.getPromptVersion("your-prompt-id", 0)
|
|
133
133
|
*/
|
|
134
134
|
getPromptVersion(id: string, version: number, requestOptions?: PromptsClient.RequestOptions): core.HttpResponsePromise<Hume.empathicVoice.ReturnPrompt | undefined>;
|
|
135
135
|
private __getPromptVersion;
|
|
@@ -149,7 +149,7 @@ export declare class PromptsClient {
|
|
|
149
149
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
150
150
|
*
|
|
151
151
|
* @example
|
|
152
|
-
* await client.empathicVoice.prompts.deletePromptVersion("
|
|
152
|
+
* await client.empathicVoice.prompts.deletePromptVersion("your-prompt-id", 1)
|
|
153
153
|
*/
|
|
154
154
|
deletePromptVersion(id: string, version: number, requestOptions?: PromptsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
155
155
|
private __deletePromptVersion;
|
|
@@ -170,7 +170,7 @@ export declare class PromptsClient {
|
|
|
170
170
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
171
171
|
*
|
|
172
172
|
* @example
|
|
173
|
-
* await client.empathicVoice.prompts.updatePromptDescription("
|
|
173
|
+
* await client.empathicVoice.prompts.updatePromptDescription("your-prompt-id", 1, {
|
|
174
174
|
* versionDescription: "This is an updated version_description."
|
|
175
175
|
* })
|
|
176
176
|
*/
|