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
@@ -4,9 +4,9 @@
4
4
  /**
5
5
  * The status of your upload session. This field can take one of the following values:
6
6
  * - `active`: The upload session is currently in progress. Continue uploading and reporting the completion of each chunk.
7
- * - `completed`: The upload session is finished, and your asset is now ready for use.
8
- * - `failed`: The upload session has failed. You must restart with a new session.
9
- * - `expired`: The upload session has expired after 24 hours, and you must create a new session.
7
+ * - `completed`: The platform received the file. The asset is created in the `processing` status and is not yet ready to use. 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.
8
+ * - `failed`: The upload session failed. You must restart with a new session.
9
+ * - `expired`: The upload session expired after 24 hours. You must create a new session.
10
10
  */
11
11
  export type MultipartUploadStatusType = "active" | "completed" | "failed" | "expired";
12
12
  export declare const MultipartUploadStatusType: {
@@ -0,0 +1,81 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TwelvelabsApi from "../index";
5
+ /**
6
+ * Technical metadata read from the media file of the asset, covering the container, the individual video and audio streams, image properties, and derived attributes.
7
+ *
8
+ * The platform populates this object asynchronously after the upload completes. It is omitted from the response while the status of the asset is `processing`, and it may be partially populated when the status is `failed`. A field is absent when it does not apply to the media type of the asset, or when the source file did not carry the corresponding information.
9
+ */
10
+ export interface TechnicalMetadata {
11
+ /** The size of the source media file in bytes. */
12
+ fileSizeBytes?: number;
13
+ /** The MIME type detected for the source media file. */
14
+ fileMimeType?: string;
15
+ /** The container format of the source media file. When a container maps to several format names, the platform reports them as a comma-separated list. */
16
+ fileContainerFormat?: string;
17
+ /** The creation time recorded in the media container, in RFC 3339 format ("YYYY-MM-DDTHH:mm:ssZ"), when present. */
18
+ containerCreationTime?: Date;
19
+ /** The video streams contained in the media file. */
20
+ videoStreams?: TwelvelabsApi.VideoStream[];
21
+ /** The codec of the primary video stream. */
22
+ videoCodec?: string;
23
+ /** The pixel width of the primary video stream. */
24
+ videoWidth?: number;
25
+ /** The pixel height of the primary video stream. */
26
+ videoHeight?: number;
27
+ /** The frame rate of the primary video stream, in frames per second. */
28
+ videoFps?: number;
29
+ /** The duration of the primary video stream, in seconds. */
30
+ videoDurationSeconds?: number;
31
+ /** The bit rate of the primary video stream, in bits per second. */
32
+ videoBitrateBps?: number;
33
+ /** The audio streams contained in the media file. */
34
+ audioStreams?: TwelvelabsApi.AudioStream[];
35
+ /** The codec of the primary audio stream. */
36
+ audioCodec?: string;
37
+ /** The sample rate of the primary audio stream, in hertz. */
38
+ audioSampleRate?: number;
39
+ /** The number of channels in the primary audio stream. */
40
+ audioChannels?: number;
41
+ /** The duration of the primary audio stream, in seconds. */
42
+ audioDurationSeconds?: number;
43
+ /** The starting SMPTE timecode of the media, when present. */
44
+ startTimecode?: string;
45
+ /** The source from which the starting timecode was derived. */
46
+ timecodeSource?: string;
47
+ /** Whether the timecode uses drop-frame numbering. */
48
+ dropFrame?: boolean;
49
+ /** The pixel width of the image. */
50
+ imageWidth?: number;
51
+ /** The pixel height of the image. */
52
+ imageHeight?: number;
53
+ /** The format of the image. */
54
+ imageFormat?: string;
55
+ /** The EXIF orientation value of the image. */
56
+ imageOrientation?: number;
57
+ /** The color space of the image. */
58
+ imageColorSpace?: string;
59
+ /** The bit depth per channel of the image. */
60
+ imageBitDepth?: number;
61
+ /** Whether the media is high dynamic range (HDR). */
62
+ isHdr?: boolean;
63
+ /** Whether the media contains at least one audio stream. */
64
+ hasAudio?: boolean;
65
+ /** Whether the image contains an alpha (transparency) channel. */
66
+ hasAlpha?: boolean;
67
+ /** Whether the image is animated (for example, an animated GIF or WebP). */
68
+ isAnimated?: boolean;
69
+ /** The total number of video streams in the media file. */
70
+ totalVideoStreams?: number;
71
+ /** The total number of audio streams in the media file. */
72
+ totalAudioStreams?: number;
73
+ /** The storage aspect ratio of the video (pixel width divided by pixel height). */
74
+ storageAspectRatio?: number;
75
+ /** The GPS latitude embedded in the source media, in decimal degrees. Present only when the source media carries location metadata. */
76
+ geospatialLatitude?: number;
77
+ /** The GPS longitude embedded in the source media, in decimal degrees. Present only when the source media carries location metadata. */
78
+ geospatialLongitude?: number;
79
+ /** The GPS altitude embedded in the source media, in meters. Present only when the source media carries location metadata. */
80
+ geospatialAltitudeMeters?: number;
81
+ }
@@ -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,44 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * The technical properties of a single video stream within the media file.
6
+ */
7
+ export interface VideoStream {
8
+ /** The zero-based index of the stream within the media file. */
9
+ index?: number;
10
+ /** The codec of the video stream. */
11
+ codec?: string;
12
+ /** The pixel width of the video stream. */
13
+ width?: number;
14
+ /** The pixel height of the video stream. */
15
+ height?: number;
16
+ /** The nominal frame rate of the video stream, in frames per second. */
17
+ fps?: number;
18
+ /** The average frame rate of the video stream, in frames per second. */
19
+ avgFps?: number;
20
+ /** The duration of the video stream, in seconds. */
21
+ durationSeconds?: number;
22
+ /** The bit rate of the video stream, in bits per second. */
23
+ bitrateBps?: number;
24
+ /** The rotation applied to the video stream, in degrees. */
25
+ rotation?: number;
26
+ /** The pixel (sample) aspect ratio of the video stream. */
27
+ pixelAspectRatio?: string;
28
+ /** The display aspect ratio of the video stream. */
29
+ displayAspectRatio?: string;
30
+ /** The scan type of the video stream (for example, progressive or interlaced). */
31
+ scanType?: string;
32
+ /** The pixel format of the video stream. */
33
+ pixelFormat?: string;
34
+ /** The bit depth per color component of the video stream. */
35
+ bitDepth?: number;
36
+ /** The color range of the video stream. */
37
+ colorRange?: string;
38
+ /** The color transfer characteristics of the video stream. */
39
+ colorTransfer?: string;
40
+ /** The color space of the video stream. */
41
+ colorSpace?: string;
42
+ /** The color primaries of the video stream. */
43
+ colorPrimaries?: string;
44
+ }
@@ -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 });
@@ -161,14 +161,32 @@ export * from "./AnalyzeTaskResultUsage";
161
161
  export * from "./AnalyzeTaskResult";
