hume 0.5.11 → 0.5.13
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/api/resources/customModels/resources/datasets/client/Client.js +9 -9
- package/api/resources/customModels/resources/files/client/Client.js +7 -7
- package/api/resources/customModels/resources/jobs/client/Client.js +2 -2
- package/api/resources/customModels/resources/models/client/Client.js +6 -6
- package/api/resources/empathicVoice/resources/chats/client/Client.js +2 -2
- package/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
- package/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
- package/api/resources/empathicVoice/resources/tools/client/Client.d.ts +22 -11
- package/api/resources/empathicVoice/resources/tools/client/Client.js +31 -20
- package/api/resources/empathicVoice/resources/tools/client/requests/GetReturnToolsForUserRequest.d.ts +4 -1
- package/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.ts +5 -2
- package/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolName.d.ts +1 -1
- package/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.ts +4 -1
- package/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersionDescription.d.ts +3 -1
- package/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
- package/dist/api/resources/customModels/resources/datasets/client/Client.js +9 -9
- package/dist/api/resources/customModels/resources/files/client/Client.js +7 -7
- package/dist/api/resources/customModels/resources/jobs/client/Client.js +2 -2
- package/dist/api/resources/customModels/resources/models/client/Client.js +6 -6
- package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +2 -2
- package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
- package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
- package/dist/api/resources/empathicVoice/resources/tools/client/Client.d.ts +22 -11
- package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +31 -20
- package/dist/api/resources/empathicVoice/resources/tools/client/requests/GetReturnToolsForUserRequest.d.ts +4 -1
- package/dist/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.ts +5 -2
- package/dist/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolName.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.ts +4 -1
- package/dist/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersionDescription.d.ts +3 -1
- package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
- package/package.json +1 -1
|
@@ -80,7 +80,7 @@ class Datasets {
|
|
|
80
80
|
method: "GET",
|
|
81
81
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
82
82
|
? yield core.Supplier.get(this._options.accountToken)
|
|
83
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
83
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
84
84
|
contentType: "application/json",
|
|
85
85
|
queryParameters: _queryParams,
|
|
86
86
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -143,7 +143,7 @@ class Datasets {
|
|
|
143
143
|
method: "POST",
|
|
144
144
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
145
145
|
? yield core.Supplier.get(this._options.accountToken)
|
|
146
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
146
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
147
147
|
contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
|
|
148
148
|
body: _request,
|
|
149
149
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -196,7 +196,7 @@ class Datasets {
|
|
|
196
196
|
method: "GET",
|
|
197
197
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
198
198
|
? yield core.Supplier.get(this._options.accountToken)
|
|
199
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
199
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
200
200
|
contentType: "application/json",
|
|
201
201
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
202
202
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -255,7 +255,7 @@ class Datasets {
|
|
|
255
255
|
method: "POST",
|
|
256
256
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
257
257
|
? yield core.Supplier.get(this._options.accountToken)
|
|
258
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
258
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
259
259
|
contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
|
|
260
260
|
body: _request,
|
|
261
261
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -308,7 +308,7 @@ class Datasets {
|
|
|
308
308
|
method: "DELETE",
|
|
309
309
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
310
310
|
? yield core.Supplier.get(this._options.accountToken)
|
|
311
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
311
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
312
312
|
contentType: "application/json",
|
|
313
313
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
314
314
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -366,7 +366,7 @@ class Datasets {
|
|
|
366
366
|
method: "GET",
|
|
367
367
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
368
368
|
? yield core.Supplier.get(this._options.accountToken)
|
|
369
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
369
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
370
370
|
contentType: "application/json",
|
|
371
371
|
queryParameters: _queryParams,
|
|
372
372
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -431,7 +431,7 @@ class Datasets {
|
|
|
431
431
|
method: "GET",
|
|
432
432
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
433
433
|
? yield core.Supplier.get(this._options.accountToken)
|
|
434
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
434
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
435
435
|
contentType: "application/json",
|
|
436
436
|
queryParameters: _queryParams,
|
|
437
437
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -484,7 +484,7 @@ class Datasets {
|
|
|
484
484
|
method: "GET",
|
|
485
485
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
486
486
|
? yield core.Supplier.get(this._options.accountToken)
|
|
487
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
487
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
488
488
|
contentType: "application/json",
|
|
489
489
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
490
490
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -548,7 +548,7 @@ class Datasets {
|
|
|
548
548
|
method: "GET",
|
|
549
549
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
550
550
|
? yield core.Supplier.get(this._options.accountToken)
|
|
551
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
551
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
552
552
|
contentType: "application/json",
|
|
553
553
|
queryParameters: _queryParams,
|
|
554
554
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -77,7 +77,7 @@ class Files {
|
|
|
77
77
|
method: "GET",
|
|
78
78
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
79
79
|
? yield core.Supplier.get(this._options.accountToken)
|
|
80
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
80
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
81
81
|
contentType: "application/json",
|
|
82
82
|
queryParameters: _queryParams,
|
|
83
83
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -136,7 +136,7 @@ class Files {
|
|
|
136
136
|
method: "POST",
|
|
137
137
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
138
138
|
? yield core.Supplier.get(this._options.accountToken)
|
|
139
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
139
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
140
140
|
contentType: "application/json",
|
|
141
141
|
body: yield serializers.customModels.files.createFiles.Request.jsonOrThrow(request, {
|
|
142
142
|
unrecognizedObjectKeys: "strip",
|
|
@@ -197,7 +197,7 @@ class Files {
|
|
|
197
197
|
method: "POST",
|
|
198
198
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
199
199
|
? yield core.Supplier.get(this._options.accountToken)
|
|
200
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
200
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
201
201
|
contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
|
|
202
202
|
body: _request,
|
|
203
203
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -250,7 +250,7 @@ class Files {
|
|
|
250
250
|
method: "GET",
|
|
251
251
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
252
252
|
? yield core.Supplier.get(this._options.accountToken)
|
|
253
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
253
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
254
254
|
contentType: "application/json",
|
|
255
255
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
256
256
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -302,7 +302,7 @@ class Files {
|
|
|
302
302
|
method: "DELETE",
|
|
303
303
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
304
304
|
? yield core.Supplier.get(this._options.accountToken)
|
|
305
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
305
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
306
306
|
contentType: "application/json",
|
|
307
307
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
308
308
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -354,7 +354,7 @@ class Files {
|
|
|
354
354
|
method: "PATCH",
|
|
355
355
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
356
356
|
? yield core.Supplier.get(this._options.accountToken)
|
|
357
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
357
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
358
358
|
contentType: "application/json",
|
|
359
359
|
queryParameters: _queryParams,
|
|
360
360
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -407,7 +407,7 @@ class Files {
|
|
|
407
407
|
method: "GET",
|
|
408
408
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
409
409
|
? yield core.Supplier.get(this._options.accountToken)
|
|
410
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
410
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
411
411
|
contentType: "application/json",
|
|
412
412
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
413
413
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -72,7 +72,7 @@ class Jobs {
|
|
|
72
72
|
method: "POST",
|
|
73
73
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
74
74
|
? yield core.Supplier.get(this._options.accountToken)
|
|
75
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
75
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
76
76
|
contentType: "application/json",
|
|
77
77
|
body: yield serializers.customModels.TrainingBaseRequest.jsonOrThrow(request, {
|
|
78
78
|
unrecognizedObjectKeys: "strip",
|
|
@@ -131,7 +131,7 @@ class Jobs {
|
|
|
131
131
|
method: "POST",
|
|
132
132
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
133
133
|
? yield core.Supplier.get(this._options.accountToken)
|
|
134
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
134
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
135
135
|
contentType: "application/json",
|
|
136
136
|
body: yield serializers.customModels.TlInferenceBaseRequest.jsonOrThrow(request, {
|
|
137
137
|
unrecognizedObjectKeys: "strip",
|
|
@@ -65,7 +65,7 @@ class Models {
|
|
|
65
65
|
method: "GET",
|
|
66
66
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
67
67
|
? yield core.Supplier.get(this._options.accountToken)
|
|
68
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
68
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
69
69
|
contentType: "application/json",
|
|
70
70
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
71
71
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -123,7 +123,7 @@ class Models {
|
|
|
123
123
|
method: "PATCH",
|
|
124
124
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
125
125
|
? yield core.Supplier.get(this._options.accountToken)
|
|
126
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
126
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
127
127
|
contentType: "application/json",
|
|
128
128
|
queryParameters: _queryParams,
|
|
129
129
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -182,7 +182,7 @@ class Models {
|
|
|
182
182
|
method: "GET",
|
|
183
183
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
184
184
|
? yield core.Supplier.get(this._options.accountToken)
|
|
185
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
185
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
186
186
|
contentType: "application/json",
|
|
187
187
|
queryParameters: _queryParams,
|
|
188
188
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -236,7 +236,7 @@ class Models {
|
|
|
236
236
|
method: "PATCH",
|
|
237
237
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
238
238
|
? yield core.Supplier.get(this._options.accountToken)
|
|
239
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
239
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
240
240
|
contentType: "application/json",
|
|
241
241
|
body: yield serializers.customModels.models.updateModelVersionDescription.Request.jsonOrThrow(request, {
|
|
242
242
|
unrecognizedObjectKeys: "strip",
|
|
@@ -305,7 +305,7 @@ class Models {
|
|
|
305
305
|
method: "GET",
|
|
306
306
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
307
307
|
? yield core.Supplier.get(this._options.accountToken)
|
|
308
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
308
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
309
309
|
contentType: "application/json",
|
|
310
310
|
queryParameters: _queryParams,
|
|
311
311
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -377,7 +377,7 @@ class Models {
|
|
|
377
377
|
method: "GET",
|
|
378
378
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
379
379
|
? yield core.Supplier.get(this._options.accountToken)
|
|
380
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
380
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
381
381
|
contentType: "application/json",
|
|
382
382
|
queryParameters: _queryParams,
|
|
383
383
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -71,7 +71,7 @@ class Chats {
|
|
|
71
71
|
method: "GET",
|
|
72
72
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
73
73
|
? yield core.Supplier.get(this._options.accountToken)
|
|
74
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
74
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
75
75
|
contentType: "application/json",
|
|
76
76
|
queryParameters: _queryParams,
|
|
77
77
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -131,7 +131,7 @@ class Chats {
|
|
|
131
131
|
method: "GET",
|
|
132
132
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
133
133
|
? yield core.Supplier.get(this._options.accountToken)
|
|
134
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
134
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
135
135
|
contentType: "application/json",
|
|
136
136
|
queryParameters: _queryParams,
|
|
137
137
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -74,7 +74,7 @@ class Configs {
|
|
|
74
74
|
method: "GET",
|
|
75
75
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
76
76
|
? yield core.Supplier.get(this._options.accountToken)
|
|
77
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
77
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
78
78
|
contentType: "application/json",
|
|
79
79
|
queryParameters: _queryParams,
|
|
80
80
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -127,7 +127,7 @@ class Configs {
|
|
|
127
127
|
method: "POST",
|
|
128
128
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
129
129
|
? yield core.Supplier.get(this._options.accountToken)
|
|
130
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
130
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
131
131
|
contentType: "application/json",
|
|
132
132
|
body: yield serializers.empathicVoice.PostedConfig.jsonOrThrow(request, {
|
|
133
133
|
unrecognizedObjectKeys: "strip",
|
|
@@ -192,7 +192,7 @@ class Configs {
|
|
|
192
192
|
method: "GET",
|
|
193
193
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
194
194
|
? yield core.Supplier.get(this._options.accountToken)
|
|
195
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
195
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
196
196
|
contentType: "application/json",
|
|
197
197
|
queryParameters: _queryParams,
|
|
198
198
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -244,7 +244,7 @@ class Configs {
|
|
|
244
244
|
method: "POST",
|
|
245
245
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
246
246
|
? yield core.Supplier.get(this._options.accountToken)
|
|
247
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
247
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
248
248
|
contentType: "application/json",
|
|
249
249
|
body: yield serializers.empathicVoice.PostedConfigVersion.jsonOrThrow(request, {
|
|
250
250
|
unrecognizedObjectKeys: "strip",
|
|
@@ -297,7 +297,7 @@ class Configs {
|
|
|
297
297
|
method: "DELETE",
|
|
298
298
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
299
299
|
? yield core.Supplier.get(this._options.accountToken)
|
|
300
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
300
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
301
301
|
contentType: "application/json",
|
|
302
302
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
303
303
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -344,7 +344,7 @@ class Configs {
|
|
|
344
344
|
method: "PATCH",
|
|
345
345
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
346
346
|
? yield core.Supplier.get(this._options.accountToken)
|
|
347
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
347
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
348
348
|
contentType: "application/json",
|
|
349
349
|
body: yield serializers.empathicVoice.PostedConfigName.jsonOrThrow(request, {
|
|
350
350
|
unrecognizedObjectKeys: "strip",
|
|
@@ -393,7 +393,7 @@ class Configs {
|
|
|
393
393
|
method: "GET",
|
|
394
394
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
395
395
|
? yield core.Supplier.get(this._options.accountToken)
|
|
396
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
396
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
397
397
|
contentType: "application/json",
|
|
398
398
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
399
399
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -444,7 +444,7 @@ class Configs {
|
|
|
444
444
|
method: "DELETE",
|
|
445
445
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
446
446
|
? yield core.Supplier.get(this._options.accountToken)
|
|
447
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
447
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
448
448
|
contentType: "application/json",
|
|
449
449
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
450
450
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -490,7 +490,7 @@ class Configs {
|
|
|
490
490
|
method: "PATCH",
|
|
491
491
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
492
492
|
? yield core.Supplier.get(this._options.accountToken)
|
|
493
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
493
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
494
494
|
contentType: "application/json",
|
|
495
495
|
body: yield serializers.empathicVoice.PostedConfigVersionDescription.jsonOrThrow(request, {
|
|
496
496
|
unrecognizedObjectKeys: "strip",
|
|
@@ -74,7 +74,7 @@ class Prompts {
|
|
|
74
74
|
method: "GET",
|
|
75
75
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
76
76
|
? yield core.Supplier.get(this._options.accountToken)
|
|
77
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
77
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
78
78
|
contentType: "application/json",
|
|
79
79
|
queryParameters: _queryParams,
|
|
80
80
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -128,7 +128,7 @@ class Prompts {
|
|
|
128
128
|
method: "POST",
|
|
129
129
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
130
130
|
? yield core.Supplier.get(this._options.accountToken)
|
|
131
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
131
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
132
132
|
contentType: "application/json",
|
|
133
133
|
body: yield serializers.empathicVoice.PostedPrompt.jsonOrThrow(request, {
|
|
134
134
|
unrecognizedObjectKeys: "strip",
|
|
@@ -193,7 +193,7 @@ class Prompts {
|
|
|
193
193
|
method: "GET",
|
|
194
194
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
195
195
|
? yield core.Supplier.get(this._options.accountToken)
|
|
196
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
196
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
197
197
|
contentType: "application/json",
|
|
198
198
|
queryParameters: _queryParams,
|
|
199
199
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -247,7 +247,7 @@ class Prompts {
|
|
|
247
247
|
method: "POST",
|
|
248
248
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
249
249
|
? yield core.Supplier.get(this._options.accountToken)
|
|
250
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
250
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
251
251
|
contentType: "application/json",
|
|
252
252
|
body: yield serializers.empathicVoice.PostedPromptVersion.jsonOrThrow(request, {
|
|
253
253
|
unrecognizedObjectKeys: "strip",
|
|
@@ -300,7 +300,7 @@ class Prompts {
|
|
|
300
300
|
method: "DELETE",
|
|
301
301
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
302
302
|
? yield core.Supplier.get(this._options.accountToken)
|
|
303
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
303
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
304
304
|
contentType: "application/json",
|
|
305
305
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
306
306
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -347,7 +347,7 @@ class Prompts {
|
|
|
347
347
|
method: "PATCH",
|
|
348
348
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
349
349
|
? yield core.Supplier.get(this._options.accountToken)
|
|
350
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
350
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
351
351
|
contentType: "application/json",
|
|
352
352
|
body: yield serializers.empathicVoice.PostedPromptName.jsonOrThrow(request, {
|
|
353
353
|
unrecognizedObjectKeys: "strip",
|
|
@@ -396,7 +396,7 @@ class Prompts {
|
|
|
396
396
|
method: "GET",
|
|
397
397
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
398
398
|
? yield core.Supplier.get(this._options.accountToken)
|
|
399
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
399
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
400
400
|
contentType: "application/json",
|
|
401
401
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
402
402
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -447,7 +447,7 @@ class Prompts {
|
|
|
447
447
|
method: "DELETE",
|
|
448
448
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
449
449
|
? yield core.Supplier.get(this._options.accountToken)
|
|
450
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
450
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
451
451
|
contentType: "application/json",
|
|
452
452
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
453
453
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -493,7 +493,7 @@ class Prompts {
|
|
|
493
493
|
method: "PATCH",
|
|
494
494
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
495
495
|
? yield core.Supplier.get(this._options.accountToken)
|
|
496
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
496
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
497
497
|
contentType: "application/json",
|
|
498
498
|
body: yield serializers.empathicVoice.PostedPromptVersionDescription.jsonOrThrow(request, {
|
|
499
499
|
unrecognizedObjectKeys: "strip",
|
|
@@ -24,7 +24,10 @@ export declare class Tools {
|
|
|
24
24
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
|
-
* await hume.empathicVoice.tools.getReturnToolsForUser(
|
|
27
|
+
* await hume.empathicVoice.tools.getReturnToolsForUser({
|
|
28
|
+
* pageNumber: 0,
|
|
29
|
+
* pageSize: 2
|
|
30
|
+
* })
|
|
28
31
|
*/
|
|
29
32
|
getReturnToolsForUser(request?: Hume.empathicVoice.GetReturnToolsForUserRequest, requestOptions?: Tools.RequestOptions): Promise<Hume.empathicVoice.ReturnPagedUserDefinedTools>;
|
|
30
33
|
/**
|
|
@@ -33,8 +36,11 @@ export declare class Tools {
|
|
|
33
36
|
*
|
|
34
37
|
* @example
|
|
35
38
|
* await hume.empathicVoice.tools.createNewTool({
|
|
36
|
-
* name: "
|
|
37
|
-
* parameters: "
|
|
39
|
+
* name: "get_current_weather",
|
|
40
|
+
* parameters: "{ \"type\": \"object\", \"properties\": { \"location\": { \"type\": \"string\", \"description\": \"The city and state, e.g. San Francisco, CA\" }, \"format\": { \"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The temperature unit to use. Infer this from the users location.\" } }, \"required\": [\"location\", \"format\"] }",
|
|
41
|
+
* versionDescription: "Fetches current weather and uses celsius or fahrenheit based on location of user.",
|
|
42
|
+
* description: "This tool is for getting the current weather.",
|
|
43
|
+
* fallbackContent: "Unable to fetch current weather."
|
|
38
44
|
* })
|
|
39
45
|
*/
|
|
40
46
|
createNewTool(request: Hume.empathicVoice.PostedUserDefinedTool, requestOptions?: Tools.RequestOptions): Promise<Hume.empathicVoice.ReturnUserDefinedTool | undefined>;
|
|
@@ -44,7 +50,7 @@ export declare class Tools {
|
|
|
44
50
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
45
51
|
*
|
|
46
52
|
* @example
|
|
47
|
-
* await hume.empathicVoice.tools.getReturnToolByToolId("
|
|
53
|
+
* await hume.empathicVoice.tools.getReturnToolByToolId("00183a3f-79ba-413d-9f3b-609864268bea")
|
|
48
54
|
*/
|
|
49
55
|
getReturnToolByToolId(id: string, request?: Hume.empathicVoice.GetReturnToolByToolIdRequest, requestOptions?: Tools.RequestOptions): Promise<Hume.empathicVoice.ReturnPagedUserDefinedTools>;
|
|
50
56
|
/**
|
|
@@ -53,8 +59,11 @@ export declare class Tools {
|
|
|
53
59
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
54
60
|
*
|
|
55
61
|
* @example
|
|
56
|
-
* await hume.empathicVoice.tools.addNewToolVersion("
|
|
57
|
-
* parameters: "
|
|
62
|
+
* await hume.empathicVoice.tools.addNewToolVersion("00183a3f-79ba-413d-9f3b-609864268bea", {
|
|
63
|
+
* parameters: "{ \"type\": \"object\", \"properties\": { \"location\": { \"type\": \"string\", \"description\": \"The city and state, e.g. San Francisco, CA\" }, \"format\": { \"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\", \"kelvin\"], \"description\": \"The temperature unit to use. Infer this from the users location.\" } }, \"required\": [\"location\", \"format\"] }",
|
|
64
|
+
* versionDescription: "Fetches current weather and uses celsius, fahrenheit, or kelvin based on location of user.",
|
|
65
|
+
* fallbackContent: "Unable to fetch current weather.",
|
|
66
|
+
* description: "This tool is for getting the current weather."
|
|
58
67
|
* })
|
|
59
68
|
*/
|
|
60
69
|
addNewToolVersion(id: string, request: Hume.empathicVoice.PostedUserDefinedToolVersion, requestOptions?: Tools.RequestOptions): Promise<Hume.empathicVoice.ReturnUserDefinedTool | undefined>;
|
|
@@ -63,7 +72,7 @@ export declare class Tools {
|
|
|
63
72
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
73
|
*
|
|
65
74
|
* @example
|
|
66
|
-
* await hume.empathicVoice.tools.deleteToolVersion("
|
|
75
|
+
* await hume.empathicVoice.tools.deleteToolVersion("00183a3f-79ba-413d-9f3b-609864268bea")
|
|
67
76
|
*/
|
|
68
77
|
deleteToolVersion(id: string, requestOptions?: Tools.RequestOptions): Promise<void>;
|
|
69
78
|
/**
|
|
@@ -72,8 +81,8 @@ export declare class Tools {
|
|
|
72
81
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
73
82
|
*
|
|
74
83
|
* @example
|
|
75
|
-
* await hume.empathicVoice.tools.updateToolName("
|
|
76
|
-
* name: "
|
|
84
|
+
* await hume.empathicVoice.tools.updateToolName("00183a3f-79ba-413d-9f3b-609864268bea", {
|
|
85
|
+
* name: "get_current_temperature"
|
|
77
86
|
* })
|
|
78
87
|
*/
|
|
79
88
|
updateToolName(id: string, request: Hume.empathicVoice.PostedUserDefinedToolName, requestOptions?: Tools.RequestOptions): Promise<string>;
|
|
@@ -83,7 +92,7 @@ export declare class Tools {
|
|
|
83
92
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
84
93
|
*
|
|
85
94
|
* @example
|
|
86
|
-
* await hume.empathicVoice.tools.getReturnToolByVersionNumber("
|
|
95
|
+
* await hume.empathicVoice.tools.getReturnToolByVersionNumber("00183a3f-79ba-413d-9f3b-609864268bea", 1)
|
|
87
96
|
*/
|
|
88
97
|
getReturnToolByVersionNumber(id: string, version: number, requestOptions?: Tools.RequestOptions): Promise<Hume.empathicVoice.ReturnUserDefinedTool | undefined>;
|
|
89
98
|
/**
|
|
@@ -102,7 +111,9 @@ export declare class Tools {
|
|
|
102
111
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
103
112
|
*
|
|
104
113
|
* @example
|
|
105
|
-
* await hume.empathicVoice.tools.updateToolVersionDescription("
|
|
114
|
+
* await hume.empathicVoice.tools.updateToolVersionDescription("00183a3f-79ba-413d-9f3b-609864268bea", 1, {
|
|
115
|
+
* versionDescription: "Fetches current temperature, precipitation, wind speed, AQI, and other weather conditions. Uses Celsius, Fahrenheit, or kelvin depending on user's region."
|
|
116
|
+
* })
|
|
106
117
|
*/
|
|
107
118
|
updateToolVersionDescription(id: string, version: number, request?: Hume.empathicVoice.PostedUserDefinedToolVersionDescription, requestOptions?: Tools.RequestOptions): Promise<Hume.empathicVoice.ReturnUserDefinedTool | undefined>;
|
|
108
119
|
protected _getCustomAuthorizationHeaders(): Promise<{
|