hume 0.9.2 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.mock/definition/api.yml +6 -6
- package/.mock/definition/empathic-voice/__package__.yml +2810 -2703
- package/.mock/definition/empathic-voice/chat.yml +143 -143
- package/.mock/definition/empathic-voice/chatGroups.yml +579 -508
- package/.mock/definition/empathic-voice/chats.yml +490 -449
- package/.mock/definition/empathic-voice/configs.yml +913 -871
- package/.mock/definition/empathic-voice/customVoices.yml +255 -234
- package/.mock/definition/empathic-voice/prompts.yml +523 -526
- package/.mock/definition/empathic-voice/tools.yml +588 -588
- package/.mock/definition/expression-measurement/batch/__package__.yml +1758 -1758
- package/.mock/definition/expression-measurement/stream/__package__.yml +486 -485
- package/.mock/fern.config.json +3 -3
- package/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +11 -0
- package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +77 -3
- package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetAudioRequest.d.ts +25 -0
- package/api/resources/empathicVoice/resources/chatGroups/client/requests/index.d.ts +1 -0
- package/api/resources/empathicVoice/resources/chats/client/Client.d.ts +10 -0
- package/api/resources/empathicVoice/resources/chats/client/Client.js +63 -2
- package/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
- package/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigsRequest.d.ts +1 -1
- package/api/resources/empathicVoice/resources/customVoices/client/Client.d.ts +2 -7
- package/api/resources/empathicVoice/resources/customVoices/client/Client.js +8 -13
- package/api/resources/empathicVoice/resources/customVoices/client/requests/CustomVoicesListCustomVoicesRequest.d.ts +1 -1
- package/api/resources/empathicVoice/resources/customVoices/client/requests/PostedCustomVoiceName.d.ts +0 -6
- package/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
- package/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptsRequest.d.ts +2 -2
- package/api/resources/empathicVoice/resources/tools/client/Client.js +9 -9
- package/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolsRequest.d.ts +1 -1
- package/api/resources/empathicVoice/types/AudioOutput.d.ts +1 -1
- package/api/resources/empathicVoice/types/PostedCustomVoice.d.ts +2 -2
- package/api/resources/empathicVoice/types/PostedCustomVoiceBaseVoice.d.ts +3 -2
- package/api/resources/empathicVoice/types/PostedCustomVoiceBaseVoice.js +2 -1
- package/api/resources/empathicVoice/types/PostedCustomVoiceParameters.d.ts +51 -9
- package/api/resources/empathicVoice/types/PostedVoice.d.ts +1 -1
- package/api/resources/empathicVoice/types/ReturnCustomVoice.d.ts +2 -2
- package/api/resources/empathicVoice/types/ReturnCustomVoiceBaseVoice.d.ts +3 -2
- package/api/resources/empathicVoice/types/ReturnCustomVoiceBaseVoice.js +2 -1
- package/api/resources/empathicVoice/types/ReturnCustomVoiceParameters.d.ts +51 -9
- package/api/resources/empathicVoice/types/ReturnVoice.d.ts +1 -1
- package/api/resources/empathicVoice/types/UserInput.d.ts +3 -1
- package/api/resources/empathicVoice/types/VoiceNameEnum.d.ts +2 -1
- package/api/resources/empathicVoice/types/VoiceNameEnum.js +1 -0
- package/api/resources/empathicVoice/types/index.d.ts +0 -2
- package/api/resources/empathicVoice/types/index.js +0 -2
- package/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
- package/api/resources/index.d.ts +1 -1
- package/api/resources/index.js +2 -2
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +11 -0
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +77 -3
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetAudioRequest.d.ts +25 -0
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/index.d.ts +1 -0
- package/dist/api/resources/empathicVoice/resources/chats/client/Client.d.ts +10 -0
- package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +63 -2
- package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigsRequest.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/customVoices/client/Client.d.ts +2 -7
- package/dist/api/resources/empathicVoice/resources/customVoices/client/Client.js +8 -13
- package/dist/api/resources/empathicVoice/resources/customVoices/client/requests/CustomVoicesListCustomVoicesRequest.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/customVoices/client/requests/PostedCustomVoiceName.d.ts +0 -6
- package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
- package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptsRequest.d.ts +2 -2
- package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +9 -9
- package/dist/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolsRequest.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/AudioOutput.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/PostedCustomVoice.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/PostedCustomVoiceBaseVoice.d.ts +3 -2
- package/dist/api/resources/empathicVoice/types/PostedCustomVoiceBaseVoice.js +2 -1
- package/dist/api/resources/empathicVoice/types/PostedCustomVoiceParameters.d.ts +51 -9
- package/dist/api/resources/empathicVoice/types/PostedVoice.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/ReturnCustomVoice.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/ReturnCustomVoiceBaseVoice.d.ts +3 -2
- package/dist/api/resources/empathicVoice/types/ReturnCustomVoiceBaseVoice.js +2 -1
- package/dist/api/resources/empathicVoice/types/ReturnCustomVoiceParameters.d.ts +51 -9
- package/dist/api/resources/empathicVoice/types/ReturnVoice.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/UserInput.d.ts +3 -1
- package/dist/api/resources/empathicVoice/types/VoiceNameEnum.d.ts +2 -1
- package/dist/api/resources/empathicVoice/types/VoiceNameEnum.js +1 -0
- package/dist/api/resources/empathicVoice/types/index.d.ts +0 -2
- package/dist/api/resources/empathicVoice/types/index.js +0 -2
- package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
- package/dist/api/resources/index.d.ts +1 -1
- package/dist/api/resources/index.js +2 -2
- package/dist/serialization/resources/empathicVoice/types/PostedCustomVoice.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/PostedCustomVoice.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/PostedCustomVoiceBaseVoice.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/PostedCustomVoiceBaseVoice.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/PostedCustomVoiceParameters.d.ts +9 -2
- package/dist/serialization/resources/empathicVoice/types/PostedCustomVoiceParameters.js +9 -2
- package/dist/serialization/resources/empathicVoice/types/ReturnCustomVoice.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnCustomVoice.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnCustomVoiceBaseVoice.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnCustomVoiceBaseVoice.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnCustomVoiceParameters.d.ts +9 -2
- package/dist/serialization/resources/empathicVoice/types/ReturnCustomVoiceParameters.js +9 -2
- package/dist/serialization/resources/empathicVoice/types/VoiceNameEnum.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/VoiceNameEnum.js +1 -0
- package/dist/serialization/resources/empathicVoice/types/index.d.ts +0 -2
- package/dist/serialization/resources/empathicVoice/types/index.js +0 -2
- package/dist/serialization/resources/index.d.ts +1 -1
- package/dist/serialization/resources/index.js +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +573 -607
- package/serialization/resources/empathicVoice/types/PostedCustomVoice.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/PostedCustomVoice.js +1 -1
- package/serialization/resources/empathicVoice/types/PostedCustomVoiceBaseVoice.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/PostedCustomVoiceBaseVoice.js +1 -1
- package/serialization/resources/empathicVoice/types/PostedCustomVoiceParameters.d.ts +9 -2
- package/serialization/resources/empathicVoice/types/PostedCustomVoiceParameters.js +9 -2
- package/serialization/resources/empathicVoice/types/ReturnCustomVoice.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/ReturnCustomVoice.js +1 -1
- package/serialization/resources/empathicVoice/types/ReturnCustomVoiceBaseVoice.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/ReturnCustomVoiceBaseVoice.js +1 -1
- package/serialization/resources/empathicVoice/types/ReturnCustomVoiceParameters.d.ts +9 -2
- package/serialization/resources/empathicVoice/types/ReturnCustomVoiceParameters.js +9 -2
- package/serialization/resources/empathicVoice/types/VoiceNameEnum.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/VoiceNameEnum.js +1 -0
- package/serialization/resources/empathicVoice/types/index.d.ts +0 -2
- package/serialization/resources/empathicVoice/types/index.js +0 -2
- package/serialization/resources/index.d.ts +1 -1
- package/serialization/resources/index.js +2 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/empathicVoice/types/ExtendedVoiceArgs.d.ts +0 -9
- package/api/resources/empathicVoice/types/VoiceArgs.d.ts +0 -13
- package/dist/api/resources/empathicVoice/types/ExtendedVoiceArgs.d.ts +0 -9
- package/dist/api/resources/empathicVoice/types/ExtendedVoiceArgs.js +0 -5
- package/dist/api/resources/empathicVoice/types/VoiceArgs.d.ts +0 -13
- package/dist/api/resources/empathicVoice/types/VoiceArgs.js +0 -5
- package/dist/serialization/resources/empathicVoice/types/ExtendedVoiceArgs.d.ts +0 -15
- package/dist/serialization/resources/empathicVoice/types/ExtendedVoiceArgs.js +0 -36
- package/dist/serialization/resources/empathicVoice/types/VoiceArgs.d.ts +0 -19
- package/dist/serialization/resources/empathicVoice/types/VoiceArgs.js +0 -40
- package/serialization/resources/empathicVoice/types/ExtendedVoiceArgs.d.ts +0 -15
- package/serialization/resources/empathicVoice/types/ExtendedVoiceArgs.js +0 -36
- package/serialization/resources/empathicVoice/types/VoiceArgs.d.ts +0 -19
- package/serialization/resources/empathicVoice/types/VoiceArgs.js +0 -40
- /package/api/resources/empathicVoice/{types/ExtendedVoiceArgs.js → resources/chatGroups/client/requests/ChatGroupsGetAudioRequest.js} +0 -0
- /package/{api/resources/empathicVoice/types/VoiceArgs.js → dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetAudioRequest.js} +0 -0
package/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptsRequest.d.ts
CHANGED
|
@@ -22,11 +22,11 @@ export interface PromptsListPromptsRequest {
|
|
|
22
22
|
*/
|
|
23
23
|
pageSize?: number;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Only include the most recent version of each prompt in the list.
|
|
26
26
|
*/
|
|
27
27
|
restrictToMostRecent?: boolean;
|
|
28
28
|
/**
|
|
29
|
-
* Filter to only include prompts with
|
|
29
|
+
* Filter to only include prompts with name.
|
|
30
30
|
*/
|
|
31
31
|
name?: string;
|
|
32
32
|
}
|
|
@@ -86,7 +86,7 @@ class Tools {
|
|
|
86
86
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
87
87
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/tools"),
|
|
88
88
|
method: "GET",
|
|
89
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
89
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.3", "User-Agent": "hume/0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
90
90
|
contentType: "application/json",
|
|
91
91
|
queryParameters: _queryParams,
|
|
92
92
|
requestType: "json",
|
|
@@ -169,7 +169,7 @@ class Tools {
|
|
|
169
169
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
170
170
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/tools"),
|
|
171
171
|
method: "POST",
|
|
172
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
172
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.3", "User-Agent": "hume/0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
173
173
|
contentType: "application/json",
|
|
174
174
|
requestType: "json",
|
|
175
175
|
body: serializers.empathicVoice.PostedUserDefinedTool.jsonOrThrow(request, {
|
|
@@ -249,7 +249,7 @@ class Tools {
|
|
|
249
249
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
250
250
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}`),
|
|
251
251
|
method: "GET",
|
|
252
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
252
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.3", "User-Agent": "hume/0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
253
253
|
contentType: "application/json",
|
|
254
254
|
queryParameters: _queryParams,
|
|
255
255
|
requestType: "json",
|
|
@@ -321,7 +321,7 @@ class Tools {
|
|
|
321
321
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
322
322
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}`),
|
|
323
323
|
method: "POST",
|
|
324
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
324
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.3", "User-Agent": "hume/0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
325
325
|
contentType: "application/json",
|
|
326
326
|
requestType: "json",
|
|
327
327
|
body: serializers.empathicVoice.PostedUserDefinedToolVersion.jsonOrThrow(request, {
|
|
@@ -389,7 +389,7 @@ class Tools {
|
|
|
389
389
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
390
390
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}`),
|
|
391
391
|
method: "DELETE",
|
|
392
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
392
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.3", "User-Agent": "hume/0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
393
393
|
contentType: "application/json",
|
|
394
394
|
requestType: "json",
|
|
395
395
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -452,7 +452,7 @@ class Tools {
|
|
|
452
452
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
453
453
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}`),
|
|
454
454
|
method: "PATCH",
|
|
455
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
455
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.3", "User-Agent": "hume/0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
456
456
|
contentType: "application/json",
|
|
457
457
|
requestType: "json",
|
|
458
458
|
body: serializers.empathicVoice.PostedUserDefinedToolName.jsonOrThrow(request, {
|
|
@@ -521,7 +521,7 @@ class Tools {
|
|
|
521
521
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
522
522
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
523
523
|
method: "GET",
|
|
524
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
524
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.3", "User-Agent": "hume/0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
525
525
|
contentType: "application/json",
|
|
526
526
|
requestType: "json",
|
|
527
527
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -591,7 +591,7 @@ class Tools {
|
|
|
591
591
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
592
592
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
593
593
|
method: "DELETE",
|
|
594
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
594
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.3", "User-Agent": "hume/0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
595
595
|
contentType: "application/json",
|
|
596
596
|
requestType: "json",
|
|
597
597
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -659,7 +659,7 @@ class Tools {
|
|
|
659
659
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
660
660
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
661
661
|
method: "PATCH",
|
|
662
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
662
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.3", "User-Agent": "hume/0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
663
663
|
contentType: "application/json",
|
|
664
664
|
requestType: "json",
|
|
665
665
|
body: serializers.empathicVoice.PostedUserDefinedToolVersionDescription.jsonOrThrow(request, {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* The type of message sent through the socket; for an Audio Output message, this must be `audio_output`.
|
|
6
6
|
*/
|
|
7
7
|
export interface AudioOutput {
|
|
8
8
|
/** The type of message sent through the socket; for an Audio Output message, this must be `audio_output`. */
|
|
@@ -14,8 +14,8 @@ export interface PostedCustomVoice {
|
|
|
14
14
|
name: string;
|
|
15
15
|
/** Specifies the base voice used to create the Custom Voice. */
|
|
16
16
|
baseVoice: Hume.empathicVoice.PostedCustomVoiceBaseVoice;
|
|
17
|
-
/** The name of the parameter model used to define which attributes are used by the `parameters` field. Currently, only `
|
|
18
|
-
parameterModel: "
|
|
17
|
+
/** The name of the parameter model used to define which attributes are used by the `parameters` field. Currently, only `20241004-11parameter` is supported as the parameter model. */
|
|
18
|
+
parameterModel: "20241004-11parameter";
|
|
19
19
|
/**
|
|
20
20
|
* The specified attributes of a Custom Voice.
|
|
21
21
|
*
|
|
@@ -4,13 +4,14 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Specifies the base voice used to create the Custom Voice.
|
|
6
6
|
*/
|
|
7
|
-
export declare type PostedCustomVoiceBaseVoice = "ITO" | "KORA" | "DACHER" | "AURA" | "FINN" | "STELLA" | "
|
|
7
|
+
export declare type PostedCustomVoiceBaseVoice = "ITO" | "KORA" | "DACHER" | "AURA" | "FINN" | "WHIMSY" | "STELLA" | "SUNNY";
|
|
8
8
|
export declare const PostedCustomVoiceBaseVoice: {
|
|
9
9
|
readonly Ito: "ITO";
|
|
10
10
|
readonly Kora: "KORA";
|
|
11
11
|
readonly Dacher: "DACHER";
|
|
12
12
|
readonly Aura: "AURA";
|
|
13
13
|
readonly Finn: "FINN";
|
|
14
|
-
readonly Stella: "STELLA";
|
|
15
14
|
readonly Whimsy: "WHIMSY";
|
|
15
|
+
readonly Stella: "STELLA";
|
|
16
|
+
readonly Sunny: "SUNNY";
|
|
16
17
|
};
|
|
@@ -8,27 +8,69 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export interface PostedCustomVoiceParameters {
|
|
10
10
|
/**
|
|
11
|
-
* The vocalization of gender, ranging between masculine and feminine.
|
|
11
|
+
* The vocalization of gender, ranging between more masculine and more feminine.
|
|
12
12
|
*
|
|
13
13
|
* The default value is `0`, with a minimum of `-100` (more masculine) and a maximum of `100` (more feminine). A value of `0` leaves this parameter unchanged from the base voice.
|
|
14
14
|
*/
|
|
15
15
|
gender?: number;
|
|
16
16
|
/**
|
|
17
|
-
* The
|
|
17
|
+
* The clarity of the voice, ranging between mumbled and articulate.
|
|
18
18
|
*
|
|
19
|
-
* The default value is `0`, with a minimum of `-100` (
|
|
19
|
+
* The default value is `0`, with a minimum of `-100` (mumbled) and a maximum of `100` (articulate). A value of `0` leaves this parameter unchanged from the base voice.
|
|
20
20
|
*/
|
|
21
|
-
|
|
21
|
+
articulation?: number;
|
|
22
22
|
/**
|
|
23
|
-
* The
|
|
23
|
+
* The firmness of the voice, ranging between whiny and bold.
|
|
24
24
|
*
|
|
25
|
-
* The default value is `0`, with a minimum of `-100` (
|
|
25
|
+
* The default value is `0`, with a minimum of `-100` (whiny) and a maximum of `100` (bold). A value of `0` leaves this parameter unchanged from the base voice.
|
|
26
|
+
*/
|
|
27
|
+
assertiveness?: number;
|
|
28
|
+
/**
|
|
29
|
+
* The density of the voice, ranging between deflated and buoyant.
|
|
30
|
+
*
|
|
31
|
+
* The default value is `0`, with a minimum of `-100` (deflated) and a maximum of `100` (buoyant). A value of `0` leaves this parameter unchanged from the base voice.
|
|
32
|
+
*/
|
|
33
|
+
buoyancy?: number;
|
|
34
|
+
/**
|
|
35
|
+
* The assuredness of the voice, ranging between shy and confident.
|
|
36
|
+
*
|
|
37
|
+
* The default value is `0`, with a minimum of `-100` (shy) and a maximum of `100` (confident). A value of `0` leaves this parameter unchanged from the base voice.
|
|
38
|
+
*/
|
|
39
|
+
confidence?: number;
|
|
40
|
+
/**
|
|
41
|
+
* The excitement within the voice, ranging between calm and enthusiastic.
|
|
42
|
+
*
|
|
43
|
+
* The default value is `0`, with a minimum of `-100` (calm) and a maximum of `100` (enthusiastic). A value of `0` leaves this parameter unchanged from the base voice.
|
|
44
|
+
*/
|
|
45
|
+
enthusiasm?: number;
|
|
46
|
+
/**
|
|
47
|
+
* The openness of the voice, ranging between clear and nasal.
|
|
48
|
+
*
|
|
49
|
+
* The default value is `0`, with a minimum of `-100` (clear) and a maximum of `100` (nasal). A value of `0` leaves this parameter unchanged from the base voice.
|
|
26
50
|
*/
|
|
27
51
|
nasality?: number;
|
|
28
52
|
/**
|
|
29
|
-
* The
|
|
53
|
+
* The stress within the voice, ranging between tense and relaxed.
|
|
54
|
+
*
|
|
55
|
+
* The default value is `0`, with a minimum of `-100` (tense) and a maximum of `100` (relaxed). A value of `0` leaves this parameter unchanged from the base voice.
|
|
56
|
+
*/
|
|
57
|
+
relaxedness?: number;
|
|
58
|
+
/**
|
|
59
|
+
* The texture of the voice, ranging between smooth and staccato.
|
|
60
|
+
*
|
|
61
|
+
* The default value is `0`, with a minimum of `-100` (smooth) and a maximum of `100` (staccato). A value of `0` leaves this parameter unchanged from the base voice.
|
|
62
|
+
*/
|
|
63
|
+
smoothness?: number;
|
|
64
|
+
/**
|
|
65
|
+
* The liveliness behind the voice, ranging between tepid and vigorous.
|
|
66
|
+
*
|
|
67
|
+
* The default value is `0`, with a minimum of `-100` (tepid) and a maximum of `100` (vigorous). A value of `0` leaves this parameter unchanged from the base voice.
|
|
68
|
+
*/
|
|
69
|
+
tepidity?: number;
|
|
70
|
+
/**
|
|
71
|
+
* The containment of the voice, ranging between tight and breathy.
|
|
30
72
|
*
|
|
31
|
-
* The default value is `0`, with a minimum of `-100` (
|
|
73
|
+
* The default value is `0`, with a minimum of `-100` (tight) and a maximum of `100` (breathy). A value of `0` leaves this parameter unchanged from the base voice.
|
|
32
74
|
*/
|
|
33
|
-
|
|
75
|
+
tightness?: number;
|
|
34
76
|
}
|
|
@@ -11,7 +11,7 @@ export interface PostedVoice {
|
|
|
11
11
|
/**
|
|
12
12
|
* Specifies the name of the voice to use.
|
|
13
13
|
*
|
|
14
|
-
* This can be either the name of a previously created Custom Voice or one of our
|
|
14
|
+
* This can be either the name of a previously created Custom Voice or one of our 8 base voices: `ITO`, `KORA`, `DACHER`, `AURA`, `FINN`, `WHIMSY`, `STELLA`, or `SUNNY`.
|
|
15
15
|
*
|
|
16
16
|
* The name will be automatically converted to uppercase (e.g., "Ito" becomes "ITO"). If a name is not specified, then a [Custom Voice](/reference/empathic-voice-interface-evi/configs/create-config#request.body.voice.custom_voice) specification must be provided.
|
|
17
17
|
*/
|
|
@@ -24,8 +24,8 @@ export interface ReturnCustomVoice {
|
|
|
24
24
|
modifiedOn: number;
|
|
25
25
|
/** The base voice used to create the Custom Voice. */
|
|
26
26
|
baseVoice: Hume.empathicVoice.ReturnCustomVoiceBaseVoice;
|
|
27
|
-
/** The name of the parameter model used to define which attributes are used by the `parameters` field. Currently, only `
|
|
28
|
-
parameterModel: "
|
|
27
|
+
/** The name of the parameter model used to define which attributes are used by the `parameters` field. Currently, only `20241004-11parameter` is supported as the parameter model. */
|
|
28
|
+
parameterModel: "20241004-11parameter";
|
|
29
29
|
/** The specified attributes of a Custom Voice. If a parameter's value is `0` (default), it will not be included in the response. */
|
|
30
30
|
parameters: Hume.empathicVoice.ReturnCustomVoiceParameters;
|
|
31
31
|
}
|
|
@@ -4,13 +4,14 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* The base voice used to create the Custom Voice.
|
|
6
6
|
*/
|
|
7
|
-
export declare type ReturnCustomVoiceBaseVoice = "ITO" | "KORA" | "DACHER" | "AURA" | "FINN" | "STELLA" | "
|
|
7
|
+
export declare type ReturnCustomVoiceBaseVoice = "ITO" | "KORA" | "DACHER" | "AURA" | "FINN" | "WHIMSY" | "STELLA" | "SUNNY";
|
|
8
8
|
export declare const ReturnCustomVoiceBaseVoice: {
|
|
9
9
|
readonly Ito: "ITO";
|
|
10
10
|
readonly Kora: "KORA";
|
|
11
11
|
readonly Dacher: "DACHER";
|
|
12
12
|
readonly Aura: "AURA";
|
|
13
13
|
readonly Finn: "FINN";
|
|
14
|
-
readonly Stella: "STELLA";
|
|
15
14
|
readonly Whimsy: "WHIMSY";
|
|
15
|
+
readonly Stella: "STELLA";
|
|
16
|
+
readonly Sunny: "SUNNY";
|
|
16
17
|
};
|
|
@@ -6,27 +6,69 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export interface ReturnCustomVoiceParameters {
|
|
8
8
|
/**
|
|
9
|
-
* The vocalization of gender, ranging between masculine and feminine.
|
|
9
|
+
* The vocalization of gender, ranging between more masculine and more feminine.
|
|
10
10
|
*
|
|
11
11
|
* The default value is `0`, with a minimum of `-100` (more masculine) and a maximum of `100` (more feminine). A value of `0` leaves this parameter unchanged from the base voice.
|
|
12
12
|
*/
|
|
13
13
|
gender?: number;
|
|
14
14
|
/**
|
|
15
|
-
* The
|
|
15
|
+
* The clarity of the voice, ranging between mumbled and articulate.
|
|
16
16
|
*
|
|
17
|
-
* The default value is `0`, with a minimum of `-100` (
|
|
17
|
+
* The default value is `0`, with a minimum of `-100` (mumbled) and a maximum of `100` (articulate). A value of `0` leaves this parameter unchanged from the base voice.
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
articulation?: number;
|
|
20
20
|
/**
|
|
21
|
-
* The
|
|
21
|
+
* The firmness of the voice, ranging between whiny and bold.
|
|
22
22
|
*
|
|
23
|
-
* The default value is `0`, with a minimum of `-100` (
|
|
23
|
+
* The default value is `0`, with a minimum of `-100` (whiny) and a maximum of `100` (bold). A value of `0` leaves this parameter unchanged from the base voice.
|
|
24
|
+
*/
|
|
25
|
+
assertiveness?: number;
|
|
26
|
+
/**
|
|
27
|
+
* The density of the voice, ranging between deflated and buoyant.
|
|
28
|
+
*
|
|
29
|
+
* The default value is `0`, with a minimum of `-100` (deflated) and a maximum of `100` (buoyant). A value of `0` leaves this parameter unchanged from the base voice.
|
|
30
|
+
*/
|
|
31
|
+
buoyancy?: number;
|
|
32
|
+
/**
|
|
33
|
+
* The assuredness of the voice, ranging between shy and confident.
|
|
34
|
+
*
|
|
35
|
+
* The default value is `0`, with a minimum of `-100` (shy) and a maximum of `100` (confident). A value of `0` leaves this parameter unchanged from the base voice.
|
|
36
|
+
*/
|
|
37
|
+
confidence?: number;
|
|
38
|
+
/**
|
|
39
|
+
* The excitement within the voice, ranging between calm and enthusiastic.
|
|
40
|
+
*
|
|
41
|
+
* The default value is `0`, with a minimum of `-100` (calm) and a maximum of `100` (enthusiastic). A value of `0` leaves this parameter unchanged from the base voice.
|
|
42
|
+
*/
|
|
43
|
+
enthusiasm?: number;
|
|
44
|
+
/**
|
|
45
|
+
* The openness of the voice, ranging between clear and nasal.
|
|
46
|
+
*
|
|
47
|
+
* The default value is `0`, with a minimum of `-100` (clear) and a maximum of `100` (nasal). A value of `0` leaves this parameter unchanged from the base voice.
|
|
24
48
|
*/
|
|
25
49
|
nasality?: number;
|
|
26
50
|
/**
|
|
27
|
-
* The
|
|
51
|
+
* The stress within the voice, ranging between tense and relaxed.
|
|
52
|
+
*
|
|
53
|
+
* The default value is `0`, with a minimum of `-100` (tense) and a maximum of `100` (relaxed). A value of `0` leaves this parameter unchanged from the base voice.
|
|
54
|
+
*/
|
|
55
|
+
relaxedness?: number;
|
|
56
|
+
/**
|
|
57
|
+
* The texture of the voice, ranging between smooth and staccato.
|
|
58
|
+
*
|
|
59
|
+
* The default value is `0`, with a minimum of `-100` (smooth) and a maximum of `100` (staccato). A value of `0` leaves this parameter unchanged from the base voice.
|
|
60
|
+
*/
|
|
61
|
+
smoothness?: number;
|
|
62
|
+
/**
|
|
63
|
+
* The liveliness behind the voice, ranging between tepid and vigorous.
|
|
64
|
+
*
|
|
65
|
+
* The default value is `0`, with a minimum of `-100` (tepid) and a maximum of `100` (vigorous). A value of `0` leaves this parameter unchanged from the base voice.
|
|
66
|
+
*/
|
|
67
|
+
tepidity?: number;
|
|
68
|
+
/**
|
|
69
|
+
* The containment of the voice, ranging between tight and breathy.
|
|
28
70
|
*
|
|
29
|
-
* The default value is `0`, with a minimum of `-100` (
|
|
71
|
+
* The default value is `0`, with a minimum of `-100` (tight) and a maximum of `100` (breathy). A value of `0` leaves this parameter unchanged from the base voice.
|
|
30
72
|
*/
|
|
31
|
-
|
|
73
|
+
tightness?: number;
|
|
32
74
|
}
|
|
@@ -11,7 +11,7 @@ export interface ReturnVoice {
|
|
|
11
11
|
/**
|
|
12
12
|
* The name of the specified voice.
|
|
13
13
|
*
|
|
14
|
-
* This will either be the name of a previously created Custom Voice or one of our
|
|
14
|
+
* This will either be the name of a previously created Custom Voice or one of our 8 base voices: `ITO`, `KORA`, `DACHER`, `AURA`, `FINN`, `WHIMSY`, `STELLA`, or `SUNNY`.
|
|
15
15
|
*/
|
|
16
16
|
name?: string;
|
|
17
17
|
customVoice?: Hume.empathicVoice.ReturnCustomVoice;
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
* User text to insert into the conversation.
|
|
5
|
+
* User text to insert into the conversation. Text sent through a User Input message is treated as the user’s speech to EVI. EVI processes this input and provides a corresponding response.
|
|
6
|
+
*
|
|
7
|
+
* Expression measurement results are not available for User Input messages, as the prosody model relies on audio input and cannot process text alone.
|
|
6
8
|
*/
|
|
7
9
|
export interface UserInput {
|
|
8
10
|
/** The type of message sent through the socket; must be `user_input` for our server to correctly identify and process it as a User Input message. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export declare type VoiceNameEnum = "ITO" | "KORA" | "DACHER" | "AURA" | "FINN" | "SIENNA" | "WILLOW" | "SCOUT" | "WHIMSY" | "ACE" | "JUNO" | "STELLA" | "HIRO";
|
|
4
|
+
export declare type VoiceNameEnum = "ITO" | "KORA" | "DACHER" | "AURA" | "FINN" | "SIENNA" | "WILLOW" | "SCOUT" | "WHIMSY" | "ACE" | "JUNO" | "STELLA" | "HIRO" | "SUNNY";
|
|
5
5
|
export declare const VoiceNameEnum: {
|
|
6
6
|
readonly Ito: "ITO";
|
|
7
7
|
readonly Kora: "KORA";
|
|
@@ -16,4 +16,5 @@ export declare const VoiceNameEnum: {
|
|
|
16
16
|
readonly Juno: "JUNO";
|
|
17
17
|
readonly Stella: "STELLA";
|
|
18
18
|
readonly Hiro: "HIRO";
|
|
19
|
+
readonly Sunny: "SUNNY";
|
|
19
20
|
};
|
|
@@ -96,9 +96,7 @@ export * from "./JsonMessage";
|
|
|
96
96
|
export * from "./TtsInput";
|
|
97
97
|
export * from "./TextInput";
|
|
98
98
|
export * from "./FunctionCallResponseInput";
|
|
99
|
-
export * from "./ExtendedVoiceArgs";
|
|
100
99
|
export * from "./HttpValidationError";
|
|
101
100
|
export * from "./ValidationErrorLocItem";
|
|
102
101
|
export * from "./ValidationError";
|
|
103
|
-
export * from "./VoiceArgs";
|
|
104
102
|
export * from "./VoiceNameEnum";
|
|
@@ -112,9 +112,7 @@ __exportStar(require("./JsonMessage"), exports);
|
|
|
112
112
|
__exportStar(require("./TtsInput"), exports);
|
|
113
113
|
__exportStar(require("./TextInput"), exports);
|
|
114
114
|
__exportStar(require("./FunctionCallResponseInput"), exports);
|
|
115
|
-
__exportStar(require("./ExtendedVoiceArgs"), exports);
|
|
116
115
|
__exportStar(require("./HttpValidationError"), exports);
|
|
117
116
|
__exportStar(require("./ValidationErrorLocItem"), exports);
|
|
118
117
|
__exportStar(require("./ValidationError"), exports);
|
|
119
|
-
__exportStar(require("./VoiceArgs"), exports);
|
|
120
118
|
__exportStar(require("./VoiceNameEnum"), exports);
|
|
@@ -88,7 +88,7 @@ class Batch {
|
|
|
88
88
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
89
89
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/batch/jobs"),
|
|
90
90
|
method: "GET",
|
|
91
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
91
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.3", "User-Agent": "hume/0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
92
92
|
contentType: "application/json",
|
|
93
93
|
queryParameters: _queryParams,
|
|
94
94
|
requestType: "json",
|
|
@@ -143,7 +143,7 @@ class Batch {
|
|
|
143
143
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
144
144
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/batch/jobs"),
|
|
145
145
|
method: "POST",
|
|
146
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
146
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.3", "User-Agent": "hume/0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
147
147
|
contentType: "application/json",
|
|
148
148
|
requestType: "json",
|
|
149
149
|
body: serializers.expressionMeasurement.batch.InferenceBaseRequest.jsonOrThrow(request, {
|
|
@@ -197,7 +197,7 @@ class Batch {
|
|
|
197
197
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
198
198
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/batch/jobs/${encodeURIComponent(id)}`),
|
|
199
199
|
method: "GET",
|
|
200
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
200
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.3", "User-Agent": "hume/0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
201
201
|
contentType: "application/json",
|
|
202
202
|
requestType: "json",
|
|
203
203
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -248,7 +248,7 @@ class Batch {
|
|
|
248
248
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
249
249
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/batch/jobs/${encodeURIComponent(id)}/predictions`),
|
|
250
250
|
method: "GET",
|
|
251
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
251
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.3", "User-Agent": "hume/0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
252
252
|
contentType: "application/json",
|
|
253
253
|
requestType: "json",
|
|
254
254
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -293,7 +293,7 @@ class Batch {
|
|
|
293
293
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
294
294
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/batch/jobs/${encodeURIComponent(id)}/artifacts`),
|
|
295
295
|
method: "GET",
|
|
296
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
296
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.3", "User-Agent": "hume/0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
297
297
|
contentType: "application/json",
|
|
298
298
|
requestType: "json",
|
|
299
299
|
responseType: "streaming",
|
|
@@ -349,7 +349,7 @@ class Batch {
|
|
|
349
349
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
350
350
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/batch/jobs"),
|
|
351
351
|
method: "POST",
|
|
352
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
352
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.3", "User-Agent": "hume/0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers),
|
|
353
353
|
requestType: "file",
|
|
354
354
|
duplex: _maybeEncodedRequest.duplex,
|
|
355
355
|
body: _maybeEncodedRequest.body,
|
package/api/resources/index.d.ts
CHANGED
package/api/resources/index.js
CHANGED
|
@@ -23,6 +23,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
27
|
-
exports.expressionMeasurement = __importStar(require("./expressionMeasurement"));
|
|
26
|
+
exports.expressionMeasurement = exports.empathicVoice = void 0;
|
|
28
27
|
exports.empathicVoice = __importStar(require("./empathicVoice"));
|
|
28
|
+
exports.expressionMeasurement = __importStar(require("./expressionMeasurement"));
|
|
@@ -73,6 +73,17 @@ export declare class ChatGroups {
|
|
|
73
73
|
* })
|
|
74
74
|
*/
|
|
75
75
|
listChatGroupEvents(id: string, request?: Hume.empathicVoice.ChatGroupsListChatGroupEventsRequest, requestOptions?: ChatGroups.RequestOptions): Promise<Hume.empathicVoice.ReturnChatGroupPagedEvents>;
|
|
76
|
+
/**
|
|
77
|
+
* @param {string} id - Identifier for a chat. Formatted as a UUID.
|
|
78
|
+
* @param {Hume.empathicVoice.ChatGroupsGetAudioRequest} request
|
|
79
|
+
* @param {ChatGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* await client.empathicVoice.chatGroups.getAudio("id")
|
|
85
|
+
*/
|
|
86
|
+
getAudio(id: string, request?: Hume.empathicVoice.ChatGroupsGetAudioRequest, requestOptions?: ChatGroups.RequestOptions): Promise<Hume.empathicVoice.ReturnChatPagedEvents>;
|
|
76
87
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
77
88
|
"X-Hume-Api-Key": string | undefined;
|
|
78
89
|
}>;
|