twelvelabs-js 1.2.7 → 1.2.9

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 (337) hide show
  1. package/.fern/replay.lock +7 -1
  2. package/Client.d.ts +4 -0
  3. package/Client.js +6 -2
  4. package/api/client/requests/AnalyzeRequest.d.ts +1 -1
  5. package/api/client/requests/AnalyzeStreamRequest.d.ts +1 -1
  6. package/api/errors/GatewayTimeoutError.d.ts +9 -0
  7. package/api/errors/GatewayTimeoutError.js +52 -0
  8. package/api/errors/ServiceUnavailableError.d.ts +9 -0
  9. package/api/errors/ServiceUnavailableError.js +52 -0
  10. package/api/errors/index.d.ts +2 -0
  11. package/api/errors/index.js +2 -0
  12. package/api/resources/analyzeAsync/client/Client.d.ts +3 -0
  13. package/api/resources/analyzeAsync/client/Client.js +5 -0
  14. package/api/resources/analyzeAsync/resources/batches/client/Client.d.ts +231 -0
  15. package/api/resources/analyzeAsync/resources/batches/client/Client.js +667 -0
  16. package/api/resources/analyzeAsync/resources/batches/client/index.d.ts +1 -0
  17. package/api/resources/analyzeAsync/resources/batches/client/index.js +17 -0
  18. package/api/resources/analyzeAsync/resources/batches/client/requests/BatchesListRequest.d.ts +42 -0
  19. package/api/resources/analyzeAsync/resources/batches/client/requests/BatchesListRequest.js +5 -0
  20. package/api/resources/analyzeAsync/resources/batches/client/requests/CreateAnalyzeBatchRequest.d.ts +101 -0
  21. package/api/resources/analyzeAsync/resources/batches/client/requests/CreateAnalyzeBatchRequest.js +5 -0
  22. package/api/resources/analyzeAsync/resources/batches/client/requests/index.d.ts +2 -0
  23. package/api/resources/analyzeAsync/resources/batches/client/requests/index.js +2 -0
  24. package/api/resources/analyzeAsync/resources/batches/index.d.ts +2 -0
  25. package/api/resources/analyzeAsync/resources/batches/index.js +18 -0
  26. package/api/resources/analyzeAsync/resources/batches/types/BatchesListRequestAnalysisModeItem.d.ts +8 -0
  27. package/api/resources/analyzeAsync/resources/batches/types/BatchesListRequestAnalysisModeItem.js +10 -0
  28. package/api/resources/analyzeAsync/resources/batches/types/BatchesListResponse.d.ts +9 -0
  29. package/api/resources/analyzeAsync/resources/batches/types/BatchesListResponse.js +5 -0
  30. package/api/resources/analyzeAsync/resources/batches/types/CreateAnalyzeBatchRequestAnalysisMode.d.ts +15 -0
  31. package/api/resources/analyzeAsync/resources/batches/types/CreateAnalyzeBatchRequestAnalysisMode.js +10 -0
  32. package/api/resources/analyzeAsync/resources/batches/types/CreateAnalyzeBatchRequestModelName.d.ts +10 -0
  33. package/api/resources/analyzeAsync/resources/batches/types/CreateAnalyzeBatchRequestModelName.js +9 -0
  34. package/api/resources/analyzeAsync/resources/batches/types/index.d.ts +4 -0
  35. package/api/resources/analyzeAsync/resources/batches/types/index.js +20 -0
  36. package/api/resources/analyzeAsync/resources/index.d.ts +3 -0
  37. package/api/resources/analyzeAsync/resources/index.js +4 -1
  38. package/api/resources/analyzeAsync/resources/tasks/client/Client.d.ts +2 -0
  39. package/api/resources/analyzeAsync/resources/tasks/client/Client.js +6 -4
  40. package/api/resources/analyzeAsync/resources/tasks/client/requests/CreateAsyncAnalyzeRequest.d.ts +1 -1
  41. package/api/resources/assets/client/Client.d.ts +7 -3
  42. package/api/resources/assets/client/Client.js +14 -10
  43. package/api/resources/assets/client/requests/AssetsCreateRequest.d.ts +1 -1
  44. package/api/resources/embed/client/Client.js +1 -1
  45. package/api/resources/embed/resources/tasks/client/Client.js +4 -4
  46. package/api/resources/embed/resources/v2/client/Client.js +1 -1
  47. package/api/resources/embed/resources/v2/resources/tasks/client/Client.d.ts +2 -6
  48. package/api/resources/embed/resources/v2/resources/tasks/client/Client.js +5 -9
  49. package/api/resources/entityCollections/client/Client.js +5 -5
  50. package/api/resources/entityCollections/resources/entities/client/Client.js +9 -9
  51. package/api/resources/indexes/client/Client.js +5 -5
  52. package/api/resources/indexes/resources/indexedAssets/client/Client.d.ts +2 -0
  53. package/api/resources/indexes/resources/indexedAssets/client/Client.js +8 -6
  54. package/api/resources/indexes/resources/videos/client/Client.js +4 -4
  55. package/api/resources/multipartUpload/client/Client.d.ts +2 -2
  56. package/api/resources/multipartUpload/client/Client.js +7 -7
  57. package/api/resources/search/client/Client.js +2 -2
  58. package/api/resources/tasks/client/Client.d.ts +2 -0
  59. package/api/resources/tasks/client/Client.js +6 -4
  60. package/api/types/AnalyzeBatchStatusResponse.d.ts +21 -0
  61. package/api/types/AnalyzeBatchStatusResponse.js +5 -0
  62. package/api/types/AnalyzeBatchSummary.d.ts +28 -0
  63. package/api/types/AnalyzeBatchSummary.js +5 -0
  64. package/api/types/AnalyzeBatchSummaryAnalysisMode.d.ts +11 -0
  65. package/api/types/AnalyzeBatchSummaryAnalysisMode.js +10 -0
  66. package/api/types/Asset.d.ts +6 -8
  67. package/api/types/AssetDetail.d.ts +7 -0
  68. package/api/types/AssetError.d.ts +10 -0
  69. package/api/types/AssetError.js +5 -0
  70. package/api/types/AssetStatus.d.ts +6 -4
  71. package/api/types/AudioStream.d.ts +28 -0
  72. package/api/types/AudioStream.js +5 -0
  73. package/api/types/BatchDefaults.d.ts +46 -0
  74. package/api/types/BatchDefaults.js +5 -0
  75. package/api/types/BatchItemError.d.ts +12 -0
  76. package/api/types/BatchItemError.js +5 -0
  77. package/api/types/BatchItemRequest.d.ts +36 -0
  78. package/api/types/BatchItemRequest.js +5 -0
  79. package/api/types/BatchItemStatus.d.ts +14 -0
  80. package/api/types/BatchItemStatus.js +13 -0
  81. package/api/types/BatchPrompt.d.ts +13 -0
  82. package/api/types/BatchPrompt.js +5 -0
  83. package/api/types/BatchResultItem.d.ts +17 -0
  84. package/api/types/BatchResultItem.js +5 -0
  85. package/api/types/BatchStatus.d.ts +15 -0
  86. package/api/types/BatchStatus.js +14 -0
  87. package/api/types/BatchVideoContext.d.ts +13 -0
  88. package/api/types/BatchVideoContext.js +5 -0
  89. package/api/types/BatchVideoContextType.d.ts +10 -0
  90. package/api/types/BatchVideoContextType.js +9 -0
  91. package/api/types/CreateAnalyzeBatchResponse.d.ts +20 -0
  92. package/api/types/CreateAnalyzeBatchResponse.js +5 -0
  93. package/api/types/CreatedBatchItem.d.ts +12 -0
  94. package/api/types/CreatedBatchItem.js +5 -0
  95. package/api/types/EmbeddingTaskResponse.d.ts +1 -1
  96. package/api/types/EmbeddingTaskResponseError.d.ts +1 -1
  97. package/api/types/EmbeddingTaskResponseStatus.d.ts +1 -1
  98. package/api/types/MultipartUploadStatusType.d.ts +3 -3
  99. package/api/types/TechnicalMetadata.d.ts +81 -0
  100. package/api/types/TechnicalMetadata.js +5 -0
  101. package/api/types/VideoStream.d.ts +44 -0
  102. package/api/types/VideoStream.js +5 -0
  103. package/api/types/index.d.ts +18 -0
  104. package/api/types/index.js +18 -0
  105. package/dist/Client.d.ts +4 -0
  106. package/dist/Client.js +6 -2
  107. package/dist/api/client/requests/AnalyzeRequest.d.ts +1 -1
  108. package/dist/api/client/requests/AnalyzeStreamRequest.d.ts +1 -1
  109. package/dist/api/errors/GatewayTimeoutError.d.ts +9 -0
  110. package/dist/api/errors/GatewayTimeoutError.js +52 -0
  111. package/dist/api/errors/ServiceUnavailableError.d.ts +9 -0
  112. package/dist/api/errors/ServiceUnavailableError.js +52 -0
  113. package/dist/api/errors/index.d.ts +2 -0
  114. package/dist/api/errors/index.js +2 -0
  115. package/dist/api/resources/analyzeAsync/client/Client.d.ts +3 -0
  116. package/dist/api/resources/analyzeAsync/client/Client.js +5 -0
  117. package/dist/api/resources/analyzeAsync/resources/batches/client/Client.d.ts +231 -0
  118. package/dist/api/resources/analyzeAsync/resources/batches/client/Client.js +667 -0
  119. package/dist/api/resources/analyzeAsync/resources/batches/client/index.d.ts +1 -0
  120. package/dist/api/resources/analyzeAsync/resources/batches/client/index.js +17 -0
  121. package/dist/api/resources/analyzeAsync/resources/batches/client/requests/BatchesListRequest.d.ts +42 -0
  122. package/dist/api/resources/analyzeAsync/resources/batches/client/requests/BatchesListRequest.js +5 -0
  123. package/dist/api/resources/analyzeAsync/resources/batches/client/requests/CreateAnalyzeBatchRequest.d.ts +101 -0
  124. package/dist/api/resources/analyzeAsync/resources/batches/client/requests/CreateAnalyzeBatchRequest.js +5 -0
  125. package/dist/api/resources/analyzeAsync/resources/batches/client/requests/index.d.ts +2 -0
  126. package/dist/api/resources/analyzeAsync/resources/batches/client/requests/index.js +2 -0
  127. package/dist/api/resources/analyzeAsync/resources/batches/index.d.ts +2 -0
  128. package/dist/api/resources/analyzeAsync/resources/batches/index.js +18 -0
  129. package/dist/api/resources/analyzeAsync/resources/batches/types/BatchesListRequestAnalysisModeItem.d.ts +8 -0
  130. package/dist/api/resources/analyzeAsync/resources/batches/types/BatchesListRequestAnalysisModeItem.js +10 -0
  131. package/dist/api/resources/analyzeAsync/resources/batches/types/BatchesListResponse.d.ts +9 -0
  132. package/dist/api/resources/analyzeAsync/resources/batches/types/BatchesListResponse.js +5 -0
  133. package/dist/api/resources/analyzeAsync/resources/batches/types/CreateAnalyzeBatchRequestAnalysisMode.d.ts +15 -0
  134. package/dist/api/resources/analyzeAsync/resources/batches/types/CreateAnalyzeBatchRequestAnalysisMode.js +10 -0
  135. package/dist/api/resources/analyzeAsync/resources/batches/types/CreateAnalyzeBatchRequestModelName.d.ts +10 -0
  136. package/dist/api/resources/analyzeAsync/resources/batches/types/CreateAnalyzeBatchRequestModelName.js +9 -0
  137. package/dist/api/resources/analyzeAsync/resources/batches/types/index.d.ts +4 -0
  138. package/dist/api/resources/analyzeAsync/resources/batches/types/index.js +20 -0
  139. package/dist/api/resources/analyzeAsync/resources/index.d.ts +3 -0
  140. package/dist/api/resources/analyzeAsync/resources/index.js +4 -1
  141. package/dist/api/resources/analyzeAsync/resources/tasks/client/Client.d.ts +2 -0
  142. package/dist/api/resources/analyzeAsync/resources/tasks/client/Client.js +6 -4
  143. package/dist/api/resources/analyzeAsync/resources/tasks/client/requests/CreateAsyncAnalyzeRequest.d.ts +1 -1
  144. package/dist/api/resources/assets/client/Client.d.ts +7 -3
  145. package/dist/api/resources/assets/client/Client.js +14 -10
  146. package/dist/api/resources/assets/client/requests/AssetsCreateRequest.d.ts +1 -1
  147. package/dist/api/resources/embed/client/Client.js +1 -1
  148. package/dist/api/resources/embed/resources/tasks/client/Client.js +4 -4
  149. package/dist/api/resources/embed/resources/v2/client/Client.js +1 -1
  150. package/dist/api/resources/embed/resources/v2/resources/tasks/client/Client.d.ts +2 -6
  151. package/dist/api/resources/embed/resources/v2/resources/tasks/client/Client.js +5 -9
  152. package/dist/api/resources/entityCollections/client/Client.js +5 -5
  153. package/dist/api/resources/entityCollections/resources/entities/client/Client.js +9 -9
  154. package/dist/api/resources/indexes/client/Client.js +5 -5
  155. package/dist/api/resources/indexes/resources/indexedAssets/client/Client.d.ts +2 -0
  156. package/dist/api/resources/indexes/resources/indexedAssets/client/Client.js +8 -6
  157. package/dist/api/resources/indexes/resources/videos/client/Client.js +4 -4
  158. package/dist/api/resources/multipartUpload/client/Client.d.ts +2 -2
  159. package/dist/api/resources/multipartUpload/client/Client.js +7 -7
  160. package/dist/api/resources/search/client/Client.js +2 -2
  161. package/dist/api/resources/tasks/client/Client.d.ts +2 -0
  162. package/dist/api/resources/tasks/client/Client.js +6 -4
  163. package/dist/api/types/AnalyzeBatchStatusResponse.d.ts +21 -0
  164. package/dist/api/types/AnalyzeBatchStatusResponse.js +5 -0
  165. package/dist/api/types/AnalyzeBatchSummary.d.ts +28 -0
  166. package/dist/api/types/AnalyzeBatchSummary.js +5 -0
  167. package/dist/api/types/AnalyzeBatchSummaryAnalysisMode.d.ts +11 -0
  168. package/dist/api/types/AnalyzeBatchSummaryAnalysisMode.js +10 -0
  169. package/dist/api/types/Asset.d.ts +6 -8
  170. package/dist/api/types/AssetDetail.d.ts +7 -0
  171. package/dist/api/types/AssetError.d.ts +10 -0
  172. package/dist/api/types/AssetError.js +5 -0
  173. package/dist/api/types/AssetStatus.d.ts +6 -4
  174. package/dist/api/types/AudioStream.d.ts +28 -0
  175. package/dist/api/types/AudioStream.js +5 -0
  176. package/dist/api/types/BatchDefaults.d.ts +46 -0
  177. package/dist/api/types/BatchDefaults.js +5 -0
  178. package/dist/api/types/BatchItemError.d.ts +12 -0
  179. package/dist/api/types/BatchItemError.js +5 -0
  180. package/dist/api/types/BatchItemRequest.d.ts +36 -0
  181. package/dist/api/types/BatchItemRequest.js +5 -0
  182. package/dist/api/types/BatchItemStatus.d.ts +14 -0
  183. package/dist/api/types/BatchItemStatus.js +13 -0
  184. package/dist/api/types/BatchPrompt.d.ts +13 -0
  185. package/dist/api/types/BatchPrompt.js +5 -0
  186. package/dist/api/types/BatchResultItem.d.ts +17 -0
  187. package/dist/api/types/BatchResultItem.js +5 -0
  188. package/dist/api/types/BatchStatus.d.ts +15 -0
  189. package/dist/api/types/BatchStatus.js +14 -0
  190. package/dist/api/types/BatchVideoContext.d.ts +13 -0
  191. package/dist/api/types/BatchVideoContext.js +5 -0
  192. package/dist/api/types/BatchVideoContextType.d.ts +10 -0
  193. package/dist/api/types/BatchVideoContextType.js +9 -0
  194. package/dist/api/types/CreateAnalyzeBatchResponse.d.ts +20 -0
  195. package/dist/api/types/CreateAnalyzeBatchResponse.js +5 -0
  196. package/dist/api/types/CreatedBatchItem.d.ts +12 -0
  197. package/dist/api/types/CreatedBatchItem.js +5 -0
  198. package/dist/api/types/EmbeddingTaskResponse.d.ts +1 -1
  199. package/dist/api/types/EmbeddingTaskResponseError.d.ts +1 -1
  200. package/dist/api/types/EmbeddingTaskResponseStatus.d.ts +1 -1
  201. package/dist/api/types/MultipartUploadStatusType.d.ts +3 -3
  202. package/dist/api/types/TechnicalMetadata.d.ts +81 -0
  203. package/dist/api/types/TechnicalMetadata.js +5 -0
  204. package/dist/api/types/VideoStream.d.ts +44 -0
  205. package/dist/api/types/VideoStream.js +5 -0
  206. package/dist/api/types/index.d.ts +18 -0
  207. package/dist/api/types/index.js +18 -0
  208. package/dist/serialization/resources/analyzeAsync/resources/batches/client/index.d.ts +1 -0
  209. package/dist/serialization/resources/analyzeAsync/resources/batches/client/index.js +17 -0
  210. package/dist/serialization/resources/analyzeAsync/resources/batches/client/requests/CreateAnalyzeBatchRequest.d.ts +19 -0
  211. package/dist/serialization/resources/analyzeAsync/resources/batches/client/requests/CreateAnalyzeBatchRequest.js +50 -0
  212. package/dist/serialization/resources/analyzeAsync/resources/batches/client/requests/index.d.ts +1 -0
  213. package/dist/serialization/resources/analyzeAsync/resources/batches/client/requests/index.js +5 -0
  214. package/dist/serialization/resources/analyzeAsync/resources/batches/index.d.ts +2 -0
  215. package/dist/serialization/resources/analyzeAsync/resources/batches/index.js +18 -0
  216. package/dist/serialization/resources/analyzeAsync/resources/batches/types/BatchesListRequestAnalysisModeItem.d.ts +10 -0
  217. package/dist/serialization/resources/analyzeAsync/resources/batches/types/BatchesListRequestAnalysisModeItem.js +41 -0
  218. package/dist/serialization/resources/analyzeAsync/resources/batches/types/BatchesListResponse.d.ts +15 -0
  219. package/dist/serialization/resources/analyzeAsync/resources/batches/types/BatchesListResponse.js +46 -0
  220. package/dist/serialization/resources/analyzeAsync/resources/batches/types/CreateAnalyzeBatchRequestAnalysisMode.d.ts +10 -0
  221. package/dist/serialization/resources/analyzeAsync/resources/batches/types/CreateAnalyzeBatchRequestAnalysisMode.js +41 -0
  222. package/dist/serialization/resources/analyzeAsync/resources/batches/types/CreateAnalyzeBatchRequestModelName.d.ts +10 -0
  223. package/dist/serialization/resources/analyzeAsync/resources/batches/types/CreateAnalyzeBatchRequestModelName.js +41 -0
  224. package/dist/serialization/resources/analyzeAsync/resources/batches/types/index.d.ts +4 -0
  225. package/dist/serialization/resources/analyzeAsync/resources/batches/types/index.js +20 -0
  226. package/dist/serialization/resources/analyzeAsync/resources/index.d.ts +3 -0
  227. package/dist/serialization/resources/analyzeAsync/resources/index.js +4 -1
  228. package/dist/serialization/types/AnalyzeBatchStatusResponse.d.ts +19 -0
  229. package/dist/serialization/types/AnalyzeBatchStatusResponse.js +52 -0
  230. package/dist/serialization/types/AnalyzeBatchSummary.d.ts +23 -0
  231. package/dist/serialization/types/AnalyzeBatchSummary.js +54 -0
  232. package/dist/serialization/types/AnalyzeBatchSummaryAnalysisMode.d.ts +10 -0
  233. package/dist/serialization/types/AnalyzeBatchSummaryAnalysisMode.js +41 -0
  234. package/dist/serialization/types/Asset.d.ts +0 -2
  235. package/dist/serialization/types/Asset.js +0 -2
  236. package/dist/serialization/types/AssetDetail.d.ts +6 -0
  237. package/dist/serialization/types/AssetDetail.js +6 -0
  238. package/dist/serialization/types/AssetError.d.ts +12 -0
  239. package/dist/serialization/types/AssetError.js +43 -0
  240. package/dist/serialization/types/AudioStream.d.ts +21 -0
  241. package/dist/serialization/types/AudioStream.js +52 -0
  242. package/dist/serialization/types/BatchDefaults.d.ts +22 -0
  243. package/dist/serialization/types/BatchDefaults.js +53 -0
  244. package/dist/serialization/types/BatchItemError.d.ts +13 -0
  245. package/dist/serialization/types/BatchItemError.js +44 -0
  246. package/dist/serialization/types/BatchItemRequest.d.ts +25 -0
  247. package/dist/serialization/types/BatchItemRequest.js +56 -0
  248. package/dist/serialization/types/BatchItemStatus.d.ts +10 -0
  249. package/dist/serialization/types/BatchItemStatus.js +41 -0
  250. package/dist/serialization/types/BatchPrompt.d.ts +14 -0
  251. package/dist/serialization/types/BatchPrompt.js +45 -0
  252. package/dist/serialization/types/BatchResultItem.d.ts +19 -0
  253. package/dist/serialization/types/BatchResultItem.js +50 -0
  254. package/dist/serialization/types/BatchStatus.d.ts +10 -0
  255. package/dist/serialization/types/BatchStatus.js +41 -0
  256. package/dist/serialization/types/BatchVideoContext.d.ts +14 -0
  257. package/dist/serialization/types/BatchVideoContext.js +45 -0
  258. package/dist/serialization/types/BatchVideoContextType.d.ts +10 -0
  259. package/dist/serialization/types/BatchVideoContextType.js +41 -0
  260. package/dist/serialization/types/CreateAnalyzeBatchResponse.d.ts +19 -0
  261. package/dist/serialization/types/CreateAnalyzeBatchResponse.js +50 -0
  262. package/dist/serialization/types/CreatedBatchItem.d.ts +13 -0
  263. package/dist/serialization/types/CreatedBatchItem.js +44 -0
  264. package/dist/serialization/types/TechnicalMetadata.d.ts +48 -0
  265. package/dist/serialization/types/TechnicalMetadata.js +79 -0
  266. package/dist/serialization/types/VideoStream.d.ts +29 -0
  267. package/dist/serialization/types/VideoStream.js +60 -0
  268. package/dist/serialization/types/index.d.ts +18 -0
  269. package/dist/serialization/types/index.js +18 -0
  270. package/dist/version.d.ts +1 -1
  271. package/dist/version.js +1 -1
  272. package/package.json +1 -1
  273. package/reference.md +528 -78
  274. package/serialization/resources/analyzeAsync/resources/batches/client/index.d.ts +1 -0
  275. package/serialization/resources/analyzeAsync/resources/batches/client/index.js +17 -0
  276. package/serialization/resources/analyzeAsync/resources/batches/client/requests/CreateAnalyzeBatchRequest.d.ts +19 -0
  277. package/serialization/resources/analyzeAsync/resources/batches/client/requests/CreateAnalyzeBatchRequest.js +50 -0
  278. package/serialization/resources/analyzeAsync/resources/batches/client/requests/index.d.ts +1 -0
  279. package/serialization/resources/analyzeAsync/resources/batches/client/requests/index.js +5 -0
  280. package/serialization/resources/analyzeAsync/resources/batches/index.d.ts +2 -0
  281. package/serialization/resources/analyzeAsync/resources/batches/index.js +18 -0
  282. package/serialization/resources/analyzeAsync/resources/batches/types/BatchesListRequestAnalysisModeItem.d.ts +10 -0
  283. package/serialization/resources/analyzeAsync/resources/batches/types/BatchesListRequestAnalysisModeItem.js +41 -0
  284. package/serialization/resources/analyzeAsync/resources/batches/types/BatchesListResponse.d.ts +15 -0
  285. package/serialization/resources/analyzeAsync/resources/batches/types/BatchesListResponse.js +46 -0
  286. package/serialization/resources/analyzeAsync/resources/batches/types/CreateAnalyzeBatchRequestAnalysisMode.d.ts +10 -0
  287. package/serialization/resources/analyzeAsync/resources/batches/types/CreateAnalyzeBatchRequestAnalysisMode.js +41 -0
  288. package/serialization/resources/analyzeAsync/resources/batches/types/CreateAnalyzeBatchRequestModelName.d.ts +10 -0
  289. package/serialization/resources/analyzeAsync/resources/batches/types/CreateAnalyzeBatchRequestModelName.js +41 -0
  290. package/serialization/resources/analyzeAsync/resources/batches/types/index.d.ts +4 -0
  291. package/serialization/resources/analyzeAsync/resources/batches/types/index.js +20 -0
  292. package/serialization/resources/analyzeAsync/resources/index.d.ts +3 -0
  293. package/serialization/resources/analyzeAsync/resources/index.js +4 -1
  294. package/serialization/types/AnalyzeBatchStatusResponse.d.ts +19 -0
  295. package/serialization/types/AnalyzeBatchStatusResponse.js +52 -0
  296. package/serialization/types/AnalyzeBatchSummary.d.ts +23 -0
  297. package/serialization/types/AnalyzeBatchSummary.js +54 -0
  298. package/serialization/types/AnalyzeBatchSummaryAnalysisMode.d.ts +10 -0
  299. package/serialization/types/AnalyzeBatchSummaryAnalysisMode.js +41 -0
  300. package/serialization/types/Asset.d.ts +0 -2
  301. package/serialization/types/Asset.js +0 -2
  302. package/serialization/types/AssetDetail.d.ts +6 -0
  303. package/serialization/types/AssetDetail.js +6 -0
  304. package/serialization/types/AssetError.d.ts +12 -0
  305. package/serialization/types/AssetError.js +43 -0
  306. package/serialization/types/AudioStream.d.ts +21 -0
  307. package/serialization/types/AudioStream.js +52 -0
  308. package/serialization/types/BatchDefaults.d.ts +22 -0
  309. package/serialization/types/BatchDefaults.js +53 -0
  310. package/serialization/types/BatchItemError.d.ts +13 -0
  311. package/serialization/types/BatchItemError.js +44 -0
  312. package/serialization/types/BatchItemRequest.d.ts +25 -0
  313. package/serialization/types/BatchItemRequest.js +56 -0
  314. package/serialization/types/BatchItemStatus.d.ts +10 -0
  315. package/serialization/types/BatchItemStatus.js +41 -0
  316. package/serialization/types/BatchPrompt.d.ts +14 -0
  317. package/serialization/types/BatchPrompt.js +45 -0
  318. package/serialization/types/BatchResultItem.d.ts +19 -0
  319. package/serialization/types/BatchResultItem.js +50 -0
  320. package/serialization/types/BatchStatus.d.ts +10 -0
  321. package/serialization/types/BatchStatus.js +41 -0
  322. package/serialization/types/BatchVideoContext.d.ts +14 -0
  323. package/serialization/types/BatchVideoContext.js +45 -0
  324. package/serialization/types/BatchVideoContextType.d.ts +10 -0
  325. package/serialization/types/BatchVideoContextType.js +41 -0
  326. package/serialization/types/CreateAnalyzeBatchResponse.d.ts +19 -0
  327. package/serialization/types/CreateAnalyzeBatchResponse.js +50 -0
  328. package/serialization/types/CreatedBatchItem.d.ts +13 -0
  329. package/serialization/types/CreatedBatchItem.js +44 -0
  330. package/serialization/types/TechnicalMetadata.d.ts +48 -0
  331. package/serialization/types/TechnicalMetadata.js +79 -0
  332. package/serialization/types/VideoStream.d.ts +29 -0
  333. package/serialization/types/VideoStream.js +60 -0
  334. package/serialization/types/index.d.ts +18 -0
  335. package/serialization/types/index.js +18 -0
  336. package/version.d.ts +1 -1
  337. package/version.js +1 -1
