hume 0.6.3 → 0.6.4
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 +130 -38
- package/.mock/definition/empathic-voice/chat.yml +1 -1
- package/.mock/definition/empathic-voice/chatGroups.yml +2 -2
- package/.mock/definition/empathic-voice/chats.yml +5 -2
- package/.mock/definition/empathic-voice/configs.yml +93 -77
- package/.mock/definition/empathic-voice/prompts.yml +9 -9
- package/.mock/definition/empathic-voice/tools.yml +9 -9
- package/.mock/definition/expression-measurement/batch.yml +0 -15
- package/.mock/fern.config.json +1 -1
- 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/chatGroups/client/Client.js +2 -2
- package/api/resources/empathicVoice/resources/chats/client/Client.js +6 -3
- package/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +4 -0
- package/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
- package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +2 -4
- package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +2 -4
- 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/AssistantEnd.d.ts +1 -0
- package/api/resources/empathicVoice/types/AssistantInput.d.ts +1 -0
- package/api/resources/empathicVoice/types/AssistantMessage.d.ts +1 -0
- package/api/resources/empathicVoice/types/AudioInput.d.ts +1 -0
- package/api/resources/empathicVoice/types/AudioOutput.d.ts +1 -0
- package/api/resources/empathicVoice/types/ChatMessage.d.ts +2 -0
- package/api/resources/empathicVoice/types/ChatMetadata.d.ts +1 -0
- package/api/resources/empathicVoice/types/Inference.d.ts +1 -0
- package/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +1 -0
- package/api/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +1 -0
- package/api/resources/empathicVoice/types/ReturnConfig.d.ts +2 -4
- package/api/resources/empathicVoice/types/ReturnPrompt.d.ts +1 -1
- package/api/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +1 -1
- package/api/resources/empathicVoice/types/SessionSettings.d.ts +6 -0
- package/api/resources/empathicVoice/types/Tool.d.ts +2 -0
- package/api/resources/empathicVoice/types/ToolCallMessage.d.ts +1 -0
- package/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +5 -0
- package/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +1 -0
- package/api/resources/empathicVoice/types/UserInput.d.ts +1 -0
- package/api/resources/empathicVoice/types/UserInterruption.d.ts +1 -0
- package/api/resources/empathicVoice/types/UserMessage.d.ts +1 -0
- package/api/resources/empathicVoice/types/WebSocketError.d.ts +1 -0
- 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/chatGroups/client/Client.js +2 -2
- package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +6 -3
- package/dist/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +4 -0
- package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +2 -4
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +2 -4
- 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/AssistantEnd.d.ts +1 -0
- package/dist/api/resources/empathicVoice/types/AssistantInput.d.ts +1 -0
- package/dist/api/resources/empathicVoice/types/AssistantMessage.d.ts +1 -0
- package/dist/api/resources/empathicVoice/types/AudioInput.d.ts +1 -0
- package/dist/api/resources/empathicVoice/types/AudioOutput.d.ts +1 -0
- package/dist/api/resources/empathicVoice/types/ChatMessage.d.ts +2 -0
- package/dist/api/resources/empathicVoice/types/ChatMetadata.d.ts +1 -0
- package/dist/api/resources/empathicVoice/types/Inference.d.ts +1 -0
- package/dist/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +1 -0
- package/dist/api/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +1 -0
- package/dist/api/resources/empathicVoice/types/ReturnConfig.d.ts +2 -4
- package/dist/api/resources/empathicVoice/types/ReturnPrompt.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/SessionSettings.d.ts +6 -0
- package/dist/api/resources/empathicVoice/types/Tool.d.ts +2 -0
- package/dist/api/resources/empathicVoice/types/ToolCallMessage.d.ts +1 -0
- package/dist/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +5 -0
- package/dist/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +1 -0
- package/dist/api/resources/empathicVoice/types/UserInput.d.ts +1 -0
- package/dist/api/resources/empathicVoice/types/UserInterruption.d.ts +1 -0
- package/dist/api/resources/empathicVoice/types/UserMessage.d.ts +1 -0
- package/dist/api/resources/empathicVoice/types/WebSocketError.d.ts +1 -0
- package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
- package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +2 -2
- package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +2 -2
- package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +2 -2
- package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +2 -2
- package/dist/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +2 -2
- package/dist/serialization/resources/empathicVoice/types/ReturnConfig.js +2 -2
- package/dist/wrapper/empathicVoice/chat/ChatClient.d.ts +0 -2
- package/dist/wrapper/empathicVoice/chat/ChatClient.js +0 -3
- package/package.json +1 -1
- package/reference.md +4893 -0
- package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +2 -2
- package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +2 -2
- package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +2 -2
- package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +2 -2
- package/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +2 -2
- package/serialization/resources/empathicVoice/types/ReturnConfig.js +2 -2
- package/wrapper/empathicVoice/chat/ChatClient.d.ts +0 -2
- package/wrapper/empathicVoice/chat/ChatClient.js +0 -3
|
@@ -7,7 +7,7 @@ service:
|
|
|
7
7
|
list-prompts:
|
|
8
8
|
path: /v0/evi/prompts
|
|
9
9
|
method: GET
|
|
10
|
-
auth:
|
|
10
|
+
auth: true
|
|
11
11
|
display-name: List prompts
|
|
12
12
|
request:
|
|
13
13
|
name: PromptsListPromptsRequest
|
|
@@ -41,7 +41,7 @@ service:
|
|
|
41
41
|
create-prompt:
|
|
42
42
|
path: /v0/evi/prompts
|
|
43
43
|
method: POST
|
|
44
|
-
auth:
|
|
44
|
+
auth: true
|
|
45
45
|
display-name: Create prompt
|
|
46
46
|
request:
|
|
47
47
|
name: PostedPrompt
|
|
@@ -76,7 +76,7 @@ service:
|
|
|
76
76
|
list-prompt-versions:
|
|
77
77
|
path: /v0/evi/prompts/{id}
|
|
78
78
|
method: GET
|
|
79
|
-
auth:
|
|
79
|
+
auth: true
|
|
80
80
|
path-parameters:
|
|
81
81
|
id:
|
|
82
82
|
type: string
|
|
@@ -116,7 +116,7 @@ service:
|
|
|
116
116
|
create-prompt-verison:
|
|
117
117
|
path: /v0/evi/prompts/{id}
|
|
118
118
|
method: POST
|
|
119
|
-
auth:
|
|
119
|
+
auth: true
|
|
120
120
|
path-parameters:
|
|
121
121
|
id:
|
|
122
122
|
type: string
|
|
@@ -153,7 +153,7 @@ service:
|
|
|
153
153
|
delete-prompt:
|
|
154
154
|
path: /v0/evi/prompts/{id}
|
|
155
155
|
method: DELETE
|
|
156
|
-
auth:
|
|
156
|
+
auth: true
|
|
157
157
|
path-parameters:
|
|
158
158
|
id:
|
|
159
159
|
type: string
|
|
@@ -165,7 +165,7 @@ service:
|
|
|
165
165
|
update-prompt-name:
|
|
166
166
|
path: /v0/evi/prompts/{id}
|
|
167
167
|
method: PATCH
|
|
168
|
-
auth:
|
|
168
|
+
auth: true
|
|
169
169
|
path-parameters:
|
|
170
170
|
id:
|
|
171
171
|
type: string
|
|
@@ -184,7 +184,7 @@ service:
|
|
|
184
184
|
get-prompt-version:
|
|
185
185
|
path: /v0/evi/prompts/{id}/version/{version}
|
|
186
186
|
method: GET
|
|
187
|
-
auth:
|
|
187
|
+
auth: true
|
|
188
188
|
path-parameters:
|
|
189
189
|
id:
|
|
190
190
|
type: string
|
|
@@ -213,7 +213,7 @@ service:
|
|
|
213
213
|
delete-prompt-version:
|
|
214
214
|
path: /v0/evi/prompts/{id}/version/{version}
|
|
215
215
|
method: DELETE
|
|
216
|
-
auth:
|
|
216
|
+
auth: true
|
|
217
217
|
path-parameters:
|
|
218
218
|
id:
|
|
219
219
|
type: string
|
|
@@ -229,7 +229,7 @@ service:
|
|
|
229
229
|
update-prompt-description:
|
|
230
230
|
path: /v0/evi/prompts/{id}/version/{version}
|
|
231
231
|
method: PATCH
|
|
232
|
-
auth:
|
|
232
|
+
auth: true
|
|
233
233
|
path-parameters:
|
|
234
234
|
id:
|
|
235
235
|
type: string
|
|
@@ -7,7 +7,7 @@ service:
|
|
|
7
7
|
list-tools:
|
|
8
8
|
path: /v0/evi/tools
|
|
9
9
|
method: GET
|
|
10
|
-
auth:
|
|
10
|
+
auth: true
|
|
11
11
|
display-name: List tools
|
|
12
12
|
request:
|
|
13
13
|
name: ToolsListToolsRequest
|
|
@@ -71,7 +71,7 @@ service:
|
|
|
71
71
|
create-tool:
|
|
72
72
|
path: /v0/evi/tools
|
|
73
73
|
method: POST
|
|
74
|
-
auth:
|
|
74
|
+
auth: true
|
|
75
75
|
display-name: Create tool
|
|
76
76
|
request:
|
|
77
77
|
name: PostedUserDefinedTool
|
|
@@ -136,7 +136,7 @@ service:
|
|
|
136
136
|
list-tool-versions:
|
|
137
137
|
path: /v0/evi/tools/{id}
|
|
138
138
|
method: GET
|
|
139
|
-
auth:
|
|
139
|
+
auth: true
|
|
140
140
|
path-parameters:
|
|
141
141
|
id:
|
|
142
142
|
type: string
|
|
@@ -187,7 +187,7 @@ service:
|
|
|
187
187
|
create-tool-version:
|
|
188
188
|
path: /v0/evi/tools/{id}
|
|
189
189
|
method: POST
|
|
190
|
-
auth:
|
|
190
|
+
auth: true
|
|
191
191
|
path-parameters:
|
|
192
192
|
id:
|
|
193
193
|
type: string
|
|
@@ -254,7 +254,7 @@ service:
|
|
|
254
254
|
delete-tool:
|
|
255
255
|
path: /v0/evi/tools/{id}
|
|
256
256
|
method: DELETE
|
|
257
|
-
auth:
|
|
257
|
+
auth: true
|
|
258
258
|
path-parameters:
|
|
259
259
|
id:
|
|
260
260
|
type: string
|
|
@@ -266,7 +266,7 @@ service:
|
|
|
266
266
|
update-tool-name:
|
|
267
267
|
path: /v0/evi/tools/{id}
|
|
268
268
|
method: PATCH
|
|
269
|
-
auth:
|
|
269
|
+
auth: true
|
|
270
270
|
path-parameters:
|
|
271
271
|
id:
|
|
272
272
|
type: string
|
|
@@ -290,7 +290,7 @@ service:
|
|
|
290
290
|
get-tool-version:
|
|
291
291
|
path: /v0/evi/tools/{id}/version/{version}
|
|
292
292
|
method: GET
|
|
293
|
-
auth:
|
|
293
|
+
auth: true
|
|
294
294
|
path-parameters:
|
|
295
295
|
id:
|
|
296
296
|
type: string
|
|
@@ -330,7 +330,7 @@ service:
|
|
|
330
330
|
delete-tool-version:
|
|
331
331
|
path: /v0/evi/tools/{id}/version/{version}
|
|
332
332
|
method: DELETE
|
|
333
|
-
auth:
|
|
333
|
+
auth: true
|
|
334
334
|
path-parameters:
|
|
335
335
|
id:
|
|
336
336
|
type: string
|
|
@@ -346,7 +346,7 @@ service:
|
|
|
346
346
|
update-tool-description:
|
|
347
347
|
path: /v0/evi/tools/{id}/version/{version}
|
|
348
348
|
method: PATCH
|
|
349
|
-
auth:
|
|
349
|
+
auth: true
|
|
350
350
|
path-parameters:
|
|
351
351
|
id:
|
|
352
352
|
type: string
|
|
@@ -46,7 +46,6 @@ service:
|
|
|
46
46
|
body:
|
|
47
47
|
- job_id: job_id
|
|
48
48
|
request:
|
|
49
|
-
callback_url: null
|
|
50
49
|
files:
|
|
51
50
|
- filename: filename
|
|
52
51
|
md5sum: md5sum
|
|
@@ -54,8 +53,6 @@ service:
|
|
|
54
53
|
models:
|
|
55
54
|
burst: {}
|
|
56
55
|
face:
|
|
57
|
-
descriptions: null
|
|
58
|
-
facs: null
|
|
59
56
|
fps_pred: 3
|
|
60
57
|
identify_faces: false
|
|
61
58
|
min_face_size: 60
|
|
@@ -65,14 +62,11 @@ service:
|
|
|
65
62
|
language:
|
|
66
63
|
granularity: word
|
|
67
64
|
identify_speakers: false
|
|
68
|
-
sentiment: null
|
|
69
|
-
toxicity: null
|
|
70
65
|
ner:
|
|
71
66
|
identify_speakers: false
|
|
72
67
|
prosody:
|
|
73
68
|
granularity: utterance
|
|
74
69
|
identify_speakers: false
|
|
75
|
-
window: null
|
|
76
70
|
notify: true
|
|
77
71
|
registry_files: []
|
|
78
72
|
text: []
|
|
@@ -141,13 +135,10 @@ service:
|
|
|
141
135
|
type: INFERENCE
|
|
142
136
|
job_id: job_id
|
|
143
137
|
request:
|
|
144
|
-
callback_url: null
|
|
145
138
|
files: []
|
|
146
139
|
models:
|
|
147
140
|
burst: {}
|
|
148
141
|
face:
|
|
149
|
-
descriptions: null
|
|
150
|
-
facs: null
|
|
151
142
|
fps_pred: 3
|
|
152
143
|
identify_faces: false
|
|
153
144
|
min_face_size: 60
|
|
@@ -157,14 +148,11 @@ service:
|
|
|
157
148
|
language:
|
|
158
149
|
granularity: word
|
|
159
150
|
identify_speakers: false
|
|
160
|
-
sentiment: null
|
|
161
|
-
toxicity: null
|
|
162
151
|
ner:
|
|
163
152
|
identify_speakers: false
|
|
164
153
|
prosody:
|
|
165
154
|
granularity: utterance
|
|
166
155
|
identify_speakers: false
|
|
167
|
-
window: null
|
|
168
156
|
notify: true
|
|
169
157
|
registry_files: []
|
|
170
158
|
text: []
|
|
@@ -204,7 +192,6 @@ service:
|
|
|
204
192
|
- file: faces/100.jpg
|
|
205
193
|
models:
|
|
206
194
|
face:
|
|
207
|
-
metadata: null
|
|
208
195
|
grouped_predictions:
|
|
209
196
|
- id: unknown
|
|
210
197
|
predictions:
|
|
@@ -313,8 +300,6 @@ service:
|
|
|
313
300
|
score: 0.1559651643037796
|
|
314
301
|
- name: Triumph
|
|
315
302
|
score: 0.01955239288508892
|
|
316
|
-
facs: null
|
|
317
|
-
descriptions: null
|
|
318
303
|
errors: []
|
|
319
304
|
get-job-artifacts:
|
|
320
305
|
path: /v0/batch/jobs/{id}/artifacts
|
package/.mock/fern.config.json
CHANGED
|
@@ -77,7 +77,7 @@ class Datasets {
|
|
|
77
77
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
78
78
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/registry/datasets"),
|
|
79
79
|
method: "GET",
|
|
80
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
80
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "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,
|
|
@@ -140,7 +140,7 @@ class Datasets {
|
|
|
140
140
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
141
141
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/registry/datasets"),
|
|
142
142
|
method: "POST",
|
|
143
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
143
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), (yield _maybeEncodedRequest.getHeaders())),
|
|
144
144
|
body: yield _maybeEncodedRequest.getBody(),
|
|
145
145
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
146
146
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -191,7 +191,7 @@ class Datasets {
|
|
|
191
191
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
192
192
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/registry/datasets/${encodeURIComponent(id)}`),
|
|
193
193
|
method: "GET",
|
|
194
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
194
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
195
195
|
contentType: "application/json",
|
|
196
196
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
197
197
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -250,7 +250,7 @@ class Datasets {
|
|
|
250
250
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
251
251
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/registry/datasets/${encodeURIComponent(id)}`),
|
|
252
252
|
method: "POST",
|
|
253
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
253
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), (yield _maybeEncodedRequest.getHeaders())),
|
|
254
254
|
body: yield _maybeEncodedRequest.getBody(),
|
|
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,
|
|
@@ -301,7 +301,7 @@ class Datasets {
|
|
|
301
301
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
302
302
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/registry/datasets/${encodeURIComponent(id)}`),
|
|
303
303
|
method: "DELETE",
|
|
304
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
304
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
305
305
|
contentType: "application/json",
|
|
306
306
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
307
307
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -358,7 +358,7 @@ class Datasets {
|
|
|
358
358
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
359
359
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/registry/datasets/${encodeURIComponent(id)}/versions`),
|
|
360
360
|
method: "GET",
|
|
361
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
361
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
362
362
|
contentType: "application/json",
|
|
363
363
|
queryParameters: _queryParams,
|
|
364
364
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -422,7 +422,7 @@ class Datasets {
|
|
|
422
422
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
423
423
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/registry/datasets/${encodeURIComponent(id)}/files`),
|
|
424
424
|
method: "GET",
|
|
425
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
425
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
426
426
|
contentType: "application/json",
|
|
427
427
|
queryParameters: _queryParams,
|
|
428
428
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -474,7 +474,7 @@ class Datasets {
|
|
|
474
474
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
475
475
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/registry/datasets/version/${encodeURIComponent(id)}`),
|
|
476
476
|
method: "GET",
|
|
477
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
477
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
478
478
|
contentType: "application/json",
|
|
479
479
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
480
480
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -537,7 +537,7 @@ class Datasets {
|
|
|
537
537
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
538
538
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/registry/datasets/version/${encodeURIComponent(id)}/files`),
|
|
539
539
|
method: "GET",
|
|
540
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
540
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
541
541
|
contentType: "application/json",
|
|
542
542
|
queryParameters: _queryParams,
|
|
543
543
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -74,7 +74,7 @@ class Files {
|
|
|
74
74
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
75
75
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/registry/files"),
|
|
76
76
|
method: "GET",
|
|
77
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
77
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "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,
|
|
@@ -132,7 +132,7 @@ class Files {
|
|
|
132
132
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
133
133
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/registry/files"),
|
|
134
134
|
method: "POST",
|
|
135
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
135
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
136
136
|
contentType: "application/json",
|
|
137
137
|
body: yield serializers.customModels.files.createFiles.Request.jsonOrThrow(request, {
|
|
138
138
|
unrecognizedObjectKeys: "strip",
|
|
@@ -193,7 +193,7 @@ class Files {
|
|
|
193
193
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
194
194
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/registry/files/upload"),
|
|
195
195
|
method: "POST",
|
|
196
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
196
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), (yield _maybeEncodedRequest.getHeaders())),
|
|
197
197
|
body: yield _maybeEncodedRequest.getBody(),
|
|
198
198
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
199
199
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -244,7 +244,7 @@ class Files {
|
|
|
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/registry/files/${encodeURIComponent(id)}`),
|
|
246
246
|
method: "GET",
|
|
247
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
247
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
248
248
|
contentType: "application/json",
|
|
249
249
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
250
250
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -295,7 +295,7 @@ class Files {
|
|
|
295
295
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
296
296
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/registry/files/${encodeURIComponent(id)}`),
|
|
297
297
|
method: "DELETE",
|
|
298
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
298
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
299
299
|
contentType: "application/json",
|
|
300
300
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
301
301
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -346,7 +346,7 @@ class Files {
|
|
|
346
346
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
347
347
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/registry/files/${encodeURIComponent(id)}`),
|
|
348
348
|
method: "PATCH",
|
|
349
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
349
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
350
350
|
contentType: "application/json",
|
|
351
351
|
queryParameters: _queryParams,
|
|
352
352
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -398,7 +398,7 @@ class Files {
|
|
|
398
398
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
399
399
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/registry/files/${encodeURIComponent(id)}/predictions`),
|
|
400
400
|
method: "GET",
|
|
401
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
401
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
402
402
|
contentType: "application/json",
|
|
403
403
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
404
404
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -70,7 +70,7 @@ class Jobs {
|
|
|
70
70
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
71
71
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/registry/v0/batch/jobs/tl/train"),
|
|
72
72
|
method: "POST",
|
|
73
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
73
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
74
74
|
contentType: "application/json",
|
|
75
75
|
body: yield serializers.customModels.TrainingBaseRequest.jsonOrThrow(request, {
|
|
76
76
|
unrecognizedObjectKeys: "strip",
|
|
@@ -128,7 +128,7 @@ class Jobs {
|
|
|
128
128
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
129
129
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/registry/v0/batch/jobs/tl/inference"),
|
|
130
130
|
method: "POST",
|
|
131
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
131
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "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.customModels.TlInferenceBaseRequest.jsonOrThrow(request, {
|
|
134
134
|
unrecognizedObjectKeys: "strip",
|
|
@@ -77,7 +77,7 @@ class Models {
|
|
|
77
77
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
78
78
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/registry/models"),
|
|
79
79
|
method: "GET",
|
|
80
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
80
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "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,
|
|
@@ -129,7 +129,7 @@ class Models {
|
|
|
129
129
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
130
130
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/registry/models/${encodeURIComponent(id)}`),
|
|
131
131
|
method: "GET",
|
|
132
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
132
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
133
133
|
contentType: "application/json",
|
|
134
134
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
135
135
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -186,7 +186,7 @@ class Models {
|
|
|
186
186
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
187
187
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/registry/models/${encodeURIComponent(id)}`),
|
|
188
188
|
method: "PATCH",
|
|
189
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
189
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
190
190
|
contentType: "application/json",
|
|
191
191
|
queryParameters: _queryParams,
|
|
192
192
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -257,7 +257,7 @@ class Models {
|
|
|
257
257
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
258
258
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/registry/models/version"),
|
|
259
259
|
method: "GET",
|
|
260
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
260
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
261
261
|
contentType: "application/json",
|
|
262
262
|
queryParameters: _queryParams,
|
|
263
263
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -315,7 +315,7 @@ class Models {
|
|
|
315
315
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
316
316
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/registry/models/version/${encodeURIComponent(id)}`),
|
|
317
317
|
method: "GET",
|
|
318
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
318
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
319
319
|
contentType: "application/json",
|
|
320
320
|
queryParameters: _queryParams,
|
|
321
321
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -368,7 +368,7 @@ class Models {
|
|
|
368
368
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
369
369
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/registry/models/version/${encodeURIComponent(id)}`),
|
|
370
370
|
method: "PATCH",
|
|
371
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
371
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
372
372
|
contentType: "application/json",
|
|
373
373
|
body: yield serializers.customModels.models.updateModelDescription.Request.jsonOrThrow(request, {
|
|
374
374
|
unrecognizedObjectKeys: "strip",
|
|
@@ -69,7 +69,7 @@ class ChatGroups {
|
|
|
69
69
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
70
70
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/chat_groups"),
|
|
71
71
|
method: "GET",
|
|
72
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
72
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
73
73
|
contentType: "application/json",
|
|
74
74
|
queryParameters: _queryParams,
|
|
75
75
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -131,7 +131,7 @@ class ChatGroups {
|
|
|
131
131
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
132
132
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/chat_groups/${encodeURIComponent(id)}/events`),
|
|
133
133
|
method: "GET",
|
|
134
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
134
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "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,
|
|
@@ -58,7 +58,7 @@ class Chats {
|
|
|
58
58
|
listChats(request = {}, requestOptions) {
|
|
59
59
|
var _a, _b;
|
|
60
60
|
return __awaiter(this, void 0, void 0, function* () {
|
|
61
|
-
const { pageNumber, pageSize } = request;
|
|
61
|
+
const { pageNumber, pageSize, ascendingOrder } = request;
|
|
62
62
|
const _queryParams = {};
|
|
63
63
|
if (pageNumber != null) {
|
|
64
64
|
_queryParams["page_number"] = pageNumber.toString();
|
|
@@ -66,10 +66,13 @@ class Chats {
|
|
|
66
66
|
if (pageSize != null) {
|
|
67
67
|
_queryParams["page_size"] = pageSize.toString();
|
|
68
68
|
}
|
|
69
|
+
if (ascendingOrder != null) {
|
|
70
|
+
_queryParams["ascending_order"] = ascendingOrder.toString();
|
|
71
|
+
}
|
|
69
72
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
70
73
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/chats"),
|
|
71
74
|
method: "GET",
|
|
72
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
75
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
73
76
|
contentType: "application/json",
|
|
74
77
|
queryParameters: _queryParams,
|
|
75
78
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -128,7 +131,7 @@ class Chats {
|
|
|
128
131
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
129
132
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/chats/${encodeURIComponent(id)}`),
|
|
130
133
|
method: "GET",
|
|
131
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
134
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
132
135
|
contentType: "application/json",
|
|
133
136
|
queryParameters: _queryParams,
|
|
134
137
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|