162
162
  export * from "./AnalyzeTaskError";
163
163
  export * from "./AnalyzeTaskWebhookInfo";
164
+ export * from "./BatchStatus";
165
+ export * from "./BatchItemStatus";
166
+ export * from "./BatchPrompt";
167
+ export * from "./BatchDefaults";
168
+ export * from "./BatchVideoContextType";
169
+ export * from "./BatchVideoContext";
170
+ export * from "./BatchItemRequest";
171
+ export * from "./CreateAnalyzeBatchResponse";
172
+ export * from "./CreatedBatchItem";
173
+ export * from "./AnalyzeBatchSummaryAnalysisMode";
174
+ export * from "./AnalyzeBatchSummary";
175
+ export * from "./AnalyzeBatchStatusResponse";
176
+ export * from "./BatchResultItem";
177
+ export * from "./BatchItemError";
164
178
  export * from "./AssetMethod";
165
179
  export * from "./AssetStatus";
166
180
  export * from "./Asset";
167
181
  export * from "./AssetDetail";
182
+ export * from "./AssetError";
168
183
  export * from "./AssetHlsStatus";
169
184
  export * from "./AssetHls";
170
185
  export * from "./AssetThumbnailStatus";
171
186
  export * from "./AssetThumbnail";
187
+ export * from "./TechnicalMetadata";
188
+ export * from "./VideoStream";
189
+ export * from "./AudioStream";
172
190
  export * from "./IndexedAssetSummaryIndex";
