hume 0.6.0 → 0.6.1

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.
Files changed (156) hide show
  1. package/.mock/definition/api.yml +12 -0
  2. package/.mock/definition/custom-models/__package__.yml +1392 -0
  3. package/.mock/definition/custom-models/datasets.yml +406 -0
  4. package/.mock/definition/custom-models/files.yml +263 -0
  5. package/.mock/definition/custom-models/jobs.yml +44 -0
  6. package/.mock/definition/custom-models/models.yml +303 -0
  7. package/.mock/definition/empathic-voice/__package__.yml +896 -0
  8. package/.mock/definition/empathic-voice/chat.yml +59 -0
  9. package/.mock/definition/empathic-voice/chatGroups.yml +80 -0
  10. package/.mock/definition/empathic-voice/chats.yml +86 -0
  11. package/.mock/definition/empathic-voice/configs.yml +413 -0
  12. package/.mock/definition/empathic-voice/prompts.yml +265 -0
  13. package/.mock/definition/empathic-voice/tools.yml +398 -0
  14. package/.mock/definition/expression-measurement/__package__.yml +1122 -0
  15. package/.mock/definition/expression-measurement/batch.yml +352 -0
  16. package/.mock/definition/expression-measurement/stream.yml +362 -0
  17. package/.mock/fern.config.json +4 -0
  18. package/Client.d.ts +3 -3
  19. package/Client.js +6 -6
  20. package/api/resources/customModels/resources/datasets/client/Client.js +9 -9
  21. package/api/resources/customModels/resources/files/client/Client.js +7 -7
  22. package/api/resources/customModels/resources/jobs/client/Client.js +2 -2
  23. package/api/resources/customModels/resources/models/client/Client.js +6 -6
  24. package/api/resources/empathicVoice/client/Client.d.ts +3 -0
  25. package/api/resources/empathicVoice/client/Client.js +5 -0
  26. package/api/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +1 -1
  27. package/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +42 -0
  28. package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +178 -0
  29. package/api/resources/empathicVoice/resources/chatGroups/client/index.d.ts +1 -0
  30. package/api/resources/empathicVoice/resources/chatGroups/client/index.js +17 -0
  31. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.ts +21 -0
  32. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.js +5 -0
  33. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +17 -0
  34. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.js +5 -0
  35. package/api/resources/empathicVoice/resources/chatGroups/client/requests/index.d.ts +2 -0
  36. package/api/resources/empathicVoice/resources/chatGroups/client/requests/index.js +2 -0
  37. package/api/resources/empathicVoice/resources/chatGroups/index.d.ts +1 -0
  38. package/api/resources/empathicVoice/resources/chatGroups/index.js +17 -0
  39. package/api/resources/empathicVoice/resources/chats/client/Client.js +2 -2
  40. package/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
  41. package/api/resources/empathicVoice/resources/index.d.ts +2 -0
  42. package/api/resources/empathicVoice/resources/index.js +3 -1
  43. package/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
  44. package/api/resources/empathicVoice/resources/tools/client/Client.js +9 -9
  45. package/api/resources/empathicVoice/types/AssistantMessage.d.ts +1 -1
  46. package/api/resources/empathicVoice/types/ChatMetadata.d.ts +15 -0
  47. package/api/resources/empathicVoice/types/ChatMetadata.js +5 -0
  48. package/api/resources/empathicVoice/types/ReturnChat.d.ts +2 -0
  49. package/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +2 -0
  50. package/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +19 -0
  51. package/api/resources/empathicVoice/types/ReturnChatGroup.js +5 -0
  52. package/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +24 -0
  53. package/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +5 -0
  54. package/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +19 -0
  55. package/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +5 -0
  56. package/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +2 -0
  57. package/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +15 -0
  58. package/api/resources/empathicVoice/types/ReturnPagedChatGroups.js +5 -0
  59. package/api/resources/empathicVoice/types/index.d.ts +5 -0
  60. package/api/resources/empathicVoice/types/index.js +5 -0
  61. package/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  62. package/api/resources/index.d.ts +1 -1
  63. package/api/resources/index.js +2 -2
  64. package/core/form-data-utils/FormDataWrapper.js +2 -1
  65. package/dist/Client.d.ts +3 -3
  66. package/dist/Client.js +6 -6
  67. package/dist/api/resources/customModels/resources/datasets/client/Client.js +9 -9
  68. package/dist/api/resources/customModels/resources/files/client/Client.js +7 -7
  69. package/dist/api/resources/customModels/resources/jobs/client/Client.js +2 -2
  70. package/dist/api/resources/customModels/resources/models/client/Client.js +6 -6
  71. package/dist/api/resources/empathicVoice/client/Client.d.ts +3 -0
  72. package/dist/api/resources/empathicVoice/client/Client.js +5 -0
  73. package/dist/api/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +1 -1
  74. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +42 -0
  75. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +178 -0
  76. package/dist/api/resources/empathicVoice/resources/chatGroups/client/index.d.ts +1 -0
  77. package/dist/api/resources/empathicVoice/resources/chatGroups/client/index.js +17 -0
  78. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.ts +21 -0
  79. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.js +5 -0
  80. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +17 -0
  81. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.js +5 -0
  82. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/index.d.ts +2 -0
  83. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/index.js +2 -0
  84. package/dist/api/resources/empathicVoice/resources/chatGroups/index.d.ts +1 -0
  85. package/dist/api/resources/empathicVoice/resources/chatGroups/index.js +17 -0
  86. package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +2 -2
  87. package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
  88. package/dist/api/resources/empathicVoice/resources/index.d.ts +2 -0
  89. package/dist/api/resources/empathicVoice/resources/index.js +3 -1
  90. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
  91. package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +9 -9
  92. package/dist/api/resources/empathicVoice/types/AssistantMessage.d.ts +1 -1
  93. package/dist/api/resources/empathicVoice/types/ChatMetadata.d.ts +15 -0
  94. package/dist/api/resources/empathicVoice/types/ChatMetadata.js +5 -0
  95. package/dist/api/resources/empathicVoice/types/ReturnChat.d.ts +2 -0
  96. package/dist/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +2 -0
  97. package/dist/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +19 -0
  98. package/dist/api/resources/empathicVoice/types/ReturnChatGroup.js +5 -0
  99. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +24 -0
  100. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +5 -0
  101. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +19 -0
  102. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +5 -0
  103. package/dist/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +2 -0
  104. package/dist/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +15 -0
  105. package/dist/api/resources/empathicVoice/types/ReturnPagedChatGroups.js +5 -0
  106. package/dist/api/resources/empathicVoice/types/index.d.ts +5 -0
  107. package/dist/api/resources/empathicVoice/types/index.js +5 -0
  108. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  109. package/dist/api/resources/index.d.ts +1 -1
  110. package/dist/api/resources/index.js +2 -2
  111. package/dist/core/form-data-utils/FormDataWrapper.js +2 -1
  112. package/dist/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +2 -1
  113. package/dist/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.js +2 -0
  114. package/dist/serialization/resources/empathicVoice/types/ChatMetadata.d.ts +15 -0
  115. package/dist/serialization/resources/empathicVoice/types/ChatMetadata.js +36 -0
  116. package/dist/serialization/resources/empathicVoice/types/ReturnChat.d.ts +1 -0
  117. package/dist/serialization/resources/empathicVoice/types/ReturnChat.js +1 -0
  118. package/dist/serialization/resources/empathicVoice/types/ReturnChatEvent.d.ts +1 -0
  119. package/dist/serialization/resources/empathicVoice/types/ReturnChatEvent.js +1 -0
  120. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroup.d.ts +17 -0
  121. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroup.js +38 -0
  122. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +20 -0
  123. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +41 -0
  124. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +17 -0
  125. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +38 -0
  126. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +1 -0
  127. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +1 -0
  128. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +15 -0
  129. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +36 -0
  130. package/dist/serialization/resources/empathicVoice/types/index.d.ts +5 -0
  131. package/dist/serialization/resources/empathicVoice/types/index.js +5 -0
  132. package/dist/serialization/resources/index.d.ts +1 -1
  133. package/dist/serialization/resources/index.js +2 -2
  134. package/package.json +1 -1
  135. package/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +2 -1
  136. package/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.js +2 -0
  137. package/serialization/resources/empathicVoice/types/ChatMetadata.d.ts +15 -0
  138. package/serialization/resources/empathicVoice/types/ChatMetadata.js +36 -0
  139. package/serialization/resources/empathicVoice/types/ReturnChat.d.ts +1 -0
  140. package/serialization/resources/empathicVoice/types/ReturnChat.js +1 -0
  141. package/serialization/resources/empathicVoice/types/ReturnChatEvent.d.ts +1 -0
  142. package/serialization/resources/empathicVoice/types/ReturnChatEvent.js +1 -0
  143. package/serialization/resources/empathicVoice/types/ReturnChatGroup.d.ts +17 -0
  144. package/serialization/resources/empathicVoice/types/ReturnChatGroup.js +38 -0
  145. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +20 -0
  146. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +41 -0
  147. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +17 -0
  148. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +38 -0
  149. package/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +1 -0
  150. package/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +1 -0
  151. package/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +15 -0
  152. package/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +36 -0
  153. package/serialization/resources/empathicVoice/types/index.d.ts +5 -0
  154. package/serialization/resources/empathicVoice/types/index.js +5 -0
  155. package/serialization/resources/index.d.ts +1 -1
  156. package/serialization/resources/index.js +2 -2
