hume 0.9.6 → 0.9.7
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/empathic-voice/__package__.yml +66 -42
- package/.mock/definition/empathic-voice/chatGroups.yml +10 -0
- package/.mock/definition/empathic-voice/chats.yml +6 -0
- package/.mock/definition/empathic-voice/configs.yml +18 -6
- package/.mock/definition/empathic-voice/customVoices.yml +12 -3
- package/.mock/definition/empathic-voice/prompts.yml +18 -0
- package/.mock/definition/empathic-voice/tools.yml +18 -0
- package/.mock/definition/expression-measurement/batch/__package__.yml +12 -0
- package/.mock/definition/expression-measurement/stream/__package__.yml +19 -0
- package/.mock/fern.config.json +1 -1
- package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +4 -4
- package/api/resources/empathicVoice/resources/chats/client/Client.js +3 -3
- package/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
- package/api/resources/empathicVoice/resources/customVoices/client/Client.js +6 -6
- package/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
- package/api/resources/empathicVoice/resources/tools/client/Client.js +9 -9
- package/api/resources/empathicVoice/types/PostedCustomVoiceParameters.d.ts +10 -16
- package/api/resources/empathicVoice/types/ReturnCustomVoiceParameters.d.ts +10 -16
- package/api/resources/empathicVoice/types/SessionSettings.d.ts +8 -2
- package/api/resources/empathicVoice/types/SessionSettingsVariablesValue.d.ts +4 -0
- package/api/resources/empathicVoice/types/SessionSettingsVariablesValue.js +5 -0
- package/api/resources/empathicVoice/types/index.d.ts +1 -0
- package/api/resources/empathicVoice/types/index.js +1 -0
- 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.js +4 -4
- package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +3 -3
- package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
- package/dist/api/resources/empathicVoice/resources/customVoices/client/Client.js +6 -6
- package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
- package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +9 -9
- package/dist/api/resources/empathicVoice/types/PostedCustomVoiceParameters.d.ts +10 -16
- package/dist/api/resources/empathicVoice/types/ReturnCustomVoiceParameters.d.ts +10 -16
- package/dist/api/resources/empathicVoice/types/SessionSettings.d.ts +8 -2
- package/dist/api/resources/empathicVoice/types/SessionSettingsVariablesValue.d.ts +4 -0
- package/dist/api/resources/empathicVoice/types/SessionSettingsVariablesValue.js +5 -0
- package/dist/api/resources/empathicVoice/types/index.d.ts +1 -0
- package/dist/api/resources/empathicVoice/types/index.js +1 -0
- 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/PostedCustomVoiceParameters.d.ts +0 -1
- package/dist/serialization/resources/empathicVoice/types/PostedCustomVoiceParameters.js +0 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnCustomVoiceParameters.d.ts +0 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnCustomVoiceParameters.js +0 -1
- package/dist/serialization/resources/empathicVoice/types/SessionSettings.d.ts +2 -1
- package/dist/serialization/resources/empathicVoice/types/SessionSettings.js +2 -1
- package/dist/serialization/resources/empathicVoice/types/SessionSettingsVariablesValue.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/SessionSettingsVariablesValue.js +35 -0
- package/dist/serialization/resources/empathicVoice/types/index.d.ts +1 -0
- package/dist/serialization/resources/empathicVoice/types/index.js +1 -0
- 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 +536 -536
- package/serialization/resources/empathicVoice/types/PostedCustomVoiceParameters.d.ts +0 -1
- package/serialization/resources/empathicVoice/types/PostedCustomVoiceParameters.js +0 -1
- package/serialization/resources/empathicVoice/types/ReturnCustomVoiceParameters.d.ts +0 -1
- package/serialization/resources/empathicVoice/types/ReturnCustomVoiceParameters.js +0 -1
- package/serialization/resources/empathicVoice/types/SessionSettings.d.ts +2 -1
- package/serialization/resources/empathicVoice/types/SessionSettings.js +2 -1
- package/serialization/resources/empathicVoice/types/SessionSettingsVariablesValue.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/SessionSettingsVariablesValue.js +35 -0
- package/serialization/resources/empathicVoice/types/index.d.ts +1 -0
- package/serialization/resources/empathicVoice/types/index.js +1 -0
- 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
|
@@ -86,7 +86,7 @@ class Prompts {
|
|
|
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/prompts"),
|
|
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.7", "User-Agent": "hume/0.9.7", "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",
|
|
@@ -166,7 +166,7 @@ class Prompts {
|
|
|
166
166
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
167
167
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/prompts"),
|
|
168
168
|
method: "POST",
|
|
169
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
169
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.7", "User-Agent": "hume/0.9.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
170
170
|
contentType: "application/json",
|
|
171
171
|
requestType: "json",
|
|
172
172
|
body: serializers.empathicVoice.PostedPrompt.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -244,7 +244,7 @@ class Prompts {
|
|
|
244
244
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
245
245
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}`),
|
|
246
246
|
method: "GET",
|
|
247
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
247
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.7", "User-Agent": "hume/0.9.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
248
248
|
contentType: "application/json",
|
|
249
249
|
queryParameters: _queryParams,
|
|
250
250
|
requestType: "json",
|
|
@@ -314,7 +314,7 @@ class Prompts {
|
|
|
314
314
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
315
315
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}`),
|
|
316
316
|
method: "POST",
|
|
317
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
317
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.7", "User-Agent": "hume/0.9.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
318
318
|
contentType: "application/json",
|
|
319
319
|
requestType: "json",
|
|
320
320
|
body: serializers.empathicVoice.PostedPromptVersion.jsonOrThrow(request, {
|
|
@@ -382,7 +382,7 @@ class Prompts {
|
|
|
382
382
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
383
383
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}`),
|
|
384
384
|
method: "DELETE",
|
|
385
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
385
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.7", "User-Agent": "hume/0.9.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
386
386
|
contentType: "application/json",
|
|
387
387
|
requestType: "json",
|
|
388
388
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -445,7 +445,7 @@ class Prompts {
|
|
|
445
445
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
446
446
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}`),
|
|
447
447
|
method: "PATCH",
|
|
448
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
448
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.7", "User-Agent": "hume/0.9.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
449
449
|
contentType: "application/json",
|
|
450
450
|
requestType: "json",
|
|
451
451
|
body: serializers.empathicVoice.PostedPromptName.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -512,7 +512,7 @@ class Prompts {
|
|
|
512
512
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
513
513
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
514
514
|
method: "GET",
|
|
515
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
515
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.7", "User-Agent": "hume/0.9.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
516
516
|
contentType: "application/json",
|
|
517
517
|
requestType: "json",
|
|
518
518
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -582,7 +582,7 @@ class Prompts {
|
|
|
582
582
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
583
583
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
584
584
|
method: "DELETE",
|
|
585
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
585
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.7", "User-Agent": "hume/0.9.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
586
586
|
contentType: "application/json",
|
|
587
587
|
requestType: "json",
|
|
588
588
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -650,7 +650,7 @@ class Prompts {
|
|
|
650
650
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
651
651
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
652
652
|
method: "PATCH",
|
|
653
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
653
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.7", "User-Agent": "hume/0.9.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
654
654
|
contentType: "application/json",
|
|
655
655
|
requestType: "json",
|
|
656
656
|
body: serializers.empathicVoice.PostedPromptVersionDescription.jsonOrThrow(request, {
|
|
@@ -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.7", "User-Agent": "hume/0.9.7", "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.7", "User-Agent": "hume/0.9.7", "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.7", "User-Agent": "hume/0.9.7", "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.7", "User-Agent": "hume/0.9.7", "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.7", "User-Agent": "hume/0.9.7", "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.7", "User-Agent": "hume/0.9.7", "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.7", "User-Agent": "hume/0.9.7", "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.7", "User-Agent": "hume/0.9.7", "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.7", "User-Agent": "hume/0.9.7", "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, {
|
|
@@ -8,67 +8,61 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export interface PostedCustomVoiceParameters {
|
|
10
10
|
/**
|
|
11
|
-
* The
|
|
11
|
+
* The perceived tonality of the voice, reflecting characteristics typically associated with masculinity and femininity.
|
|
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
|
|
18
|
-
*
|
|
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
|
-
*/
|
|
21
|
-
articulation?: number;
|
|
22
|
-
/**
|
|
23
|
-
* The firmness of the voice, ranging between whiny and bold.
|
|
17
|
+
* The perceived firmness of the voice, ranging between whiny and bold.
|
|
24
18
|
*
|
|
25
19
|
* 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
20
|
*/
|
|
27
21
|
assertiveness?: number;
|
|
28
22
|
/**
|
|
29
|
-
* The density of the voice, ranging between deflated and buoyant.
|
|
23
|
+
* The perceived density of the voice, ranging between deflated and buoyant.
|
|
30
24
|
*
|
|
31
25
|
* 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
26
|
*/
|
|
33
27
|
buoyancy?: number;
|
|
34
28
|
/**
|
|
35
|
-
* The assuredness of the voice, ranging between shy and confident.
|
|
29
|
+
* The perceived assuredness of the voice, ranging between shy and confident.
|
|
36
30
|
*
|
|
37
31
|
* 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
32
|
*/
|
|
39
33
|
confidence?: number;
|
|
40
34
|
/**
|
|
41
|
-
* The excitement within the voice, ranging between calm and enthusiastic.
|
|
35
|
+
* The perceived excitement within the voice, ranging between calm and enthusiastic.
|
|
42
36
|
*
|
|
43
37
|
* 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
38
|
*/
|
|
45
39
|
enthusiasm?: number;
|
|
46
40
|
/**
|
|
47
|
-
* The openness of the voice, ranging between clear and nasal.
|
|
41
|
+
* The perceived openness of the voice, ranging between clear and nasal.
|
|
48
42
|
*
|
|
49
43
|
* 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.
|
|
50
44
|
*/
|
|
51
45
|
nasality?: number;
|
|
52
46
|
/**
|
|
53
|
-
* The stress within the voice, ranging between tense and relaxed.
|
|
47
|
+
* The perceived stress within the voice, ranging between tense and relaxed.
|
|
54
48
|
*
|
|
55
49
|
* 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
50
|
*/
|
|
57
51
|
relaxedness?: number;
|
|
58
52
|
/**
|
|
59
|
-
* The texture of the voice, ranging between smooth and staccato.
|
|
53
|
+
* The perceived texture of the voice, ranging between smooth and staccato.
|
|
60
54
|
*
|
|
61
55
|
* 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
56
|
*/
|
|
63
57
|
smoothness?: number;
|
|
64
58
|
/**
|
|
65
|
-
* The liveliness behind the voice, ranging between tepid and vigorous.
|
|
59
|
+
* The perceived liveliness behind the voice, ranging between tepid and vigorous.
|
|
66
60
|
*
|
|
67
61
|
* 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
62
|
*/
|
|
69
63
|
tepidity?: number;
|
|
70
64
|
/**
|
|
71
|
-
* The containment of the voice, ranging between tight and breathy.
|
|
65
|
+
* The perceived containment of the voice, ranging between tight and breathy.
|
|
72
66
|
*
|
|
73
67
|
* 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.
|
|
74
68
|
*/
|
|
@@ -6,67 +6,61 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export interface ReturnCustomVoiceParameters {
|
|
8
8
|
/**
|
|
9
|
-
* The
|
|
9
|
+
* The perceived tonality of the voice, reflecting characteristics typically associated with masculinity and femininity.
|
|
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
|
|
16
|
-
*
|
|
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
|
-
*/
|
|
19
|
-
articulation?: number;
|
|
20
|
-
/**
|
|
21
|
-
* The firmness of the voice, ranging between whiny and bold.
|
|
15
|
+
* The perceived firmness of the voice, ranging between whiny and bold.
|
|
22
16
|
*
|
|
23
17
|
* 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
18
|
*/
|
|
25
19
|
assertiveness?: number;
|
|
26
20
|
/**
|
|
27
|
-
* The density of the voice, ranging between deflated and buoyant.
|
|
21
|
+
* The perceived density of the voice, ranging between deflated and buoyant.
|
|
28
22
|
*
|
|
29
23
|
* 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
24
|
*/
|
|
31
25
|
buoyancy?: number;
|
|
32
26
|
/**
|
|
33
|
-
* The assuredness of the voice, ranging between shy and confident.
|
|
27
|
+
* The perceived assuredness of the voice, ranging between shy and confident.
|
|
34
28
|
*
|
|
35
29
|
* 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
30
|
*/
|
|
37
31
|
confidence?: number;
|
|
38
32
|
/**
|
|
39
|
-
* The excitement within the voice, ranging between calm and enthusiastic.
|
|
33
|
+
* The perceived excitement within the voice, ranging between calm and enthusiastic.
|
|
40
34
|
*
|
|
41
35
|
* 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
36
|
*/
|
|
43
37
|
enthusiasm?: number;
|
|
44
38
|
/**
|
|
45
|
-
* The openness of the voice, ranging between clear and nasal.
|
|
39
|
+
* The perceived openness of the voice, ranging between clear and nasal.
|
|
46
40
|
*
|
|
47
41
|
* 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.
|
|
48
42
|
*/
|
|
49
43
|
nasality?: number;
|
|
50
44
|
/**
|
|
51
|
-
* The stress within the voice, ranging between tense and relaxed.
|
|
45
|
+
* The perceived stress within the voice, ranging between tense and relaxed.
|
|
52
46
|
*
|
|
53
47
|
* 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
48
|
*/
|
|
55
49
|
relaxedness?: number;
|
|
56
50
|
/**
|
|
57
|
-
* The texture of the voice, ranging between smooth and staccato.
|
|
51
|
+
* The perceived texture of the voice, ranging between smooth and staccato.
|
|
58
52
|
*
|
|
59
53
|
* 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
54
|
*/
|
|
61
55
|
smoothness?: number;
|
|
62
56
|
/**
|
|
63
|
-
* The liveliness behind the voice, ranging between tepid and vigorous.
|
|
57
|
+
* The perceived liveliness behind the voice, ranging between tepid and vigorous.
|
|
64
58
|
*
|
|
65
59
|
* 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
60
|
*/
|
|
67
61
|
tepidity?: number;
|
|
68
62
|
/**
|
|
69
|
-
* The containment of the voice, ranging between tight and breathy.
|
|
63
|
+
* The perceived containment of the voice, ranging between tight and breathy.
|
|
70
64
|
*
|
|
71
65
|
* 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.
|
|
72
66
|
*/
|
|
@@ -67,6 +67,12 @@ export interface SessionSettings {
|
|
|
67
67
|
*/
|
|
68
68
|
builtinTools?: Hume.empathicVoice.BuiltinToolConfig[];
|
|
69
69
|
metadata?: Record<string, unknown>;
|
|
70
|
-
/**
|
|
71
|
-
|
|
70
|
+
/**
|
|
71
|
+
* This field allows you to assign values to dynamic variables referenced in your system prompt.
|
|
72
|
+
*
|
|
73
|
+
* Each key represents the variable name, and the corresponding value is the specific content you wish to assign to that variable within the session. While the values for variables can be strings, numbers, or booleans, the value will ultimately be converted to a string when injected into your system prompt.
|
|
74
|
+
*
|
|
75
|
+
* Using this field, you can personalize responses based on session-specific details. For more guidance, see our [guide on using dynamic variables](/docs/empathic-voice-interface-evi/conversational-controls#dynamic-variables).
|
|
76
|
+
*/
|
|
77
|
+
variables?: Record<string, Hume.empathicVoice.SessionSettingsVariablesValue>;
|
|
72
78
|
}
|
|
@@ -79,6 +79,7 @@ export * from "./Encoding";
|
|
|
79
79
|
export * from "./ErrorLevel";
|
|
80
80
|
export * from "./PauseAssistantMessage";
|
|
81
81
|
export * from "./ResumeAssistantMessage";
|
|
82
|
+
export * from "./SessionSettingsVariablesValue";
|
|
82
83
|
export * from "./SessionSettings";
|
|
83
84
|
export * from "./Tool";
|
|
84
85
|
export * from "./ToolErrorMessage";
|
|
@@ -95,6 +95,7 @@ __exportStar(require("./Encoding"), exports);
|
|
|
95
95
|
__exportStar(require("./ErrorLevel"), exports);
|
|
96
96
|
__exportStar(require("./PauseAssistantMessage"), exports);
|
|
97
97
|
__exportStar(require("./ResumeAssistantMessage"), exports);
|
|
98
|
+
__exportStar(require("./SessionSettingsVariablesValue"), exports);
|
|
98
99
|
__exportStar(require("./SessionSettings"), exports);
|
|
99
100
|
__exportStar(require("./Tool"), exports);
|
|
100
101
|
__exportStar(require("./ToolErrorMessage"), 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.7", "User-Agent": "hume/0.9.7", "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.7", "User-Agent": "hume/0.9.7", "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.7", "User-Agent": "hume/0.9.7", "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.7", "User-Agent": "hume/0.9.7", "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.7", "User-Agent": "hume/0.9.7", "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.7", "User-Agent": "hume/0.9.7", "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,
|
|
@@ -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"));
|
|
@@ -8,7 +8,6 @@ export declare const PostedCustomVoiceParameters: core.serialization.ObjectSchem
|
|
|
8
8
|
export declare namespace PostedCustomVoiceParameters {
|
|
9
9
|
interface Raw {
|
|
10
10
|
gender?: number | null;
|
|
11
|
-
articulation?: number | null;
|
|
12
11
|
assertiveness?: number | null;
|
|
13
12
|
buoyancy?: number | null;
|
|
14
13
|
confidence?: number | null;
|
|
@@ -30,7 +30,6 @@ exports.PostedCustomVoiceParameters = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../../../core"));
|
|
31
31
|
exports.PostedCustomVoiceParameters = core.serialization.object({
|
|
32
32
|
gender: core.serialization.number().optional(),
|
|
33
|
-
articulation: core.serialization.number().optional(),
|
|
34
33
|
assertiveness: core.serialization.number().optional(),
|
|
35
34
|
buoyancy: core.serialization.number().optional(),
|
|
36
35
|
confidence: core.serialization.number().optional(),
|
|
@@ -8,7 +8,6 @@ export declare const ReturnCustomVoiceParameters: core.serialization.ObjectSchem
|
|
|
8
8
|
export declare namespace ReturnCustomVoiceParameters {
|
|
9
9
|
interface Raw {
|
|
10
10
|
gender?: number | null;
|
|
11
|
-
articulation?: number | null;
|
|
12
11
|
assertiveness?: number | null;
|
|
13
12
|
buoyancy?: number | null;
|
|
14
13
|
confidence?: number | null;
|
|
@@ -30,7 +30,6 @@ exports.ReturnCustomVoiceParameters = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../../../core"));
|
|
31
31
|
exports.ReturnCustomVoiceParameters = core.serialization.object({
|
|
32
32
|
gender: core.serialization.number().optional(),
|
|
33
|
-
articulation: core.serialization.number().optional(),
|
|
34
33
|
assertiveness: core.serialization.number().optional(),
|
|
35
34
|
buoyancy: core.serialization.number().optional(),
|
|
36
35
|
confidence: core.serialization.number().optional(),
|
|
@@ -8,6 +8,7 @@ import { Context } from "./Context";
|
|
|
8
8
|
import { AudioConfiguration } from "./AudioConfiguration";
|
|
9
9
|
import { Tool } from "./Tool";
|
|
10
10
|
import { BuiltinToolConfig } from "./BuiltinToolConfig";
|
|
11
|
+
import { SessionSettingsVariablesValue } from "./SessionSettingsVariablesValue";
|
|
11
12
|
export declare const SessionSettings: core.serialization.ObjectSchema<serializers.empathicVoice.SessionSettings.Raw, Hume.empathicVoice.SessionSettings>;
|
|
12
13
|
export declare namespace SessionSettings {
|
|
13
14
|
interface Raw {
|
|
@@ -20,6 +21,6 @@ export declare namespace SessionSettings {
|
|
|
20
21
|
tools?: Tool.Raw[] | null;
|
|
21
22
|
builtin_tools?: BuiltinToolConfig.Raw[] | null;
|
|
22
23
|
metadata?: Record<string, unknown> | null;
|
|
23
|
-
variables?: Record<string,
|
|
24
|
+
variables?: Record<string, SessionSettingsVariablesValue.Raw> | null;
|
|
24
25
|
}
|
|
25
26
|
}
|
|
@@ -32,6 +32,7 @@ const Context_1 = require("./Context");
|
|
|
32
32
|
const AudioConfiguration_1 = require("./AudioConfiguration");
|
|
33
33
|
const Tool_1 = require("./Tool");
|
|
34
34
|
const BuiltinToolConfig_1 = require("./BuiltinToolConfig");
|
|
35
|
+
const SessionSettingsVariablesValue_1 = require("./SessionSettingsVariablesValue");
|
|
35
36
|
exports.SessionSettings = core.serialization.object({
|
|
36
37
|
type: core.serialization.stringLiteral("session_settings"),
|
|
37
38
|
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
@@ -42,5 +43,5 @@ exports.SessionSettings = core.serialization.object({
|
|
|
42
43
|
tools: core.serialization.list(Tool_1.Tool).optional(),
|
|
43
44
|
builtinTools: core.serialization.property("builtin_tools", core.serialization.list(BuiltinToolConfig_1.BuiltinToolConfig).optional()),
|
|
44
45
|
metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
45
|
-
variables: core.serialization.record(core.serialization.string(),
|
|
46
|
+
variables: core.serialization.record(core.serialization.string(), SessionSettingsVariablesValue_1.SessionSettingsVariablesValue).optional(),
|
|
46
47
|
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Hume from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const SessionSettingsVariablesValue: core.serialization.Schema<serializers.empathicVoice.SessionSettingsVariablesValue.Raw, Hume.empathicVoice.SessionSettingsVariablesValue>;
|
|
8
|
+
export declare namespace SessionSettingsVariablesValue {
|
|
9
|
+
type Raw = string | number | boolean;
|
|
10
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.SessionSettingsVariablesValue = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
exports.SessionSettingsVariablesValue = core.serialization.undiscriminatedUnion([
|
|
32
|
+
core.serialization.string(),
|
|
33
|
+
core.serialization.number(),
|
|
34
|
+
core.serialization.boolean(),
|
|
35
|
+
]);
|
|
@@ -79,6 +79,7 @@ export * from "./Encoding";
|
|
|
79
79
|
export * from "./ErrorLevel";
|
|
80
80
|
export * from "./PauseAssistantMessage";
|
|
81
81
|
export * from "./ResumeAssistantMessage";
|
|
82
|
+
export * from "./SessionSettingsVariablesValue";
|
|
82
83
|
export * from "./SessionSettings";
|
|
83
84
|
export * from "./Tool";
|
|
84
85
|
export * from "./ToolErrorMessage";
|
|
@@ -95,6 +95,7 @@ __exportStar(require("./Encoding"), exports);
|
|
|
95
95
|
__exportStar(require("./ErrorLevel"), exports);
|
|
96
96
|
__exportStar(require("./PauseAssistantMessage"), exports);
|
|
97
97
|
__exportStar(require("./ResumeAssistantMessage"), exports);
|
|
98
|
+
__exportStar(require("./SessionSettingsVariablesValue"), exports);
|
|
98
99
|
__exportStar(require("./SessionSettings"), exports);
|
|
99
100
|
__exportStar(require("./Tool"), exports);
|
|
100
101
|
__exportStar(require("./ToolErrorMessage"), exports);
|