@@ -71,6 +71,8 @@ export declare class Tasks {
71
71
  * - If you want to both search and analyze your videos, the most restrictive requirements apply.
72
72
  * - This method allows you to upload files up to 2 GB in size. To upload larger files, use the [Multipart Upload API](/v1.3/api-reference/upload-content/multipart-uploads)
73
73
  *
74
+ * Indexes have limits on video hours and video count. For details, see the [Video hours and video count limits](/v1.3/docs/concepts/indexes#video-hours-and-video-count-limits) section.
75
+ *
74
76
  * <Note title="Note">
75
77
  * This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page.
76
78
  * </Note>
@@ -136,7 +136,7 @@ class Tasks {
136
136
  const _response = yield core.fetcher({
137
137
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, "tasks"),
138
138
  method: "GET",
139
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.7", "User-Agent": "twelvelabs-js/1.2.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
139
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.9", "User-Agent": "twelvelabs-js/1.2.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
140
140
  contentType: "application/json",
141
141
  queryParameters: _queryParams,
142
142
  requestType: "json",
@@ -219,6 +219,8 @@ class Tasks {
219
219
  * - If you want to both search and analyze your videos, the most restrictive requirements apply.
220
220
  * - This method allows you to upload files up to 2 GB in size. To upload larger files, use the [Multipart Upload API](/v1.3/api-reference/upload-content/multipart-uploads)
221
221
  *
222
+ * Indexes have limits on video hours and video count. For details, see the [Video hours and video count limits](/v1.3/docs/concepts/indexes#video-hours-and-video-count-limits) section.
223
+ *
222
224
  * <Note title="Note">
223
225
  * This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page.
224
226
  * </Note>
@@ -257,7 +259,7 @@ class Tasks {
257
259
  const _response = yield core.fetcher({
258
260
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, "tasks"),
259
261
  method: "POST",
260
- headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.7", "User-Agent": "twelvelabs-js/1.2.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
262
+ headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.9", "User-Agent": "twelvelabs-js/1.2.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
261
263
  requestType: "file",
262
264
  duplex: _maybeEncodedRequest.duplex,
263
265
  body: _maybeEncodedRequest.body,
@@ -325,7 +327,7 @@ class Tasks {
325
327
  const _response = yield core.fetcher({
326
328
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `tasks/${encodeURIComponent(taskId)}`),
327
329
  method: "GET",
328
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.7", "User-Agent": "twelvelabs-js/1.2.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
330
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.9", "User-Agent": "twelvelabs-js/1.2.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
329
331
  contentType: "application/json",
330
332
  requestType: "json",
331
333
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,
@@ -395,7 +397,7 @@ class Tasks {
395
397
  const _response = yield core.fetcher({
396
398
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `tasks/${encodeURIComponent(taskId)}`),
397
399
  method: "DELETE",
398
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.7", "User-Agent": "twelvelabs-js/1.2.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
400
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.9", "User-Agent": "twelvelabs-js/1.2.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
399
401
  contentType: "application/json",
400
402
  requestType: "json",
401
403
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TwelvelabsApi from "../index";
5
+ /**
6
+ * A batch object that includes item counts for each item status.
7
+ */
8
+ export interface AnalyzeBatchStatusResponse extends TwelvelabsApi.AnalyzeBatchSummary {
9
+ /** The number of items in the `queued` status. */
10
+ queuedItems: number;
11
+ /** The number of items in the `processing` status. */
12
+ processingItems: number;
13
+ /** The number of items that completed successfully. */
14
+ readyItems: number;
15
+ /** The number of items that failed. */
16
+ failedItems: number;
17
+ /** The number of items that were canceled, either because the batch was canceled while the item was in the `queued` status, or because the batch expired before the item finished processing. */
18
+ canceledItems: number;
19
+ /** The delivery status of each webhook endpoint for the batch completion notification. Present only after the platform sends the webhook notifications. To register webhooks, see the [Webhooks](/v1.3/docs/advanced/webhooks) page. */
20
+ webhooks?: TwelvelabsApi.AnalyzeTaskWebhookInfo[];
21
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,28 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TwelvelabsApi from "../index";
5
+ /**
6
+ * A batch object that summarizes the batch.
7
+ */
8
+ export interface AnalyzeBatchSummary {
9
+ /** The unique identifier of the batch. Use this value to retrieve the batch status or results. */
10
+ batchId: string;
11
+ /** The analysis mode applied to every item in this batch. */
12
+ analysisMode: TwelvelabsApi.AnalyzeBatchSummaryAnalysisMode;
13
+ /** The model used for every item in this batch. */
14
+ modelName: string;
15
+ status: TwelvelabsApi.BatchStatus;
16
+ /** The number of items submitted in the batch. */
17
+ totalItems: number;
18
+ /** The date and time, in the RFC 3339 format, when the batch was created. */
19
+ createdAt: Date;
20
+ /** The date and time, in the RFC 3339 format, when the batch expires (the `created_at` field value plus 24 hours). Unfinished items at expiration are canceled. Items that finished before then remain retrievable for 30 days after creation, when the batch and its results are deleted. */
21
+ expiresAt: Date;
22
+ /** The date and time, in the RFC 3339 format, when the batch status became `completed`. Present only when the status is `completed`. */
23
+ completedAt?: Date;
24
+ /** The date and time, in the RFC 3339 format, when the batch status became `canceled`. Present only when the status is `canceled`. */
25
+ canceledAt?: Date;
26
+ /** The date and time, in the RFC 3339 format, when the batch status became `expired`. Present only when the status is `expired`. */
27
+ expiredAt?: Date;
28
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * The analysis mode applied to every item in this batch.
6
+ */
7
+ export type AnalyzeBatchSummaryAnalysisMode = "general" | "time_based_metadata";
8
+ export declare const AnalyzeBatchSummaryAnalysisMode: {
9
+ readonly General: "general";
10
+ readonly TimeBasedMetadata: "time_based_metadata";
11
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AnalyzeBatchSummaryAnalysisMode = void 0;
7
+ exports.AnalyzeBatchSummaryAnalysisMode = {
8
+ General: "general",
9
+ TimeBasedMetadata: "time_based_metadata",
10
+ };
@@ -18,22 +18,20 @@ export interface Asset {
18
18
  */
19
19
  method?: TwelvelabsApi.AssetMethod;
20
20
  /**
21
- * Indicates the current status of the asset.
21
+ * Indicates the current processing status of the asset.
22
+ *
23
+ * A newly uploaded asset starts in the `processing` status and transitions asynchronously to `ready` on success or to `failed` on error, typically within a few seconds to a few minutes. Poll the [Retrieve an asset](/v1.3/api-reference/upload-content/direct-uploads/retrieve) endpoint until the status is `ready` before you use the asset in downstream workflows.
22
24
  *
23
25
  * **Values**:
24
- * - `failed`: The platform failed to process the upload
25
- * - `processing`: The platform is processing the uploaded file
26
- * - `ready`: The asset is ready to use
26
+ * - `processing`: The asset is not yet usable. This can mean the upload is still in progress (for example, the platform is still fetching the file from a URL, or a multipart upload has not completed), or the upload has finished and the platform is validating the file. The `technical_metadata` field is omitted from the response.
27
+ * - `ready`: The platform validated the asset successfully, and the asset is ready to use.
28
+ * - `failed`: The platform could not process the file. The `error` field describes the reason, and the `technical_metadata` field may be partially populated.
27
29
  */
28
30
  status?: TwelvelabsApi.AssetStatus;
29
31
  /** The name of the file used to create the asset. */
30
32
  filename?: string;
31
33
  /** The MIME type of the asset file. */
32
34
  fileType?: string;
33
- /** The file size of the asset in bytes. This field is absent while the asset is still being processed. */
34
- size?: number;
35
- /** The duration of the asset in seconds. Only present for video and audio assets. This field is absent for image assets or while the asset is still being processed. */
36
- duration?: number;
37
35
  /** The date and time, in RFC 3339 format ("YYYY-MM-DDTHH:mm:ssZ"), when the asset was created. */
38
36
  createdAt?: Date;
39
37
  /** User-defined metadata for this asset. This field is absent when no metadata has been set. */
@@ -8,4 +8,11 @@ import * as TwelvelabsApi from "../index";
8
8
  export interface AssetDetail extends TwelvelabsApi.Asset {
9
9
  hls?: TwelvelabsApi.AssetHls;
10
10
  thumbnail?: TwelvelabsApi.AssetThumbnail;
11
+ technicalMetadata?: TwelvelabsApi.TechnicalMetadata;
12
+ /** The file size of the asset in bytes. The platform finalizes this value when the asset reaches the `ready` status. */
13
+ size?: number;
14
+ /** The duration of the asset in seconds. Only present for video and audio assets; absent for images. The platform finalizes this value when the asset reaches the `ready` status. */
15
+ duration?: number;
16
+ /** The reason the asset failed. The platform returns this field only when `status` is `failed`. */
17
+ error?: TwelvelabsApi.AssetError;
11
18
  }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * An object that describes why an asset failed processing.
6
+ */
7
+ export interface AssetError {
8
+ /** A human-readable message describing the failure, such as a corrupted or unsupported file, a file the platform could not access, or a video that failed a playability check. The exact text is not part of the contract. Do not parse it. */
9
+ message: string;
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,12 +2,14 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  /**
5
- * Indicates the current status of the asset.
5
+ * Indicates the current processing status of the asset.
6
+ *
7
+ * A newly uploaded asset starts in the `processing` status and transitions asynchronously to `ready` on success or to `failed` on error, typically within a few seconds to a few minutes. Poll the [Retrieve an asset](/v1.3/api-reference/upload-content/direct-uploads/retrieve) endpoint until the status is `ready` before you use the asset in downstream workflows.
6
8
  *
7
9
  * **Values**:
8
- * - `failed`: The platform failed to process the upload
9
- * - `processing`: The platform is processing the uploaded file
10
- * - `ready`: The asset is ready to use
10
+ * - `processing`: The asset is not yet usable. This can mean the upload is still in progress (for example, the platform is still fetching the file from a URL, or a multipart upload has not completed), or the upload has finished and the platform is validating the file. The `technical_metadata` field is omitted from the response.
11
+ * - `ready`: The platform validated the asset successfully, and the asset is ready to use.
12
+ * - `failed`: The platform could not process the file. The `error` field describes the reason, and the `technical_metadata` field may be partially populated.
11
13
  */
12
14
  export type AssetStatus = "failed" | "processing" | "ready";
13
15
  export declare const AssetStatus: {
@@ -0,0 +1,28 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * The technical properties of a single audio stream within the media file.
6
+ */
7
+ export interface AudioStream {
8
+ /** The zero-based index of the stream within the media file. */
9
+ index?: number;
10
+ /** The codec of the audio stream. */
11
+ codec?: string;
12
+ /** The descriptive long name of the audio codec. */
13
+ codecLong?: string;
14
+ /** The sample rate of the audio stream, in hertz. */
15
+ sampleRate?: number;
16
+ /** The bit depth of the audio stream. */
17
+ bitDepth?: number;
18
+ /** The number of channels in the audio stream. */
19
+ channels?: number;
20
+ /** The channel layout of the audio stream. */
21
+ channelLayout?: string;
22
+ /** The bit rate of the audio stream, in bits per second. */
23
+ bitrateBps?: number;
24
+ /** The language of the audio stream, when present. */
25
+ language?: string;
26
+ /** The duration of the audio stream, in seconds. */
27
+ durationSeconds?: number;
28
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,46 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TwelvelabsApi from "../index";
5
+ /**
6
+ * Default values applied to every item that does not override them. Every field is optional. Items in the `requests` array override these values. To override the `prompt` or `response_format` field, provide the full object on the item. You cannot change only some of its nested fields.
7
+ */
8
+ export interface BatchDefaults {
9
+ prompt?: TwelvelabsApi.BatchPrompt;
10
+ responseFormat?: TwelvelabsApi.AsyncResponseFormat;
11
+ temperature?: TwelvelabsApi.AnalyzeTemperature;
12
+ /** The maximum number of tokens to generate per item. The allowed range depends on the model and analysis mode (see the [`POST`](/v1.3/api-reference/analyze-videos/create-async-analysis-task) method of the `/analyze/tasks` endpoint for the per-mode table). */
13
+ maxTokens?: number;
14
+ /**
15
+ * Minimum duration for each extracted segment, in seconds. Applies only when the `analysis_mode` field is `time_based_metadata`.
16
+ *
17
+ * **Min:** 2
18
+ */
19
+ minSegmentDuration?: number;
20
+ /**
21
+ * Maximum duration for each extracted segment, in seconds. Must be greater than or equal to the `min_segment_duration` field. Applies only when the `analysis_mode` field is `time_based_metadata`.
22
+ *
23
+ * **Min:** 2
24
+ */
25
+ maxSegmentDuration?: number;
26
+ /**
27
+ * Start of the analysis window, in seconds, applied to every item. Use with `end_time` to analyze only the `[start_time, end_time)` portion of each video.
28
+ *
29
+ * <Note title="Notes">
30
+ * - If omitted, defaults to `0`.
31
+ * - Must be less than `end_time`.
32
+ * - Mutually exclusive with `response_format.segment_definitions[].time_ranges`.
33
+ * </Note>
34
+ */
35
+ startTime?: number;
36
+ /**
37
+ * End of the analysis window, in seconds, applied to every item. Use with `start_time` to analyze only the `[start_time, end_time)` portion of each video.
38
+ *
39
+ * <Note title="Notes">
40
+ * - If omitted, defaults to the video duration.
41
+ * - Must be greater than `start_time`.
42
+ * - Mutually exclusive with `response_format.segment_definitions[].time_ranges`.
43
+ * </Note>
44
+ */
45
+ endTime?: number;
46
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Failure details for a single batch item.
6
+ */
7
+ export interface BatchItemError {
8
+ /** A machine-readable error code identifying the failure category. Omitted until the per-item error catalog is wired through; until then, only `message` is guaranteed. */
9
+ code?: string;
10
+ /** A human-readable explanation of the failure. */
11
+ message: string;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,36 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TwelvelabsApi from "../index";
5
+ /**
6
+ * A single analysis request inside a batch. Identify the video in the `video` field. Every other field is optional and overrides the matching field in the `defaults` object.
7
+ */
8
+ export interface BatchItemRequest {
9
+ /** Identifies the asset to analyze. */
10
+ video: TwelvelabsApi.BatchVideoContext;
11
+ /**
12
+ * An optional identifier you set per item when you create the batch. Use this field to map batch results back to records in your system, for example, to correlate each result with the source video in your database.
13
+ *
14
+ * The platform stores this value unchanged. It appears in:
15
+ * - **Batch responses**: the array named `items` in the Create a batch response, and each line returned by the [`GET`](/v1.3/api-reference/analyze-videos/batch-analysis/retrieve-batch-results) method of the `/analyze/batches/{batch_id}/results` endpoint.
16
+ * - **Task responses**: each batch request creates an analysis task. The `custom_id` field appears in the [`GET`](/v1.3/api-reference/analyze-videos/retrieve-analysis-task-status-results) method of the `/analyze/tasks/{task_id}` endpoint, the [`GET`](/v1.3/api-reference/analyze-videos/list-async-analysis-tasks) method of the `/analyze/tasks` endpoint, and the `analyze.task.ready` and `analyze.task.failed` webhook payloads.
17
+ *
18
+ * **Format**: 1–64 characters. Alphanumeric, hyphens (`-`), and underscores (`_`) only. An empty string is rejected with a `400 Bad Request`.
19
+ *
20
+ * The value must be unique within a batch. Submitting two items with the same value in the `custom_id` field in the same batch returns a `400 Bad Request`. Items without a custom identifier still receive a unique task identifier generated by the platform in results.
21
+ */
22
+ customId?: string;
23
+ prompt?: TwelvelabsApi.BatchPrompt;
24
+ responseFormat?: TwelvelabsApi.AsyncResponseFormat;
25
+ temperature?: TwelvelabsApi.AnalyzeTemperature;
26
+ /** Override the `defaults.max_tokens` value for this item. */
27
+ maxTokens?: number;
28
+ /** Override the `defaults.min_segment_duration` value for this item. */
29
+ minSegmentDuration?: number;
30
+ /** Override the `defaults.max_segment_duration` value for this item. */
31
+ maxSegmentDuration?: number;
32
+ /** Override the `defaults.start_time` value for this item. */
33
+ startTime?: number;
34
+ /** Override the `defaults.end_time` value for this item. */
35
+ endTime?: number;
36
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * The status of a result entry. This field is different from the batch status. For the meaning of each value, see the [Item statuses](/v1.3/api-reference/analyze-videos/batch-analysis/the-batch-object#item-statuses) section on the **The batch object** page.
6
+ */
7
+ export type BatchItemStatus = "queued" | "processing" | "ready" | "failed" | "canceled";
8
+ export declare const BatchItemStatus: {
9
+ readonly Queued: "queued";
10
+ readonly Processing: "processing";
11
+ readonly Ready: "ready";
12
+ readonly Failed: "failed";
13
+ readonly Canceled: "canceled";
14
+ };
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.BatchItemStatus = void 0;
7
+ exports.BatchItemStatus = {
8
+ Queued: "queued",
9
+ Processing: "processing",
10
+ Ready: "ready",
11
+ Failed: "failed",
12
+ Canceled: "canceled",
13
+ };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TwelvelabsApi from "../index";
5
+ /**
6
+ * A structured prompt with `<@name>` placeholders for referencing images. Not supported when `analysis_mode` is `time_based_metadata`.
7
+ */
8
+ export interface BatchPrompt {
9
+ /** The text of the prompt. Use `<@name>` placeholders to reference images declared in `media_sources` (Example: `"Is there a <@tiger-1> in the video?"`). This text counts toward the [context window](/v1.3/docs/concepts/models/pegasus#context-window). */
10
+ inputText: string;
11
+ /** Reference images for the `<@name>` placeholders in the prompt. Maximum 4 sources. */
12
+ mediaSources?: TwelvelabsApi.SmeMediaSource[];
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TwelvelabsApi from "../index";
5
+ /**
6
+ * One result entry per item. Result entries in the `ready` status include the `data` field. Result entries in the `failed` status include the `error` field. Result entries in the `queued`, `processing`, or `canceled` status include neither field.
7
+ */
8
+ export interface BatchResultItem {
9
+ /** The unique task identifier generated by the platform for this item. */
10
+ taskId: string;
11
+ /** The custom identifier you provided when you created the batch. If you did not provide one, this field is `null`. */
12
+ customId?: string;
13
+ status: TwelvelabsApi.BatchItemStatus;
14
+ /** Contains the analysis result for an item in the `ready` status. The analysis text is in this object's nested `data` field. The envelope uses the same schema as the `result` field in the [`GET`](/v1.3/api-reference/analyze-videos/retrieve-analysis-task-status-results) method of the `/analyze/tasks/{task_id}` endpoint. */
15
+ data?: TwelvelabsApi.AnalyzeTaskResult;
16
+ error?: TwelvelabsApi.BatchItemError;
17
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * The status of a batch. For the meaning of each value, see the [Batch statuses](/v1.3/api-reference/analyze-videos/batch-analysis/the-batch-object#batch-statuses) section on the **The batch object** page.
6
+ */
7
+ export type BatchStatus = "pending" | "processing" | "canceling" | "canceled" | "completed" | "expired";
8
+ export declare const BatchStatus: {
9
+ readonly Pending: "pending";
10
+ readonly Processing: "processing";
11
+ readonly Canceling: "canceling";
12
+ readonly Canceled: "canceled";
13
+ readonly Completed: "completed";
14
+ readonly Expired: "expired";
15
+ };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.BatchStatus = void 0;
7
+ exports.BatchStatus = {
8
+ Pending: "pending",
9
+ Processing: "processing",
10
+ Canceling: "canceling",
11
+ Canceled: "canceled",
12
+ Completed: "completed",
13
+ Expired: "expired",
14
+ };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TwelvelabsApi from "../index";
5
+ /**
6
+ * Identifies the asset to analyze.
7
+ */
8
+ export interface BatchVideoContext {
9
+ /** Set this field to `asset_id` to indicate that you're providing the video as an asset. */
10
+ type: TwelvelabsApi.BatchVideoContextType;
11
+ /** The unique identifier of an asset from a [direct](/v1.3/api-reference/upload-content/direct-uploads) or [multipart](/v1.3/api-reference/upload-content/multipart-uploads) upload. The asset status must be `ready`. Use the [Retrieve an asset](/v1.3/api-reference/upload-content/direct-uploads/retrieve) method to check the status. */
12
+ assetId: string;
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Set this field to `asset_id` to indicate that you're providing the video as an asset.
6
+ */
7
+ export type BatchVideoContextType = "asset_id";
8
+ export declare const BatchVideoContextType: {
9
+ readonly AssetId: "asset_id";
10
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.BatchVideoContextType = void 0;
7
+ exports.BatchVideoContextType = {
8
+ AssetId: "asset_id",
9
+ };
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TwelvelabsApi from "../index";
5
+ /**
6
+ * Response when creating a new batch.
7
+ */
8
+ export interface CreateAnalyzeBatchResponse {
9
+ /** The unique identifier of the batch. */
10
+ batchId: string;
11
+ status: TwelvelabsApi.BatchStatus;
12
+ /** The number of items submitted in the batch. */
13
+ totalItems: number;
14
+ /** The date and time, in the RFC 3339 format, when the batch was created. */
15
+ createdAt: Date;
16
+ /** The date and time, in the RFC 3339 format, when the batch expires (the `created_at` field value plus 24 hours). Unfinished items at expiration are canceled. Items that finished before then remain retrievable for 30 days after creation, when the batch and its results are deleted. */
17
+ expiresAt: Date;
18
+ /** One entry per submitted item. Each entry pairs the unique task identifier generated by the platform with the custom identifier you provided when you created the batch. */
19
+ items: TwelvelabsApi.CreatedBatchItem[];
20
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * One submitted item in the Create a batch response.
6
+ */
7
+ export interface CreatedBatchItem {
8
+ /** The unique task identifier generated by the platform for this item. Use this value with the [`GET`](/v1.3/api-reference/analyze-videos/retrieve-analysis-task-status-results) method of the `/analyze/tasks/{task_id}` endpoint to retrieve the task's status and results. */
9
+ taskId: string;
10
+ /** The custom identifier you provided when you created the batch. If you did not provide one, this field is `null`. */
11
+ customId?: string;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -15,7 +15,7 @@ export interface EmbeddingTaskResponse {
15
15
  * **Values**:
16
16
  * - `processing`: The platform is creating the embeddings
17
17
  * - `ready`: Processing is complete. Embeddings are available in the `data` field
18
- * - `failed`: The task failed. The `data` field is `null`
18
+ * - `failed`: The task failed. The `data` field is `null`, and the [`error.message`](/v1.3/api-reference/create-embeddings-v2/retrieve-embeddings#response.body.error.message) field contains the reason
19
19
  */
20
20
  status: TwelvelabsApi.EmbeddingTaskResponseStatus;
21
21
  createdAt?: TwelvelabsApi.CreatedAt;
@@ -8,8 +8,8 @@ export interface EmbeddingTaskResponseError {
8
8
  /**
9
9
  * A human-readable message that describes why the task failed. Possible values:
10
10
  * - "The embedding service is temporarily unstable. Please try again later."
11
- * - "We could not process your media for embedding. Please verify the input file and try again."
12
11
  * - "The embedding task failed. Please try again later."
12
+ * - "We could not process your media for embedding. Please verify the input file and try again." For the steps to fix the file, see the [How do I fix a file that could not be processed for embedding?](/v1.3/docs/resources/frequently-asked-questions#how-do-i-fix-a-file-that-could-not-be-processed-for-embedding) section on the **Frequently asked questions** page.
13
13
  */
14
14
  message: string;
15
15
  }
@@ -8,7 +8,7 @@
8
8
  * **Values**:
9
9
  * - `processing`: The platform is creating the embeddings
10
10
  * - `ready`: Processing is complete. Embeddings are available in the `data` field
11
- * - `failed`: The task failed. The `data` field is `null`
11
+ * - `failed`: The task failed. The `data` field is `null`, and the [`error.message`](/v1.3/api-reference/create-embeddings-v2/retrieve-embeddings#response.body.error.message) field contains the reason
12
12
  */
13
13
  export type EmbeddingTaskResponseStatus = "processing" | "ready" | "failed";
14
14
  export declare const EmbeddingTaskResponseStatus: {