hume 0.6.3 → 0.7.0
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 +9 -2
- 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/README.md +30 -25
- 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/HumeClient.d.ts +1 -1
- package/dist/wrapper/empathicVoice/EmpathicVoiceClient.d.ts +1 -1
- package/dist/wrapper/empathicVoice/chat/ChatClient.d.ts +1 -3
- package/dist/wrapper/empathicVoice/chat/ChatClient.js +2 -5
- 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/HumeClient.d.ts +1 -1
- package/wrapper/empathicVoice/EmpathicVoiceClient.d.ts +1 -1
- package/wrapper/empathicVoice/chat/ChatClient.d.ts +1 -3
- package/wrapper/empathicVoice/chat/ChatClient.js +2 -5
|
@@ -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
package/README.md
CHANGED
|
@@ -30,30 +30,30 @@ npm i hume
|
|
|
30
30
|
import { HumeClient } from "hume";
|
|
31
31
|
|
|
32
32
|
const hume = new HumeClient({
|
|
33
|
-
apiKey: "YOUR_API_KEY"
|
|
33
|
+
apiKey: "YOUR_API_KEY",
|
|
34
34
|
});
|
|
35
35
|
|
|
36
36
|
const job = await hume.expressionMeasurement.batch.startInferenceJob({
|
|
37
37
|
models: {
|
|
38
|
-
face: {}
|
|
38
|
+
face: {},
|
|
39
39
|
},
|
|
40
|
-
urls: ["https://hume-tutorials.s3.amazonaws.com/faces.zip"]
|
|
40
|
+
urls: ["https://hume-tutorials.s3.amazonaws.com/faces.zip"],
|
|
41
41
|
});
|
|
42
42
|
|
|
43
43
|
console.log("Running...");
|
|
44
44
|
await job.awaitCompletion();
|
|
45
45
|
|
|
46
|
-
|
|
47
46
|
const predictions = await hume.expressionMeasurement.batch.getJobPredictions(job.jobId);
|
|
48
|
-
console.log(predictions)
|
|
47
|
+
console.log(predictions);
|
|
49
48
|
```
|
|
50
49
|
|
|
51
50
|
## Namespaces
|
|
52
|
-
This SDK contains the APIs for expression measurement, empathic voice and custom models. Even
|
|
53
|
-
if you do not plan on using more than one API to start, the SDK provides easy access in
|
|
54
|
-
case you find additional APIs in the future.
|
|
55
51
|
|
|
56
|
-
|
|
52
|
+
This SDK contains the APIs for expression measurement, empathic voice and custom models. Even
|
|
53
|
+
if you do not plan on using more than one API to start, the SDK provides easy access in
|
|
54
|
+
case you find additional APIs in the future.
|
|
55
|
+
|
|
56
|
+
Each API is namespaced accordingly:
|
|
57
57
|
|
|
58
58
|
```typescript
|
|
59
59
|
import { HumeClient } from "hume";
|
|
@@ -68,38 +68,41 @@ hume.emapthicVoice. // APIs specific to Empathic Voice
|
|
|
68
68
|
```
|
|
69
69
|
|
|
70
70
|
## Websockets
|
|
71
|
-
|
|
71
|
+
|
|
72
|
+
The SDK supports interacting with both WebSocket and REST APIs.
|
|
72
73
|
|
|
73
74
|
### Request-Reply
|
|
74
|
-
|
|
75
|
-
|
|
75
|
+
|
|
76
|
+
The SDK supports a request-reply pattern for the streaming expression measurement API.
|
|
77
|
+
You'll be able to pass an inference request and `await` till the response is received.
|
|
76
78
|
|
|
77
79
|
```typescript
|
|
78
80
|
import { HumeClient } from "hume";
|
|
79
81
|
|
|
80
82
|
const hume = new HumeClient({
|
|
81
|
-
apiKey: "YOUR_API_KEY"
|
|
83
|
+
apiKey: "YOUR_API_KEY",
|
|
82
84
|
});
|
|
83
85
|
const socket = hume.expressionMeasurement.stream.connect({
|
|
84
86
|
config: {
|
|
85
|
-
language: {}
|
|
86
|
-
}
|
|
87
|
+
language: {},
|
|
88
|
+
},
|
|
87
89
|
});
|
|
88
90
|
for (const sample of samples) {
|
|
89
|
-
const result = await socket.sendText({ text: sample })
|
|
90
|
-
console.log(result)
|
|
91
|
+
const result = await socket.sendText({ text: sample });
|
|
92
|
+
console.log(result);
|
|
91
93
|
}
|
|
92
94
|
```
|
|
93
95
|
|
|
94
96
|
### Empathic Voice
|
|
95
|
-
|
|
97
|
+
|
|
98
|
+
The SDK supports sending and receiving audio from Empathic Voice.
|
|
96
99
|
|
|
97
100
|
```typescript
|
|
98
101
|
import { HumeClient } from "hume";
|
|
99
102
|
|
|
100
103
|
const hume = new HumeClient({
|
|
101
104
|
apiKey: "<>",
|
|
102
|
-
|
|
105
|
+
secretKey: "<>",
|
|
103
106
|
});
|
|
104
107
|
|
|
105
108
|
const socket = await hume.empathicVoice.chat.connect({
|
|
@@ -108,7 +111,7 @@ const socket = await hume.empathicVoice.chat.connect({
|
|
|
108
111
|
const decoded = Buffer.from(message.data, "base64");
|
|
109
112
|
// play decoded message
|
|
110
113
|
}
|
|
111
|
-
}
|
|
114
|
+
},
|
|
112
115
|
});
|
|
113
116
|
|
|
114
117
|
await socket.sendTextInput("Hello, how are you?");
|
|
@@ -159,15 +162,17 @@ await hume.expressionMeasurement.batch.startInferenceJob(..., {
|
|
|
159
162
|
```
|
|
160
163
|
|
|
161
164
|
## Beta Status
|
|
162
|
-
|
|
163
|
-
|
|
165
|
+
|
|
166
|
+
This SDK is in beta, and there may be breaking changes between versions without a major
|
|
167
|
+
version update. Therefore, we recommend pinning the package version to a specific version.
|
|
164
168
|
This way, you can install the same version each time without breaking changes.
|
|
165
169
|
|
|
166
170
|
## Contributing
|
|
167
|
-
|
|
168
|
-
|
|
171
|
+
|
|
172
|
+
While we value open-source contributions to this SDK, this library is generated programmatically.
|
|
173
|
+
Additions made directly to this library would have to be moved over to our generation code,
|
|
169
174
|
otherwise they would be overwritten upon the next generated release. Feel free to open a PR as a
|
|
170
|
-
proof of concept, but know that we will not be able to merge it as-is. We suggest opening an
|
|
175
|
+
proof of concept, but know that we will not be able to merge it as-is. We suggest opening an
|
|
171
176
|
issue first to discuss with us!
|
|
172
177
|
|
|
173
178
|
On the other hand, contributions to the README are always very welcome!
|
|
@@ -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.
|
|
80
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.0", "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.
|
|
143
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.0", "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.
|
|
194
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.0", "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.
|
|
253
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.0", "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.
|
|
304
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.0", "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.
|
|
361
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.0", "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.
|
|
425
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.0", "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.
|
|
477
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.0", "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.
|
|
540
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.0", "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.
|
|
77
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.0", "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.
|
|
135
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.0", "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.
|
|
196
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.0", "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.
|
|
247
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.0", "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.
|
|
298
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.0", "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.
|
|
349
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.0", "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.
|
|
401
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.0", "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.
|
|
73
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.0", "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.
|
|
131
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.0", "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.
|
|
80
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.0", "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.
|
|
132
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.0", "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.
|
|
189
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.0", "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.
|
|
260
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.0", "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.
|
|
318
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.0", "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.
|
|
371
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.0", "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.
|
|
72
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.0", "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.
|
|
134
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.0", "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,
|