173
191
  export * from "./IndexedAssetSummary";
174
192
  export * from "./CreateAssetUploadResponse";
@@ -177,14 +177,32 @@ __exportStar(require("./AnalyzeTaskResultUsage"), exports);
177
177
  __exportStar(require("./AnalyzeTaskResult"), exports);
178
178
  __exportStar(require("./AnalyzeTaskError"), exports);
179
179
  __exportStar(require("./AnalyzeTaskWebhookInfo"), exports);
180
+ __exportStar(require("./BatchStatus"), exports);
181
+ __exportStar(require("./BatchItemStatus"), exports);
182
+ __exportStar(require("./BatchPrompt"), exports);
183
+ __exportStar(require("./BatchDefaults"), exports);
184
+ __exportStar(require("./BatchVideoContextType"), exports);
185
+ __exportStar(require("./BatchVideoContext"), exports);
186
+ __exportStar(require("./BatchItemRequest"), exports);
187
+ __exportStar(require("./CreateAnalyzeBatchResponse"), exports);
188
+ __exportStar(require("./CreatedBatchItem"), exports);
189
+ __exportStar(require("./AnalyzeBatchSummaryAnalysisMode"), exports);
190
+ __exportStar(require("./AnalyzeBatchSummary"), exports);
191
+ __exportStar(require("./AnalyzeBatchStatusResponse"), exports);
192
+ __exportStar(require("./BatchResultItem"), exports);
193
+ __exportStar(require("./BatchItemError"), exports);
180
194
  __exportStar(require("./AssetMethod"), exports);
181
195
  __exportStar(require("./AssetStatus"), exports);
182
196
  __exportStar(require("./Asset"), exports);
183
197
  __exportStar(require("./AssetDetail"), exports);
198
+ __exportStar(require("./AssetError"), exports);
184
199
  __exportStar(require("./AssetHlsStatus"), exports);
185
200
  __exportStar(require("./AssetHls"), exports);
186
201
  __exportStar(require("./AssetThumbnailStatus"), exports);
187
202
  __exportStar(require("./AssetThumbnail"), exports);
203
+ __exportStar(require("./TechnicalMetadata"), exports);
204
+ __exportStar(require("./VideoStream"), exports);
205
+ __exportStar(require("./AudioStream"), exports);
188
206
  __exportStar(require("./IndexedAssetSummaryIndex"), exports);
189
207
  __exportStar(require("./IndexedAssetSummary"), exports);
190
208
  __exportStar(require("./CreateAssetUploadResponse"), exports);
