hume 0.6.0 → 0.6.2

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 (164) 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/client/StreamSocket.d.ts +9 -1
  27. package/api/resources/empathicVoice/client/StreamSocket.js +17 -1
  28. package/api/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +1 -1
  29. package/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +42 -0
  30. package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +178 -0
  31. package/api/resources/empathicVoice/resources/chatGroups/client/index.d.ts +1 -0
  32. package/api/resources/empathicVoice/resources/chatGroups/client/index.js +17 -0
  33. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.ts +21 -0
  34. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.js +5 -0
  35. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +17 -0
  36. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.js +5 -0
  37. package/api/resources/empathicVoice/resources/chatGroups/client/requests/index.d.ts +2 -0
  38. package/api/resources/empathicVoice/resources/chatGroups/client/requests/index.js +2 -0
  39. package/api/resources/empathicVoice/resources/chatGroups/index.d.ts +1 -0
  40. package/api/resources/empathicVoice/resources/chatGroups/index.js +17 -0
  41. package/api/resources/empathicVoice/resources/chats/client/Client.js +2 -2
  42. package/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
  43. package/api/resources/empathicVoice/resources/index.d.ts +2 -0
  44. package/api/resources/empathicVoice/resources/index.js +3 -1
  45. package/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
  46. package/api/resources/empathicVoice/resources/tools/client/Client.js +9 -9
  47. package/api/resources/empathicVoice/types/AssistantMessage.d.ts +1 -1
  48. package/api/resources/empathicVoice/types/ChatMetadata.d.ts +15 -0
  49. package/api/resources/empathicVoice/types/ChatMetadata.js +5 -0
  50. package/api/resources/empathicVoice/types/ReturnChat.d.ts +2 -0
  51. package/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +2 -0
  52. package/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +19 -0
  53. package/api/resources/empathicVoice/types/ReturnChatGroup.js +5 -0
  54. package/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +24 -0
  55. package/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +5 -0
  56. package/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +19 -0
  57. package/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +5 -0
  58. package/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +2 -0
  59. package/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +15 -0
  60. package/api/resources/empathicVoice/types/ReturnPagedChatGroups.js +5 -0
  61. package/api/resources/empathicVoice/types/index.d.ts +5 -0
  62. package/api/resources/empathicVoice/types/index.js +5 -0
  63. package/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  64. package/api/resources/index.d.ts +1 -1
  65. package/api/resources/index.js +2 -2
  66. package/core/form-data-utils/FormDataWrapper.js +2 -1
  67. package/dist/Client.d.ts +3 -3
  68. package/dist/Client.js +6 -6
  69. package/dist/api/resources/customModels/resources/datasets/client/Client.js +9 -9
  70. package/dist/api/resources/customModels/resources/files/client/Client.js +7 -7
  71. package/dist/api/resources/customModels/resources/jobs/client/Client.js +2 -2
  72. package/dist/api/resources/customModels/resources/models/client/Client.js +6 -6
  73. package/dist/api/resources/empathicVoice/client/Client.d.ts +3 -0
  74. package/dist/api/resources/empathicVoice/client/Client.js +5 -0
  75. package/dist/api/resources/empathicVoice/client/StreamSocket.d.ts +9 -1
  76. package/dist/api/resources/empathicVoice/client/StreamSocket.js +17 -1
  77. package/dist/api/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +1 -1
  78. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +42 -0
  79. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +178 -0
  80. package/dist/api/resources/empathicVoice/resources/chatGroups/client/index.d.ts +1 -0
  81. package/dist/api/resources/empathicVoice/resources/chatGroups/client/index.js +17 -0
  82. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.ts +21 -0
  83. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.js +5 -0
  84. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +17 -0
  85. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.js +5 -0
  86. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/index.d.ts +2 -0
  87. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/index.js +2 -0
  88. package/dist/api/resources/empathicVoice/resources/chatGroups/index.d.ts +1 -0
  89. package/dist/api/resources/empathicVoice/resources/chatGroups/index.js +17 -0
  90. package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +2 -2
  91. package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
  92. package/dist/api/resources/empathicVoice/resources/index.d.ts +2 -0
  93. package/dist/api/resources/empathicVoice/resources/index.js +3 -1
  94. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
  95. package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +9 -9
  96. package/dist/api/resources/empathicVoice/types/AssistantMessage.d.ts +1 -1
  97. package/dist/api/resources/empathicVoice/types/ChatMetadata.d.ts +15 -0
  98. package/dist/api/resources/empathicVoice/types/ChatMetadata.js +5 -0
  99. package/dist/api/resources/empathicVoice/types/ReturnChat.d.ts +2 -0
  100. package/dist/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +2 -0
  101. package/dist/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +19 -0
  102. package/dist/api/resources/empathicVoice/types/ReturnChatGroup.js +5 -0
  103. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +24 -0
  104. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +5 -0
  105. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +19 -0
  106. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +5 -0
  107. package/dist/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +2 -0
  108. package/dist/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +15 -0
  109. package/dist/api/resources/empathicVoice/types/ReturnPagedChatGroups.js +5 -0
  110. package/dist/api/resources/empathicVoice/types/index.d.ts +5 -0
  111. package/dist/api/resources/empathicVoice/types/index.js +5 -0
  112. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  113. package/dist/api/resources/index.d.ts +1 -1
  114. package/dist/api/resources/index.js +2 -2
  115. package/dist/core/form-data-utils/FormDataWrapper.js +2 -1
  116. package/dist/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +2 -1
  117. package/dist/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.js +2 -0
  118. package/dist/serialization/resources/empathicVoice/types/ChatMetadata.d.ts +15 -0
  119. package/dist/serialization/resources/empathicVoice/types/ChatMetadata.js +36 -0
  120. package/dist/serialization/resources/empathicVoice/types/ReturnChat.d.ts +1 -0
  121. package/dist/serialization/resources/empathicVoice/types/ReturnChat.js +1 -0
  122. package/dist/serialization/resources/empathicVoice/types/ReturnChatEvent.d.ts +1 -0
  123. package/dist/serialization/resources/empathicVoice/types/ReturnChatEvent.js +1 -0
  124. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroup.d.ts +17 -0
  125. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroup.js +38 -0
  126. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +20 -0
  127. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +41 -0
  128. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +17 -0
  129. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +38 -0
  130. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +1 -0
  131. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +1 -0
  132. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +15 -0
  133. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +36 -0
  134. package/dist/serialization/resources/empathicVoice/types/index.d.ts +5 -0
  135. package/dist/serialization/resources/empathicVoice/types/index.js +5 -0
  136. package/dist/serialization/resources/index.d.ts +1 -1
  137. package/dist/serialization/resources/index.js +2 -2
  138. package/dist/wrapper/empathicVoice/chat/ChatClient.d.ts +2 -0
  139. package/dist/wrapper/empathicVoice/chat/ChatClient.js +3 -0
  140. package/package.json +1 -1
  141. package/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +2 -1
  142. package/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.js +2 -0
  143. package/serialization/resources/empathicVoice/types/ChatMetadata.d.ts +15 -0
  144. package/serialization/resources/empathicVoice/types/ChatMetadata.js +36 -0
  145. package/serialization/resources/empathicVoice/types/ReturnChat.d.ts +1 -0
  146. package/serialization/resources/empathicVoice/types/ReturnChat.js +1 -0
  147. package/serialization/resources/empathicVoice/types/ReturnChatEvent.d.ts +1 -0
  148. package/serialization/resources/empathicVoice/types/ReturnChatEvent.js +1 -0
  149. package/serialization/resources/empathicVoice/types/ReturnChatGroup.d.ts +17 -0
  150. package/serialization/resources/empathicVoice/types/ReturnChatGroup.js +38 -0
  151. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +20 -0
  152. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +41 -0
  153. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +17 -0
  154. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +38 -0
  155. package/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +1 -0
  156. package/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +1 -0
  157. package/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +15 -0
  158. package/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +36 -0
  159. package/serialization/resources/empathicVoice/types/index.d.ts +5 -0
  160. package/serialization/resources/empathicVoice/types/index.js +5 -0
  161. package/serialization/resources/index.d.ts +1 -1
  162. package/serialization/resources/index.js +2 -2
  163. package/wrapper/empathicVoice/chat/ChatClient.d.ts +2 -0
  164. package/wrapper/empathicVoice/chat/ChatClient.js +3 -0
