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
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,42 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TwelvelabsApi from "../../../../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * page: 1,
9
+ * pageLimit: 10
10
+ * }
11
+ */
12
+ export interface BatchesListRequest {
13
+ /**
14
+ * A number that identifies the page to retrieve.
15
+ *
16
+ * **Default**: `1`.
17
+ */
18
+ page?: number;
19
+ /**
20
+ * The number of items to return on each page.
21
+ *
22
+ * **Default**: `10`.
23
+ * **Max**: `50`.
24
+ */
25
+ pageLimit?: number;
26
+ /**
27
+ * Filter batches by status. Provide one or more values to include batches matching any of them. To send multiple values, repeat the `status` parameter:
28
+ * ```
29
+ * status=processing&status=canceling
30
+ * ```
31
+ * If you omit this parameter, the response includes batches in all statuses.
32
+ */
33
+ status?: TwelvelabsApi.BatchStatus | TwelvelabsApi.BatchStatus[];
34
+ /**
35
+ * Filter batches by analysis mode. Provide one or more values to include batches matching any of them. To send multiple values, repeat the `analysis_mode` parameter:
36
+ * ```
37
+ * analysis_mode=general&analysis_mode=time_based_metadata
38
+ * ```
39
+ * If you omit this parameter, the response includes batches in all analysis modes.
40
+ */
41
+ analysisMode?: TwelvelabsApi.analyzeAsync.BatchesListRequestAnalysisModeItem | TwelvelabsApi.analyzeAsync.BatchesListRequestAnalysisModeItem[];
42
+ }
@@ -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,101 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TwelvelabsApi from "../../../../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * modelName: "pegasus1.5",
9
+ * analysisMode: "general",
10
+ * defaults: {
11
+ * prompt: {
12
+ * inputText: "Generate a 3-sentence executive summary of this video."
13
+ * },
14
+ * temperature: 0.2,
15
+ * maxTokens: 4096
16
+ * },
17
+ * requests: [{
18
+ * video: {
19
+ * type: "asset_id",
20
+ * assetId: "6298d673f1090f1100476d4c"
21
+ * },
22
+ * customId: "summary-001"
23
+ * }, {
24
+ * video: {
25
+ * type: "asset_id",
26
+ * assetId: "6298d673f1090f1100476d4d"
27
+ * },
28
+ * customId: "summary-002"
29
+ * }, {
30
+ * video: {
31
+ * type: "asset_id",
32
+ * assetId: "6298d673f1090f1100476d4e"
33
+ * },
34
+ * customId: "action-003",
35
+ * prompt: {
36
+ * inputText: "List all action items discussed."
37
+ * }
38
+ * }]
39
+ * }
40
+ *
41
+ * @example
42
+ * {
43
+ * modelName: "pegasus1.5",
44
+ * analysisMode: "time_based_metadata",
45
+ * defaults: {
46
+ * responseFormat: {
47
+ * type: "segment_definitions",
48
+ * segmentDefinitions: [{
49
+ * id: "product_moments",
50
+ * description: "Moments where a person holds <@product> while speaking to the camera.",
51
+ * fields: [{
52
+ * name: "segment_title",
53
+ * type: "string",
54
+ * description: "A short headline for this moment"
55
+ * }, {
56
+ * name: "product_visibility",
57
+ * type: "string",
58
+ * description: "How prominently the product appears in this segment",
59
+ * enum: ["FULL", "PARTIAL", "BACKGROUND"]
60
+ * }],
61
+ * mediaSources: [{
62
+ * name: "product",
63
+ * mediaType: "image",
64
+ * url: "https://example.com/product.jpg"
65
+ * }]
66
+ * }]
67
+ * },
68
+ * temperature: 0,
69
+ * maxTokens: 4096,
70
+ * minSegmentDuration: 2
71
+ * },
72
+ * requests: [{
73
+ * video: {
74
+ * type: "asset_id",
75
+ * assetId: "6298d673f1090f1100476d4c"
76
+ * },
77
+ * customId: "ep-001"
78
+ * }, {
79
+ * video: {
80
+ * type: "asset_id",
81
+ * assetId: "6298d673f1090f1100476d4d"
82
+ * },
83
+ * customId: "ep-002"
84
+ * }]
85
+ * }
86
+ */
87
+ export interface CreateAnalyzeBatchRequest {
88
+ /** The video understanding model to use for every item in this batch. Batch analysis requires Pegasus 1.5. */
89
+ modelName: TwelvelabsApi.analyzeAsync.CreateAnalyzeBatchRequestModelName;
90
+ /**
91
+ * The analysis approach for every item in this batch.
92
+ * - `general`: Generate text from each video based on the prompt (the item's `prompt` field if set, otherwise `defaults.prompt`). Supports structured JSON output by using `json_schema` in the `response_format.type` field.
93
+ * - `time_based_metadata`: Extract timestamped metadata by using `segment_definitions` in the `response_format.type` field.
94
+ *
95
+ * Batches with mixed modes are not supported.
96
+ */
97
+ analysisMode: TwelvelabsApi.analyzeAsync.CreateAnalyzeBatchRequestAnalysisMode;
98
+ defaults?: TwelvelabsApi.BatchDefaults;
99
+ /** The analysis requests in the batch. Provide 1 to 1,000 requests, with a combined video duration of up to 2,000 hours. */
100
+ requests: TwelvelabsApi.BatchItemRequest[];
101
+ }
@@ -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,2 @@
1
+ export { type BatchesListRequest } from "./BatchesListRequest";
2
+ export { type CreateAnalyzeBatchRequest } from "./CreateAnalyzeBatchRequest";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./types";
2
+ export * from "./client";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
18
+ __exportStar(require("./client"), exports);
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type BatchesListRequestAnalysisModeItem = "general" | "time_based_metadata";
5
+ export declare const BatchesListRequestAnalysisModeItem: {
6
+ readonly General: "general";
7
+ readonly TimeBasedMetadata: "time_based_metadata";
8
+ };
@@ -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.BatchesListRequestAnalysisModeItem = void 0;
7
+ exports.BatchesListRequestAnalysisModeItem = {
8
+ General: "general",
9
+ TimeBasedMetadata: "time_based_metadata",
10
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TwelvelabsApi from "../../../../../index";
5
+ export interface BatchesListResponse {
6
+ /** An array of batch objects. Each object includes item counts for each item status. */
7
+ data: TwelvelabsApi.AnalyzeBatchStatusResponse[];
8
+ pageInfo: TwelvelabsApi.PageInfo;
9
+ }
@@ -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 analysis approach for every item in this batch.
6
+ * - `general`: Generate text from each video based on the prompt (the item's `prompt` field if set, otherwise `defaults.prompt`). Supports structured JSON output by using `json_schema` in the `response_format.type` field.
7
+ * - `time_based_metadata`: Extract timestamped metadata by using `segment_definitions` in the `response_format.type` field.
8
+ *
9
+ * Batches with mixed modes are not supported.
10
+ */
11
+ export type CreateAnalyzeBatchRequestAnalysisMode = "general" | "time_based_metadata";
12
+ export declare const CreateAnalyzeBatchRequestAnalysisMode: {
13
+ readonly General: "general";
14
+ readonly TimeBasedMetadata: "time_based_metadata";
15
+ };
@@ -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.CreateAnalyzeBatchRequestAnalysisMode = void 0;
7
+ exports.CreateAnalyzeBatchRequestAnalysisMode = {
8
+ General: "general",
9
+ TimeBasedMetadata: "time_based_metadata",
10
+ };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * The video understanding model to use for every item in this batch. Batch analysis requires Pegasus 1.5.
6
+ */
7
+ export type CreateAnalyzeBatchRequestModelName = "pegasus1.5";
8
+ export declare const CreateAnalyzeBatchRequestModelName: {
9
+ readonly Pegasus15: "pegasus1.5";
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.CreateAnalyzeBatchRequestModelName = void 0;
7
+ exports.CreateAnalyzeBatchRequestModelName = {
8
+ Pegasus15: "pegasus1.5",
9
+ };
@@ -0,0 +1,4 @@
1
+ export * from "./BatchesListRequestAnalysisModeItem";
2
+ export * from "./BatchesListResponse";
3
+ export * from "./CreateAnalyzeBatchRequestModelName";
4
+ export * from "./CreateAnalyzeBatchRequestAnalysisMode";
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./BatchesListRequestAnalysisModeItem"), exports);
18
+ __exportStar(require("./BatchesListResponse"), exports);
19
+ __exportStar(require("./CreateAnalyzeBatchRequestModelName"), exports);
20
+ __exportStar(require("./CreateAnalyzeBatchRequestAnalysisMode"), exports);
@@ -1,3 +1,6 @@
1
1
  export * as tasks from "./tasks";
2
2
  export * from "./tasks/types";
3
+ export * as batches from "./batches";
4
+ export * from "./batches/types";
3
5
  export * from "./tasks/client/requests";
6
+ export * from "./batches/client/requests";
@@ -36,7 +36,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.tasks = void 0;
39
+ exports.batches = exports.tasks = void 0;
40
40
  exports.tasks = __importStar(require("./tasks"));
41
41
  __exportStar(require("./tasks/types"), exports);
42
+ exports.batches = __importStar(require("./batches"));
43
+ __exportStar(require("./batches/types"), exports);
42
44
  __exportStar(require("./tasks/client/requests"), exports);
45
+ __exportStar(require("./batches/client/requests"), exports);
@@ -72,6 +72,8 @@ export declare class Tasks {
72
72
  * 2. Poll the status of the task using the [`GET`](/v1.3/api-reference/analyze-videos/retrieve-analysis-task-status-results) method of the `/analyze/tasks/{task_id}` endpoint. Wait until the status is `ready`.
73
73
  * 3. Retrieve the results from the response when the status is `ready` using the [`GET`](/v1.3/api-reference/analyze-videos/retrieve-analysis-task-status-results) method of the `/analyze/tasks/{task_id}` endpoint.
74
74
  *
75
+ * On the Free plan, you have a total of 600 minutes (10 hours) shared across indexing, analysis, and segmentation. For details, see the [Video hours and video count limits](/v1.3/docs/concepts/indexes#video-hours-and-video-count-limits) section.
76
+ *
75
77
  * <Note title="Note">
76
78
  * This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page.
77
79
  * </Note>
@@ -112,7 +112,7 @@ class Tasks {
112
112
  const _response = yield core.fetcher({
113
113
  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, "analyze/tasks"),
114
114
  method: "GET",
115
- 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),
115
+ 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),
116
116
  contentType: "application/json",
117
117
  queryParameters: _queryParams,
118
118
  requestType: "json",
@@ -186,6 +186,8 @@ class Tasks {
186
186
  * 2. Poll the status of the task using the [`GET`](/v1.3/api-reference/analyze-videos/retrieve-analysis-task-status-results) method of the `/analyze/tasks/{task_id}` endpoint. Wait until the status is `ready`.
187
187
  * 3. Retrieve the results from the response when the status is `ready` using the [`GET`](/v1.3/api-reference/analyze-videos/retrieve-analysis-task-status-results) method of the `/analyze/tasks/{task_id}` endpoint.
188
188
  *
189
+ * On the Free plan, you have a total of 600 minutes (10 hours) shared across indexing, analysis, and segmentation. For details, see the [Video hours and video count limits](/v1.3/docs/concepts/indexes#video-hours-and-video-count-limits) section.
190
+ *
189
191
  * <Note title="Note">
190
192
  * This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page.
191
193
  * </Note>
@@ -373,7 +375,7 @@ class Tasks {
373
375
  const _response = yield core.fetcher({
374
376
  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, "analyze/tasks"),
375
377
  method: "POST",
376
- 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),
378
+ 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),
377
379
  contentType: "application/json",
378
380
  requestType: "json",
379
381
  body: serializers.analyzeAsync.CreateAsyncAnalyzeRequest.jsonOrThrow(request, {
@@ -454,7 +456,7 @@ class Tasks {
454
456
  const _response = yield core.fetcher({
455
457
  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, `analyze/tasks/${encodeURIComponent(taskId)}`),
456
458
  method: "GET",
457
- 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),
459
+ 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),
458
460
  contentType: "application/json",
459
461
  requestType: "json",
460
462
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,
@@ -522,7 +524,7 @@ class Tasks {
522
524
  const _response = yield core.fetcher({
523
525
  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, `analyze/tasks/${encodeURIComponent(taskId)}`),
524
526
  method: "DELETE",
525
- 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),
527
+ 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),
526
528
  contentType: "application/json",
527
529
  requestType: "json",
528
530
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,
@@ -225,7 +225,7 @@ export interface CreateAsyncAnalyzeRequest {
225
225
  *
226
226
  * | Model | Mode | Min | Max | Default |
227
227
  * |-------|------|-----|-----|---------|
228
- * | Pegasus 1.2 | — | 1 | 4,096 | 4096 |
228
+ * | Pegasus 1.2 | — | 2 | 4,096 | 4096 |
229
229
  * | Pegasus 1.5 | `general` | 512 | 98,304 | 4,096 |
230
230
  * | Pegasus 1.5 | `time_based_metadata` | 2,048 | 98,304 | 32,768 |
231
231
  */
@@ -46,6 +46,8 @@ export declare class Assets {
46
46
  /**
47
47
  * This method creates an asset by uploading a file to the platform. Assets are media files that you can use in downstream workflows, including indexing, analyzing video content, and creating entities.
48
48
  *
49
+ * The platform processes uploads asynchronously. This method returns immediately with the asset in the `processing` status, which then transitions to `ready` on success or to `failed` when the file is invalid or corrupt, 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 of the asset is `ready` before you use it. This applies to every upload, including small files.
50
+ *
49
51
  * **Supported content**: Video, audio, and images.
50
52
  *
51
53
  * **Upload methods**:
@@ -55,7 +57,9 @@ export declare class Assets {
55
57
  * **Upload limits**:
56
58
  * - **Video and audio, local files**: Up to 200 MB
57
59
  * - **Video and audio, public URLs**: Up to 4 GB
58
- * - **Images**: Up to 5 MB
60
+ * - **Images**: Up to 32 MB
61
+ *
62
+ * Asset creation does not enforce a maximum duration. Each model applies its own file size and duration limits when you index or analyze the asset. For details, see the requirements below.
59
63
  *
60
64
  * **Additional requirements** depend on your workflow:
61
65
  * - **Search**: [Marengo requirements](/v1.3/docs/concepts/models/marengo#video-file-requirements)
@@ -143,7 +147,7 @@ export declare class Assets {
143
147
  replaceUserMetadata(assetId: string, request: TwelvelabsApi.AssetsReplaceUserMetadataRequest, requestOptions?: Assets.RequestOptions): core.HttpResponsePromise<void>;
144
148
  private __replaceUserMetadata;
145
149
  /**
146
- * This method deletes the user-defined metadata of the specified asset. To achieve the same result, you can also send an empty object (`{}`) in the `user_metadata` field of the [`PUT`](/v1.3/api-reference/upload-content/direct-uploads/replace-asset-user-metadata) method.
150
+ * This method deletes the user-defined metadata of the specified asset. To achieve the same result, you can also send an empty object (`{}`) in the `user_metadata` field of the [`PUT`](/v1.3/api-reference/upload-content/direct-uploads/replace-user-metadata) method.
147
151
  *
148
152
  * This action cannot be undone.
149
153
  *
@@ -165,7 +169,7 @@ export declare class Assets {
165
169
  * - A key set to an empty string (`""`) is ignored.
166
170
  * - A key you omit from the request keeps its current value.
167
171
  *
168
- * To replace all metadata in a single call, use the [`PUT`](/v1.3/api-reference/upload-content/direct-uploads/replace-asset-user-metadata) method of the `/assets/{asset_id}/user-metadata` endpoint instead.
172
+ * To replace all metadata in a single call, use the [`PUT`](/v1.3/api-reference/upload-content/direct-uploads/replace-user-metadata) method of the `/assets/{asset_id}/user-metadata` endpoint instead.
169
173
  *
170
174
  * @param {string} assetId - The unique identifier of the asset whose user-defined metadata to update.
171
175
  * @param {TwelvelabsApi.AssetsUpdateUserMetadataRequest} request
@@ -112,7 +112,7 @@ class Assets {
112
112
  const _response = yield core.fetcher({
113
113
  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, "assets"),
114
114
  method: "GET",
115
- 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),
115
+ 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),
116
116
  contentType: "application/json",
117
117
  queryParameters: _queryParams,
118
118
  requestType: "json",
@@ -176,6 +176,8 @@ class Assets {
176
176
  /**
177
177
  * This method creates an asset by uploading a file to the platform. Assets are media files that you can use in downstream workflows, including indexing, analyzing video content, and creating entities.
178
178
  *
179
+ * The platform processes uploads asynchronously. This method returns immediately with the asset in the `processing` status, which then transitions to `ready` on success or to `failed` when the file is invalid or corrupt, 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 of the asset is `ready` before you use it. This applies to every upload, including small files.
180
+ *
179
181
  * **Supported content**: Video, audio, and images.
180
182
  *
181
183
  * **Upload methods**:
@@ -185,7 +187,9 @@ class Assets {
185
187
  * **Upload limits**:
186
188
  * - **Video and audio, local files**: Up to 200 MB
187
189
  * - **Video and audio, public URLs**: Up to 4 GB
188
- * - **Images**: Up to 5 MB
190
+ * - **Images**: Up to 32 MB
191
+ *
192
+ * Asset creation does not enforce a maximum duration. Each model applies its own file size and duration limits when you index or analyze the asset. For details, see the requirements below.
189
193
  *
190
194
  * **Additional requirements** depend on your workflow:
191
195
  * - **Search**: [Marengo requirements](/v1.3/docs/concepts/models/marengo#video-file-requirements)
@@ -237,7 +241,7 @@ class Assets {
237
241
  const _response = yield core.fetcher({
238
242
  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, "assets"),
239
243
  method: "POST",
240
- 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),
244
+ 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),
241
245
  requestType: "file",
242
246
  duplex: _maybeEncodedRequest.duplex,
243
247
  body: _maybeEncodedRequest.body,
@@ -305,7 +309,7 @@ class Assets {
305
309
  const _response = yield core.fetcher({
306
310
  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, `assets/${encodeURIComponent(assetId)}`),
307
311
  method: "GET",
308
- 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),
312
+ 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),
309
313
  contentType: "application/json",
310
314
  requestType: "json",
311
315
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,
@@ -387,7 +391,7 @@ class Assets {
387
391
  const _response = yield core.fetcher({
388
392
  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, `assets/${encodeURIComponent(assetId)}`),
389
393
  method: "DELETE",
390
- 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),
394
+ 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),
391
395
  contentType: "application/json",
392
396
  queryParameters: _queryParams,
393
397
  requestType: "json",
@@ -463,7 +467,7 @@ class Assets {
463
467
  const _response = yield core.fetcher({
464
468
  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, `assets/${encodeURIComponent(assetId)}/user-metadata`),
465
469
  method: "PUT",
466
- 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),
470
+ 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),
467
471
  contentType: "application/json",
468
472
  requestType: "json",
469
473
  body: serializers.AssetsReplaceUserMetadataRequest.jsonOrThrow(request, {
@@ -508,7 +512,7 @@ class Assets {
508
512
  });
509
513
  }
510
514
  /**
511
- * This method deletes the user-defined metadata of the specified asset. To achieve the same result, you can also send an empty object (`{}`) in the `user_metadata` field of the [`PUT`](/v1.3/api-reference/upload-content/direct-uploads/replace-asset-user-metadata) method.
515
+ * This method deletes the user-defined metadata of the specified asset. To achieve the same result, you can also send an empty object (`{}`) in the `user_metadata` field of the [`PUT`](/v1.3/api-reference/upload-content/direct-uploads/replace-user-metadata) method.
512
516
  *
513
517
  * This action cannot be undone.
514
518
  *
@@ -530,7 +534,7 @@ class Assets {
530
534
  const _response = yield core.fetcher({
531
535
  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, `assets/${encodeURIComponent(assetId)}/user-metadata`),
532
536
  method: "DELETE",
533
- 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),
537
+ 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),
534
538
  contentType: "application/json",
535
539
  requestType: "json",
536
540
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,
@@ -578,7 +582,7 @@ class Assets {
578
582
  * - A key set to an empty string (`""`) is ignored.
579
583
  * - A key you omit from the request keeps its current value.
580
584
  *
581
- * To replace all metadata in a single call, use the [`PUT`](/v1.3/api-reference/upload-content/direct-uploads/replace-asset-user-metadata) method of the `/assets/{asset_id}/user-metadata` endpoint instead.
585
+ * To replace all metadata in a single call, use the [`PUT`](/v1.3/api-reference/upload-content/direct-uploads/replace-user-metadata) method of the `/assets/{asset_id}/user-metadata` endpoint instead.
582
586
  *
583
587
  * @param {string} assetId - The unique identifier of the asset whose user-defined metadata to update.
584
588
  * @param {TwelvelabsApi.AssetsUpdateUserMetadataRequest} request
@@ -606,7 +610,7 @@ class Assets {
606
610
  const _response = yield core.fetcher({
607
611
  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, `assets/${encodeURIComponent(assetId)}/user-metadata`),
608
612
  method: "PATCH",
609
- 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),
613
+ 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),
610
614
  contentType: "application/json",
611
615
  requestType: "json",
612
616
  body: serializers.AssetsUpdateUserMetadataRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -16,7 +16,7 @@ export interface AssetsCreateRequest {
16
16
  /**
17
17
  * Specify this parameter to upload a file from a publicly accessible URL. This parameter is required when `method` is set to `url`.
18
18
  *
19
- * Public video and audio URLs support up to 4 GB. Image URLs support up to 5 MB.
19
+ * Public video and audio URLs support up to 4 GB. Image URLs support up to 32 MB.
20
20
  */
21
21
  url?: string;
22
22
  /** The optional filename of the asset. If not provided, the platform will determine the filename from the file or URL. */
@@ -141,7 +141,7 @@ class Embed {
141
141
  const _response = yield core.fetcher({
142
142
  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, "embed"),
143
143
  method: "POST",
144
- 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),
144
+ 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),
145
145
  requestType: "file",
146
146
  duplex: _maybeEncodedRequest.duplex,
147
147
  body: _maybeEncodedRequest.body,