@@ -0,0 +1,303 @@
1
+ imports:
2
+ root: __package__.yml
3
+ service:
4
+ auth: false
5
+ base-path: ''
6
+ endpoints:
7
+ list-models:
8
+ path: /v0/registry/models
9
+ method: GET
10
+ auth: true
11
+ docs: Returns 200 if successful
12
+ display-name: List models
13
+ request:
14
+ name: ModelsListModelsRequest
15
+ query-parameters:
16
+ name:
17
+ type: optional<string>
18
+ docs: Model name to be queried
19
+ page_number:
20
+ type: optional<integer>
21
+ docs: Index of the first result
22
+ page_size:
23
+ type: optional<integer>
24
+ docs: Maximum number of results
25
+ shared_assets:
26
+ type: optional<boolean>
27
+ docs: >-
28
+ `True` Will show all assets owned by you and shared with you.
29
+ `False` Will show only your assets. Default: `False`
30
+ response:
31
+ docs: Success
32
+ type: root.ModelPage
33
+ examples:
34
+ - response:
35
+ body:
36
+ content:
37
+ - id: id
38
+ name: name
39
+ created_on: 1
40
+ modified_on: 1
41
+ total_stars: 1
42
+ model_is_starred_by_user: true
43
+ archived: true
44
+ latest_version:
45
+ id: id
46
+ model_id: model_id
47
+ user_id: user_id
48
+ version: version
49
+ source_uri: source_uri
50
+ dataset_version_id: dataset_version_id
51
+ created_on: 1
52
+ is_publicly_shared: true
53
+ pageable:
54
+ offset: 1
55
+ sort:
56
+ empty: true
57
+ sorted: true
58
+ unsorted: true
59
+ paged: true
60
+ unpaged: true
61
+ page_number: 1
62
+ page_size: 1
63
+ total: 1
64
+ last: true
65
+ total_elements: 1
66
+ total_pages: 1
67
+ size: 1
68
+ number: 1
69
+ sort:
70
+ empty: true
71
+ sorted: true
72
+ unsorted: true
73
+ first: true
74
+ number_of_elements: 1
75
+ empty: true
76
+ get-model-details:
77
+ path: /v0/registry/models/{id}
78
+ method: GET
79
+ auth: true
80
+ docs: Returns 200 if successful
81
+ path-parameters:
82
+ id:
83
+ type: string
84
+ docs: Hume-generated ID of a Model
85
+ display-name: Get model details
86
+ response:
87
+ docs: Success
88
+ type: root.ExternalModel
89
+ examples:
90
+ - path-parameters:
91
+ id: id
92
+ response:
93
+ body:
94
+ id: id
95
+ name: name
96
+ created_on: 1
97
+ modified_on: 1
98
+ total_stars: 1
99
+ model_is_starred_by_user: true
100
+ archived: true
101
+ latest_version:
102
+ id: id
103
+ model_id: model_id
104
+ user_id: user_id
105
+ version: version
106
+ source_uri: source_uri
107
+ dataset_version_id: dataset_version_id
108
+ created_on: 1
109
+ metadata:
110
+ metadata: {}
111
+ description: description
112
+ tags:
113
+ - key: key
114
+ value: value
115
+ file_type: video
116
+ target_feature: target_feature
117
+ task_type: task_type
118
+ training_job_id: training_job_id
119
+ is_publicly_shared: true
120
+ update-model-name:
121
+ path: /v0/registry/models/{id}
122
+ method: PATCH
123
+ auth: true
124
+ docs: Returns 200 if successful
125
+ path-parameters:
126
+ id:
127
+ type: string
128
+ docs: Hume-generated ID of a Model
129
+ display-name: Update model name
130
+ request:
131
+ name: ModelsUpdateModelNameRequest
132
+ query-parameters:
133
+ name:
134
+ type: string
135
+ docs: New Model name
136
+ response:
137
+ docs: Success
138
+ type: root.ExternalModel
139
+ examples:
140
+ - path-parameters:
141
+ id: id
142
+ query-parameters:
143
+ name: name
144
+ response:
145
+ body:
146
+ id: id
147
+ name: name
148
+ created_on: 1
149
+ modified_on: 1
150
+ total_stars: 1
151
+ model_is_starred_by_user: true
152
+ archived: true
153
+ latest_version:
154
+ id: id
155
+ model_id: model_id
156
+ user_id: user_id
157
+ version: version
158
+ source_uri: source_uri
159
+ dataset_version_id: dataset_version_id
160
+ created_on: 1
161
+ metadata:
162
+ metadata: {}
163
+ description: description
164
+ tags:
165
+ - key: key
166
+ value: value
167
+ file_type: video
168
+ target_feature: target_feature
169
+ task_type: task_type
170
+ training_job_id: training_job_id
171
+ is_publicly_shared: true
172
+ list-model-versions:
173
+ path: /v0/registry/models/version
174
+ method: GET
175
+ auth: true
176
+ docs: Returns 200 if successful
177
+ display-name: List model versions
178
+ request:
179
+ name: ModelsListModelVersionsRequest
180
+ query-parameters:
181
+ id:
182
+ type: optional<string>
183
+ allow-multiple: true
184
+ docs: Hume-generated Model Version IDs to be queried
185
+ name:
186
+ type: optional<string>
187
+ docs: Model version name to be queried
188
+ version:
189
+ type: optional<string>
190
+ docs: Model version number to be queried
191
+ shared_assets:
192
+ type: optional<boolean>
193
+ docs: >-
194
+ `True` Will show all assets owned by you and shared with you.
195
+ `False` Will show only your assets. Default: `False`
196
+ response:
197
+ docs: Success
198
+ type: list<root.ExternalModelVersion>
199
+ examples:
200
+ - response:
201
+ body:
202
+ - id: id
203
+ model_id: model_id
204
+ user_id: user_id
205
+ version: version
206
+ source_uri: source_uri
207
+ dataset_version_id: dataset_version_id
208
+ created_on: 1
209
+ metadata:
210
+ metadata: {}
211
+ description: description
212
+ tags:
213
+ - key: key
214
+ value: value
215
+ file_type: video
216
+ target_feature: target_feature
217
+ task_type: task_type
218
+ training_job_id: training_job_id
219
+ get-model-version:
220
+ path: /v0/registry/models/version/{id}
221
+ method: GET
222
+ auth: true
223
+ docs: Returns 200 if successful
224
+ path-parameters:
225
+ id:
226
+ type: string
227
+ docs: Hume-generated ID of a Model version
228
+ display-name: Get model version
229
+ request:
230
+ name: ModelsGetModelVersionRequest
231
+ query-parameters:
232
+ shared_assets:
233
+ type: optional<boolean>
234
+ docs: >-
235
+ `True` Will show all assets owned by you and shared with you.
236
+ `False` Will show only your assets. Default: `False`
237
+ response:
238
+ docs: Success
239
+ type: root.ExternalModelVersion
240
+ examples:
241
+ - path-parameters:
242
+ id: id
243
+ response:
244
+ body:
245
+ id: id
246
+ model_id: model_id
247
+ user_id: user_id
248
+ version: version
249
+ source_uri: source_uri
250
+ dataset_version_id: dataset_version_id
251
+ created_on: 1
252
+ metadata:
253
+ metadata:
254
+ metadata:
255
+ key: value
256
+ description: description
257
+ tags:
258
+ - key: key
259
+ value: value
260
+ file_type: video
261
+ target_feature: target_feature
262
+ task_type: task_type
263
+ training_job_id: training_job_id
264
+ update-model-description:
265
+ path: /v0/registry/models/version/{id}
266
+ method: PATCH
267
+ auth: true
268
+ docs: Returns 200 if successful
269
+ path-parameters:
270
+ id:
271
+ type: string
272
+ docs: Hume-generated ID of a Model Version
273
+ display-name: Update model description
274
+ request:
275
+ body: string
276
+ response:
277
+ docs: Success
278
+ type: root.ExternalModelVersion
279
+ examples:
280
+ - path-parameters:
281
+ id: id
282
+ request: string
283
+ response:
284
+ body:
285
+ id: id
286
+ model_id: model_id
287
+ user_id: user_id
288
+ version: version
289
+ source_uri: source_uri
290
+ dataset_version_id: dataset_version_id
291
+ created_on: 1
292
+ metadata:
293
+ metadata:
294
+ metadata:
295
+ key: value
296
+ description: description
297
+ tags:
298
+ - key: key
299
+ value: value
300
+ file_type: video
301
+ target_feature: target_feature
302
+ task_type: task_type
303
+ training_job_id: training_job_id