package/dist/Client.d.ts CHANGED
@@ -69,6 +69,8 @@ export declare class TwelvelabsApiClient {
69
69
  * - Videos longer than 1 hour. Use the [`POST`](/v1.3/api-reference/analyze-videos/create-async-analysis-task) method of the `/analyze/tasks` endpoint instead.
70
70
  * - Video segmentation with custom segment definitions. Use the [`POST`](/v1.3/api-reference/analyze-videos/create-async-analysis-task) method of the `/analyze/tasks` endpoint with the `model_name` parameter set to `pegasus1.5` instead.
71
71
  *
72
+ * 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.
73
+ *
72
74
  * <Note title="Note">
73
75
  * This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page.
74
76
  * </Note>
@@ -95,6 +97,8 @@ export declare class TwelvelabsApiClient {
95
97
  * - Videos longer than 1 hour. Use the [`POST`](/v1.3/api-reference/analyze-videos/create-async-analysis-task) method of the `/analyze/tasks` endpoint instead.
96
98
  * - Video segmentation with custom segment definitions. Use the [`POST`](/v1.3/api-reference/analyze-videos/create-async-analysis-task) method of the `/analyze/tasks` endpoint with the `model_name` parameter set to `pegasus1.5` instead.
97
99
  *
100
+ * 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.
101
+ *
98
102
  * <Note title="Note">
99
103
  * This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page.
100
104
  * </Note>
package/dist/Client.js CHANGED
@@ -119,6 +119,8 @@ class TwelvelabsApiClient {
119
119
  * - Videos longer than 1 hour. Use the [`POST`](/v1.3/api-reference/analyze-videos/create-async-analysis-task) method of the `/analyze/tasks` endpoint instead.
120
120
  * - Video segmentation with custom segment definitions. Use the [`POST`](/v1.3/api-reference/analyze-videos/create-async-analysis-task) method of the `/analyze/tasks` endpoint with the `model_name` parameter set to `pegasus1.5` instead.
121
121
  *
122
+ * 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.
123
+ *
122
124
  * <Note title="Note">
123
125
  * This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page.
124
126
  * </Note>
@@ -132,7 +134,7 @@ class TwelvelabsApiClient {
132
134
  const _response = yield core.fetcher({
133
135
  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"),
134
136
  method: "POST",
135
- 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),
137
+ 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),
136
138
  contentType: "application/json",
137
139
  requestType: "json",
138
140
  body: Object.assign(Object.assign({}, serializers.AnalyzeStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" })), { stream: true }),
@@ -215,6 +217,8 @@ class TwelvelabsApiClient {
215
217
  * - Videos longer than 1 hour. Use the [`POST`](/v1.3/api-reference/analyze-videos/create-async-analysis-task) method of the `/analyze/tasks` endpoint instead.
216
218
  * - Video segmentation with custom segment definitions. Use the [`POST`](/v1.3/api-reference/analyze-videos/create-async-analysis-task) method of the `/analyze/tasks` endpoint with the `model_name` parameter set to `pegasus1.5` instead.
217
219
  *
220
+ * 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.
221
+ *
218
222
  * <Note title="Note">
219
223
  * This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page.
220
224
  * </Note>
@@ -238,7 +242,7 @@ class TwelvelabsApiClient {
238
242
  const _response = yield core.fetcher({
239
243
  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"),
240
244
  method: "POST",
241
- 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),
245
+ 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),
242
246
  contentType: "application/json",
243
247
  requestType: "json",
244
248
  body: Object.assign(Object.assign({}, serializers.AnalyzeRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" })), { stream: false }),
@@ -42,7 +42,7 @@ export interface AnalyzeRequest {
42
42
  *
43
43
  * | Model | Min | Max | Default |
44
44
  * |-------|-----|-----|---------|
45
- * | Pegasus 1.2 | 1 | 4,096 | 4,096 |
45
+ * | Pegasus 1.2 | 2 | 4,096 | 4,096 |
46
46
  * | Pegasus 1.5 | 512 | 98,304 | 4,096 |
47
47
  */
48
48
  maxTokens?: number;
@@ -42,7 +42,7 @@ export interface AnalyzeStreamRequest {
42
42
  *
43
43
  * | Model | Min | Max | Default |
44
44
  * |-------|-----|-----|---------|
45
- * | Pegasus 1.2 | 1 | 4,096 | 4,096 |
45
+ * | Pegasus 1.2 | 2 | 4,096 | 4,096 |
46
46
  * | Pegasus 1.5 | 512 | 98,304 | 4,096 |
47
47
  */
48
48
  maxTokens?: number;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as errors from "../../errors/index";
5
+ import * as TwelvelabsApi from "../index";
6
+ import * as core from "../../core";
7
+ export declare class GatewayTimeoutError extends errors.TwelvelabsApiError {
8
+ constructor(body: TwelvelabsApi.ErrorResponse, rawResponse?: core.RawResponse);
9
+ }
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.GatewayTimeoutError = void 0;
40
+ const errors = __importStar(require("../../errors/index"));
41
+ class GatewayTimeoutError extends errors.TwelvelabsApiError {
42
+ constructor(body, rawResponse) {
43
+ super({
44
+ message: "GatewayTimeoutError",
45
+ statusCode: 504,
46
+ body: body,
47
+ rawResponse: rawResponse,
48
+ });
49
+ Object.setPrototypeOf(this, GatewayTimeoutError.prototype);
50
+ }
51
+ }
52
+ exports.GatewayTimeoutError = GatewayTimeoutError;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as errors from "../../errors/index";
5
+ import * as TwelvelabsApi from "../index";
6
+ import * as core from "../../core";
7
+ export declare class ServiceUnavailableError extends errors.TwelvelabsApiError {
8
+ constructor(body: TwelvelabsApi.ErrorResponse, rawResponse?: core.RawResponse);
9
+ }
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ServiceUnavailableError = void 0;
40
+ const errors = __importStar(require("../../errors/index"));
41
+ class ServiceUnavailableError extends errors.TwelvelabsApiError {
42
+ constructor(body, rawResponse) {
43
+ super({
44
+ message: "ServiceUnavailableError",
45
+ statusCode: 503,
46
+ body: body,
47
+ rawResponse: rawResponse,
48
+ });
49
+ Object.setPrototypeOf(this, ServiceUnavailableError.prototype);
50
+ }
51
+ }
52
+ exports.ServiceUnavailableError = ServiceUnavailableError;
@@ -4,3 +4,5 @@ export * from "./InternalServerError";
4
4
  export * from "./ConflictError";
5
5
  export * from "./ForbiddenError";
6
6
  export * from "./TooManyRequestsError";
7
+ export * from "./ServiceUnavailableError";
8
+ export * from "./GatewayTimeoutError";
@@ -20,3 +20,5 @@ __exportStar(require("./InternalServerError"), exports);
20
20
  __exportStar(require("./ConflictError"), exports);
21
21
  __exportStar(require("./ForbiddenError"), exports);
22
22
  __exportStar(require("./TooManyRequestsError"), exports);
23
+ __exportStar(require("./ServiceUnavailableError"), exports);
24
+ __exportStar(require("./GatewayTimeoutError"), exports);
@@ -4,6 +4,7 @@
4
4
  import * as environments from "../../../../environments";
5
5
  import * as core from "../../../../core";
6
6
  import { Tasks } from "../resources/tasks/client/Client";
7
+ import { Batches } from "../resources/batches/client/Client";
7
8
  export declare namespace AnalyzeAsync {
8
9
  interface Options {
9
10
  environment?: core.Supplier<environments.TwelvelabsApiEnvironment | string>;
@@ -15,6 +16,8 @@ export declare namespace AnalyzeAsync {
15
16
  export declare class AnalyzeAsync {
16
17
  protected readonly _options: AnalyzeAsync.Options;
17
18
  protected _tasks: Tasks | undefined;
19
+ protected _batches: Batches | undefined;
18
20
  constructor(_options: AnalyzeAsync.Options);
19
21
  get tasks(): Tasks;
22
+ get batches(): Batches;
20
23
  }
@@ -5,6 +5,7 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.AnalyzeAsync = void 0;
7
7
  const Client_1 = require("../resources/tasks/client/Client");
8
+ const Client_2 = require("../resources/batches/client/Client");
8
9
  class AnalyzeAsync {
9
10
  constructor(_options) {
10
11
  this._options = _options;
@@ -13,5 +14,9 @@ class AnalyzeAsync {
13
14
  var _a;
14
15
  return ((_a = this._tasks) !== null && _a !== void 0 ? _a : (this._tasks = new Client_1.Tasks(this._options)));
15
16
  }
17
+ get batches() {
18
+ var _a;
19
+ return ((_a = this._batches) !== null && _a !== void 0 ? _a : (this._batches = new Client_2.Batches(this._options)));
20
+ }
16
21
  }
17
22
  exports.AnalyzeAsync = AnalyzeAsync;