@@ -0,0 +1,406 @@
1
+ imports:
2
+ root: __package__.yml
3
+ service:
4
+ auth: false
5
+ base-path: ''
6
+ endpoints:
7
+ list-datasets:
8
+ path: /v0/registry/datasets
9
+ method: GET
10
+ auth: true
11
+ docs: Returns 200 if successful
12
+ display-name: List datasets
13
+ request:
14
+ name: DatasetsListDatasetsRequest
15
+ query-parameters:
16
+ name:
17
+ type: optional<string>
18
+ docs: Dataset 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.DatasetPage
33
+ examples:
34
+ - response:
35
+ body:
36
+ content:
37
+ - id: id
38
+ name: name
39
+ latest_version:
40
+ id: id
41
+ user_id: user_id
42
+ labels_file_uri: labels_file_uri
43
+ feature_types:
44
+ feature_types: CATEGORICAL
45
+ dataset_id: dataset_id
46
+ dataset_version: 1
47
+ created_on: 1
48
+ modified_on: 1
49
+ metadata:
50
+ metadata: {}
51
+ pageable:
52
+ offset: 1
53
+ sort:
54
+ empty: true
55
+ sorted: true
56
+ unsorted: true
57
+ paged: true
58
+ unpaged: true
59
+ page_number: 1
60
+ page_size: 1
61
+ total: 1
62
+ last: true
63
+ total_elements: 1
64
+ total_pages: 1
65
+ size: 1
66
+ number: 1
67
+ sort:
68
+ empty: true
69
+ sorted: true
70
+ unsorted: true
71
+ first: true
72
+ number_of_elements: 1
73
+ empty: true
74
+ create-dataset:
75
+ path: /v0/registry/datasets
76
+ method: POST
77
+ auth: true
78
+ docs: Returns 201 if successful
79
+ display-name: Create dataset
80
+ request:
81
+ name: DatasetsCreateDatasetRequest
82
+ body:
83
+ properties:
84
+ name:
85
+ type: string
86
+ docs: Name of the Dataset to be created
87
+ feature_types: optional<file>
88
+ labels_file: file
89
+ content-type: multipart/form-data
90
+ response:
91
+ docs: Success
92
+ type: root.ReturnDataset
93
+ examples:
94
+ - request:
95
+ name: name
96
+ response:
97
+ body:
98
+ id: id
99
+ name: name
100
+ latest_version:
101
+ id: id
102
+ user_id: user_id
103
+ labels_file_uri: labels_file_uri
104
+ feature_types:
105
+ feature_types: CATEGORICAL
106
+ dataset_id: dataset_id
107
+ dataset_version: 1
108
+ created_on: 1
109
+ modified_on: 1
110
+ metadata:
111
+ metadata:
112
+ metadata:
113
+ key: value
114
+ get-dataset:
115
+ path: /v0/registry/datasets/{id}
116
+ method: GET
117
+ auth: true
118
+ docs: Returns 200 if successful
119
+ path-parameters:
120
+ id:
121
+ type: string
122
+ docs: Hume-generated ID of a Dataset
123
+ display-name: Get dataset
124
+ response:
125
+ docs: Success
126
+ type: root.ReturnDataset
127
+ examples:
128
+ - path-parameters:
129
+ id: id
130
+ response:
131
+ body:
132
+ id: id
133
+ name: name
134
+ latest_version:
135
+ id: id
136
+ user_id: user_id
137
+ labels_file_uri: labels_file_uri
138
+ feature_types:
139
+ feature_types: CATEGORICAL
140
+ dataset_id: dataset_id
141
+ dataset_version: 1
142
+ created_on: 1
143
+ modified_on: 1
144
+ metadata:
145
+ metadata:
146
+ metadata:
147
+ key: value
148
+ create-dataset-version:
149
+ path: /v0/registry/datasets/{id}
150
+ method: POST
151
+ auth: true
152
+ docs: Returns 200 if successful
153
+ path-parameters:
154
+ id:
155
+ type: string
156
+ docs: Hume-generated ID of a Dataset
157
+ display-name: Create dataset version
158
+ request:
159
+ name: DatasetsCreateDatasetVersionRequest
160
+ body:
161
+ properties:
162
+ feature_types: optional<file>
163
+ labels_file: file
164
+ content-type: multipart/form-data
165
+ response:
166
+ docs: Success
167
+ type: list<root.ReturnDataset>
168
+ examples:
169
+ - path-parameters:
170
+ id: id
171
+ request: {}
172
+ response:
173
+ body:
174
+ - id: id
175
+ name: name
176
+ latest_version:
177
+ id: id
178
+ user_id: user_id
179
+ labels_file_uri: labels_file_uri
180
+ feature_types:
181
+ feature_types: CATEGORICAL
182
+ dataset_id: dataset_id
183
+ dataset_version: 1
184
+ created_on: 1
185
+ modified_on: 1
186
+ metadata:
187
+ metadata: {}
188
+ delete-dataset:
189
+ path: /v0/registry/datasets/{id}
190
+ method: DELETE
191
+ auth: true
192
+ docs: Returns 204 if successful
193
+ path-parameters:
194
+ id:
195
+ type: string
196
+ docs: Hume-generated ID of a Dataset
197
+ display-name: Delete dataset
198
+ examples:
199
+ - path-parameters:
200
+ id: id
201
+ list-dataset-versions:
202
+ path: /v0/registry/datasets/{id}/versions
203
+ method: GET
204
+ auth: true
205
+ docs: Returns 200 if successful
206
+ path-parameters:
207
+ id:
208
+ type: string
209
+ docs: Hume-generated ID of a Dataset
210
+ display-name: List dataset versions
211
+ request:
212
+ name: DatasetsListDatasetVersionsRequest
213
+ query-parameters:
214
+ page_number:
215
+ type: optional<integer>
216
+ docs: Index of the first result
217
+ page_size:
218
+ type: optional<integer>
219
+ docs: Maximum number of results
220
+ shared_assets:
221
+ type: optional<boolean>
222
+ docs: >-
223
+ `True` Will show all assets owned by you and shared with you.
224
+ `False` Will show only your assets. Default: `False`
225
+ response:
226
+ docs: Success
227
+ type: root.DatasetVersionPage
228
+ examples:
229
+ - path-parameters:
230
+ id: id
231
+ response:
232
+ body:
233
+ content:
234
+ - id: id
235
+ user_id: user_id
236
+ labels_file_uri: labels_file_uri
237
+ feature_types:
238
+ feature_types: CATEGORICAL
239
+ dataset_id: dataset_id
240
+ dataset_version: 1
241
+ created_on: 1
242
+ pageable:
243
+ offset: 1
244
+ sort:
245
+ empty: true
246
+ sorted: true
247
+ unsorted: true
248
+ paged: true
249
+ unpaged: true
250
+ page_number: 1
251
+ page_size: 1
252
+ total: 1
253
+ last: true
254
+ total_elements: 1
255
+ total_pages: 1
256
+ size: 1
257
+ number: 1
258
+ sort:
259
+ empty: true
260
+ sorted: true
261
+ unsorted: true
262
+ first: true
263
+ number_of_elements: 1
264
+ empty: true
265
+ list-dataset-files:
266
+ path: /v0/registry/datasets/{id}/files
267
+ method: GET
268
+ auth: true
269
+ docs: Returns 200 if successful
270
+ path-parameters:
271
+ id:
272
+ type: string
273
+ docs: Hume-generated ID of a Dataset
274
+ display-name: List dataset files
275
+ request:
276
+ name: DatasetsListDatasetFilesRequest
277
+ query-parameters:
278
+ page_number:
279
+ type: optional<integer>
280
+ docs: Index of the first result
281
+ page_size:
282
+ type: optional<integer>
283
+ docs: Maximum number of results
284
+ shared_assets:
285
+ type: optional<boolean>
286
+ docs: >-
287
+ `True` Will show all assets owned by you and shared with you.
288
+ `False` Will show only your assets. Default: `False`
289
+ response:
290
+ docs: Success
291
+ type: list<root.FilePage>
292
+ examples:
293
+ - path-parameters:
294
+ id: id
295
+ response:
296
+ body:
297
+ - content:
298
+ - file:
299
+ id: id
300
+ user_id: user_id
301
+ data_type: data_type
302
+ is_sanitized: true
303
+ is_owned_by_reader: true
304
+ pageable:
305
+ offset: 1
306
+ paged: true
307
+ unpaged: true
308
+ page_number: 1
309
+ page_size: 1
310
+ total: 1
311
+ last: true
312
+ total_elements: 1
313
+ total_pages: 1
314
+ size: 1
315
+ number: 1
316
+ sort:
317
+ empty: true
318
+ sorted: true
319
+ unsorted: true
320
+ first: true
321
+ number_of_elements: 1
322
+ empty: true
323
+ get-dataset-version:
324
+ path: /v0/registry/datasets/version/{id}
325
+ method: GET
326
+ auth: true
327
+ docs: Returns 200 if successful
328
+ path-parameters:
329
+ id:
330
+ type: string
331
+ docs: Hume-generated ID of a Dataset version
332
+ display-name: Get dataset version
333
+ response:
334
+ docs: Success
335
+ type: root.DatasetLabels
336
+ examples:
337
+ - path-parameters:
338
+ id: id
339
+ response:
340
+ body:
341
+ id: id
342
+ user_id: user_id
343
+ labels_file_uri: labels_file_uri
344
+ feature_type_json_uri: feature_type_json_uri
345
+ dataset_id: dataset_id
346
+ dataset_version: 1
347
+ created_on: 1
348
+ is_most_recent_version: true
349
+ list-dataset-version-files:
350
+ path: /v0/registry/datasets/version/{id}/files
351
+ method: GET
352
+ auth: true
353
+ docs: Returns 200 if successful
354
+ path-parameters:
355
+ id:
356
+ type: string
357
+ docs: Hume-generated ID of a Dataset version
358
+ display-name: List dataset version files
359
+ request:
360
+ name: DatasetsListDatasetVersionFilesRequest
361
+ query-parameters:
362
+ page_number:
363
+ type: optional<integer>
364
+ docs: Index of the first result
365
+ page_size:
366
+ type: optional<integer>
367
+ docs: Maximum number of results
368
+ shared_assets:
369
+ type: optional<boolean>
370
+ docs: >-
371
+ `True` Will show all assets owned by you and shared with you.
372
+ `False` Will show only your assets. Default: `False`
373
+ response:
374
+ docs: Success
375
+ type: list<root.FilePage>
376
+ examples:
377
+ - path-parameters:
378
+ id: id
379
+ response:
380
+ body:
381
+ - content:
382
+ - file:
383
+ id: id
384
+ user_id: user_id
385
+ data_type: data_type
386
+ is_sanitized: true
387
+ is_owned_by_reader: true
388
+ pageable:
389
+ offset: 1
390
+ paged: true
391
+ unpaged: true
392
+ page_number: 1
393
+ page_size: 1
394
+ total: 1
395
+ last: true
396
+ total_elements: 1
397
+ total_pages: 1
398
+ size: 1
399
+ number: 1
400
+ sort:
401
+ empty: true
402
+ sorted: true
403
+ unsorted: true
404
+ first: true
405
+ number_of_elements: 1
406
+ empty: true
@@ -0,0 +1,263 @@
1
+ imports:
2
+ root: __package__.yml
3
+ service:
4
+ auth: false
5
+ base-path: ''
6
+ endpoints:
7
+ list-files:
8
+ path: /v0/registry/files
9
+ method: GET
10
+ auth: true
11
+ docs: Returns 200 if successful
12
+ display-name: List files
13
+ request:
14
+ name: FilesListFilesRequest
15
+ query-parameters:
16
+ page_number:
17
+ type: optional<integer>
18
+ docs: Index of the first result
19
+ page_size:
20
+ type: optional<integer>
21
+ docs: Maximum number of results
22
+ shared_assets:
23
+ type: optional<boolean>
24
+ docs: >-
25
+ `True` Will show all assets owned by you and shared with you.
26
+ `False` Will show only your assets. Default: `False`
27
+ response:
28
+ docs: Success
29
+ type: root.FilePage
30
+ examples:
31
+ - response:
32
+ body:
33
+ content:
34
+ - file:
35
+ id: id
36
+ user_id: user_id
37
+ data_type: data_type
38
+ is_sanitized: true
39
+ is_owned_by_reader: true
40
+ attributes:
41
+ - name: name
42
+ value: value
43
+ pageable:
44
+ offset: 1
45
+ sort:
46
+ empty: true
47
+ sorted: true
48
+ unsorted: true
49
+ paged: true
50
+ unpaged: true
51
+ page_number: 1
52
+ page_size: 1
53
+ total: 1
54
+ last: true
55
+ total_elements: 1
56
+ total_pages: 1
57
+ size: 1
58
+ number: 1
59
+ sort:
60
+ empty: true
61
+ sorted: true
62
+ unsorted: true
63
+ first: true
64
+ number_of_elements: 1
65
+ empty: true
66
+ create-files:
67
+ path: /v0/registry/files
68
+ method: POST
69
+ auth: true
70
+ docs: Returns 201 if successful
71
+ display-name: Create files
72
+ request:
73
+ body:
74
+ docs: List of Files with Attributes to be created
75
+ type: list<root.FileWithAttributesInput>
76
+ response:
77
+ docs: Success
78
+ type: list<root.FileWithAttributes>
79
+ examples:
80
+ - request:
81
+ - file:
82
+ name: name
83
+ hume_storage: true
84
+ data_type: data_type
85
+ response:
86
+ body:
87
+ - file:
88
+ id: id
89
+ name: name
90
+ uri: uri
91
+ upload_uri: upload_uri
92
+ thumbnail_uri: thumbnail_uri
93
+ user_id: user_id
94
+ data_type: data_type
95
+ created_on: 1
96
+ modified_on: 1
97
+ metadata:
98
+ metadata: {}
99
+ hume_storage: true
100
+ hume_storage_upload_timestamp: 1
101
+ is_sanitized: true
102
+ is_owned_by_reader: true
103
+ is_linked_to_publicly_shared: true
104
+ is_linked_to_hume_model: true
105
+ attributes:
106
+ - name: name
107
+ value: value
108
+ upload-file:
109
+ path: /v0/registry/files/upload
110
+ method: POST
111
+ auth: true
112
+ docs: >-
113
+ Upload a file synchronously. Returns 201 if successful. Files must have
114
+ a name. Files must specify Content-Type. Request bodies, and therefore
115
+ files, are limited to 100MB
116
+ display-name: Upload file
117
+ request:
118
+ name: FilesUploadFileRequest
119
+ body:
120
+ properties:
121
+ file: file
122
+ attributes: optional<file>
123
+ content-type: multipart/form-data
124
+ response:
125
+ docs: Success
126
+ type: root.FileWithAttributes
127
+ examples:
128
+ - request: {}
129
+ response:
130
+ body:
131
+ file:
132
+ id: id
133
+ name: name
134
+ uri: uri
135
+ upload_uri: upload_uri
136
+ thumbnail_uri: thumbnail_uri
137
+ user_id: user_id
138
+ data_type: data_type
139
+ created_on: 1
140
+ modified_on: 1
141
+ metadata:
142
+ metadata: {}
143
+ hume_storage: true
144
+ hume_storage_upload_timestamp: 1
145
+ is_sanitized: true
146
+ is_owned_by_reader: true
147
+ is_linked_to_publicly_shared: true
148
+ is_linked_to_hume_model: true
149
+ attributes:
150
+ - name: name
151
+ value: value
152
+ get-file:
153
+ path: /v0/registry/files/{id}
154
+ method: GET
155
+ auth: true
156
+ docs: Returns 200 if successful
157
+ path-parameters:
158
+ id:
159
+ type: string
160
+ docs: Hume-generated ID of a File
161
+ display-name: Get file
162
+ response:
163
+ docs: Success
164
+ type: root.FileWithAttributes
165
+ examples:
166
+ - path-parameters:
167
+ id: id
168
+ response:
169
+ body:
170
+ file:
171
+ id: id
172
+ name: name
173
+ uri: uri
174
+ upload_uri: upload_uri
175
+ thumbnail_uri: thumbnail_uri
176
+ user_id: user_id
177
+ data_type: data_type
178
+ created_on: 1
179
+ modified_on: 1
180
+ metadata:
181
+ metadata: {}
182
+ hume_storage: true
183
+ hume_storage_upload_timestamp: 1
184
+ is_sanitized: true
185
+ is_owned_by_reader: true
186
+ is_linked_to_publicly_shared: true
187
+ is_linked_to_hume_model: true
188
+ attributes:
189
+ - name: name
190
+ value: value
191
+ delete-file:
192
+ path: /v0/registry/files/{id}
193
+ method: DELETE
194
+ auth: true
195
+ docs: Returns 204 if successful
196
+ path-parameters:
197
+ id:
198
+ type: string
199
+ docs: Hume-generated ID of a File
200
+ display-name: Delete file
201
+ examples:
202
+ - path-parameters:
203
+ id: id
204
+ update-file-name:
205
+ path: /v0/registry/files/{id}
206
+ method: PATCH
207
+ auth: true
208
+ docs: Returns 200 if successful
209
+ path-parameters:
210
+ id:
211
+ type: string
212
+ docs: Hume-generated ID of a File
213
+ display-name: Update file name
214
+ request:
215
+ name: FilesUpdateFileNameRequest
216
+ query-parameters:
217
+ name:
218
+ type: string
219
+ docs: New File name
220
+ response:
221
+ docs: Success
222
+ type: root.FileWithAttributes
223
+ examples:
224
+ - path-parameters:
225
+ id: id
226
+ query-parameters:
227
+ name: name
228
+ response:
229
+ body:
230
+ file:
231
+ id: id
232
+ name: name
233
+ uri: uri
234
+ upload_uri: upload_uri
235
+ thumbnail_uri: thumbnail_uri
236
+ user_id: user_id
237
+ data_type: data_type
238
+ created_on: 1
239
+ modified_on: 1
240
+ metadata:
241
+ metadata: {}
242
+ hume_storage: true
243
+ hume_storage_upload_timestamp: 1
244
+ is_sanitized: true
245
+ is_owned_by_reader: true
246
+ is_linked_to_publicly_shared: true
247
+ is_linked_to_hume_model: true
248
+ attributes:
249
+ - name: name
250
+ value: value
251
+ get-file-predictions:
252
+ path: /v0/registry/files/{id}/predictions
253
+ method: GET
254
+ auth: true
255
+ docs: Returns 200 if successful
256
+ path-parameters:
257
+ id:
258
+ type: string
259
+ docs: Hume-generated ID of a File
260
+ display-name: Get file predictions
261
+ examples:
262
+ - path-parameters:
263
+ id: id
@@ -0,0 +1,44 @@
1
+ imports:
2
+ root: __package__.yml
3
+ service:
4
+ auth: false
5
+ base-path: ''
6
+ endpoints:
7
+ start-training-job:
8
+ path: /v0/registry/v0/batch/jobs/tl/train
9
+ method: POST
10
+ auth: true
11
+ docs: Start a new custom models training job.
12
+ display-name: Start training job
13
+ request:
14
+ body: root.TrainingBaseRequest
15
+ response:
16
+ docs: ''
17
+ type: root.JobId
18
+ examples:
19
+ - request:
20
+ custom_model:
21
+ name: name
22
+ dataset:
23
+ id: id
24
+ response:
25
+ body:
26
+ job_id: job_id
27
+ start-custom-models-inference-job:
28
+ path: /v0/registry/v0/batch/jobs/tl/inference
29
+ method: POST
30
+ auth: true
31
+ docs: Start a new custom models inference job.
32
+ display-name: Start custom models inference job
33
+ request:
34
+ body: root.TlInferenceBaseRequest
35
+ response:
36
+ docs: ''
37
+ type: root.JobId
38
+ examples:
39
+ - request:
40
+ custom_model:
41
+ id: id
42
+ response:
43
+ body:
44
+ job_id: job_id