twelvelabs-js 1.2.2 → 1.2.4

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 (629) hide show
  1. package/Client.d.ts +14 -36
  2. package/Client.js +22 -40
  3. package/README.md +20 -1
  4. package/api/client/requests/AnalyzeRequest.d.ts +43 -30
  5. package/api/client/requests/AnalyzeStreamRequest.d.ts +43 -30
  6. package/api/errors/ConflictError.d.ts +1 -2
  7. package/api/errors/index.d.ts +1 -1
  8. package/api/errors/index.js +1 -1
  9. package/api/resources/analyzeAsync/resources/tasks/client/Client.d.ts +96 -2
  10. package/api/resources/analyzeAsync/resources/tasks/client/Client.js +118 -17
  11. package/api/resources/analyzeAsync/resources/tasks/client/requests/CreateAsyncAnalyzeRequest.d.ts +176 -3
  12. package/api/resources/analyzeAsync/resources/tasks/client/requests/TasksListRequest.d.ts +32 -1
  13. package/api/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestAnalysisMode.d.ts +15 -0
  14. package/api/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestAnalysisMode.js +10 -0
  15. package/api/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestModelName.d.ts +15 -0
  16. package/api/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestModelName.js +10 -0
  17. package/api/resources/analyzeAsync/resources/tasks/types/TasksListRequestAnalysisMode.d.ts +8 -0
  18. package/api/resources/analyzeAsync/resources/tasks/types/TasksListRequestAnalysisMode.js +10 -0
  19. package/api/resources/analyzeAsync/resources/tasks/types/index.d.ts +3 -0
  20. package/api/resources/analyzeAsync/resources/tasks/types/index.js +3 -0
  21. package/api/resources/assets/client/Client.d.ts +20 -6
  22. package/api/resources/assets/client/Client.js +48 -17
  23. package/api/resources/assets/client/requests/AssetsCreateRequest.d.ts +13 -1
  24. package/api/resources/assets/client/requests/AssetsDeleteRequest.d.ts +17 -0
  25. package/api/resources/assets/client/requests/AssetsListRequest.d.ts +6 -1
  26. package/api/resources/assets/client/requests/index.d.ts +1 -0
  27. package/api/resources/assets/types/AssetsListResponse.d.ts +1 -1
  28. package/api/resources/embed/client/Client.js +2 -2
  29. package/api/resources/embed/resources/tasks/client/Client.d.ts +1 -1
  30. package/api/resources/embed/resources/tasks/client/Client.js +9 -9
  31. package/api/resources/embed/resources/v2/client/Client.js +2 -2
  32. package/api/resources/embed/resources/v2/resources/tasks/client/Client.d.ts +13 -3
  33. package/api/resources/embed/resources/v2/resources/tasks/client/Client.js +19 -9
  34. package/api/resources/entityCollections/client/Client.js +10 -10
  35. package/api/resources/entityCollections/resources/entities/client/Client.d.ts +16 -0
  36. package/api/resources/entityCollections/resources/entities/client/Client.js +108 -17
  37. package/api/resources/entityCollections/resources/entities/client/requests/EntitiesListByAssetRequest.d.ts +25 -0
  38. package/api/resources/entityCollections/resources/entities/client/requests/index.d.ts +1 -0
  39. package/api/resources/entityCollections/resources/entities/types/EntitiesListByAssetResponse.d.ts +9 -0
  40. package/api/resources/entityCollections/resources/entities/types/EntitiesListByAssetResponse.js +5 -0
  41. package/api/resources/entityCollections/resources/entities/types/index.d.ts +1 -0
  42. package/api/resources/entityCollections/resources/entities/types/index.js +1 -0
  43. package/api/resources/indexes/client/Client.js +10 -10
  44. package/api/resources/indexes/resources/indexedAssets/client/Client.d.ts +16 -5
  45. package/api/resources/indexes/resources/indexedAssets/client/Client.js +131 -20
  46. package/api/resources/indexes/resources/indexedAssets/client/requests/IndexedAssetsCreateRequest.d.ts +1 -1
  47. package/api/resources/indexes/resources/indexedAssets/client/requests/IndexedAssetsListByAssetRequest.d.ts +25 -0
  48. package/api/resources/indexes/resources/indexedAssets/client/requests/IndexedAssetsListByAssetRequest.js +5 -0
  49. package/api/resources/indexes/resources/indexedAssets/client/requests/IndexedAssetsListRequest.d.ts +15 -15
  50. package/api/resources/indexes/resources/indexedAssets/client/requests/index.d.ts +1 -0
  51. package/api/resources/indexes/resources/indexedAssets/types/IndexedAssetsCreateResponse.d.ts +2 -0
  52. package/api/resources/indexes/resources/indexedAssets/types/IndexedAssetsListByAssetResponse.d.ts +9 -0
  53. package/api/resources/indexes/resources/indexedAssets/types/IndexedAssetsListByAssetResponse.js +5 -0
  54. package/api/resources/indexes/resources/indexedAssets/types/index.d.ts +1 -0
  55. package/api/resources/indexes/resources/indexedAssets/types/index.js +1 -0
  56. package/api/resources/indexes/resources/videos/client/Client.d.ts +0 -5
  57. package/api/resources/indexes/resources/videos/client/Client.js +39 -19
  58. package/api/resources/indexes/resources/videos/client/requests/VideosListRequest.d.ts +15 -15
  59. package/api/resources/multipartUpload/client/Client.d.ts +3 -3
  60. package/api/resources/multipartUpload/client/Client.js +13 -13
  61. package/api/resources/multipartUpload/client/requests/CreateAssetUploadRequest.d.ts +12 -0
  62. package/api/resources/search/client/Client.js +4 -4
  63. package/api/resources/tasks/client/Client.js +8 -8
  64. package/api/resources/tasks/resources/transfers/client/Client.js +6 -6
  65. package/api/types/AnalyzePromptV2.d.ts +13 -0
  66. package/api/types/AnalyzePromptV2.js +5 -0
  67. package/api/types/AnalyzeRequestModelName.d.ts +15 -0
  68. package/api/types/AnalyzeRequestModelName.js +10 -0
  69. package/api/types/AnalyzeStreamRequestModelName.d.ts +15 -0
  70. package/api/types/AnalyzeStreamRequestModelName.js +10 -0
  71. package/api/types/AnalyzeTaskResponse.d.ts +6 -0
  72. package/api/types/AnalyzeTaskResponseRequestParams.d.ts +39 -0
  73. package/api/types/AnalyzeTaskResponseRequestParams.js +5 -0
  74. package/api/types/AnalyzeTaskResponseRequestParamsAnalysisMode.d.ts +11 -0
  75. package/api/types/AnalyzeTaskResponseRequestParamsAnalysisMode.js +10 -0
  76. package/api/types/AnalyzeTaskResponseRequestParamsPromptV2.d.ts +16 -0
  77. package/api/types/AnalyzeTaskResponseRequestParamsPromptV2.js +5 -0
  78. package/api/types/AnalyzeTaskResponseRequestParamsPromptV2MediaSourcesItem.d.ts +11 -0
  79. package/api/types/AnalyzeTaskResponseRequestParamsPromptV2MediaSourcesItem.js +5 -0
  80. package/api/types/AnalyzeTaskResponseRequestParamsResponseFormat.d.ts +24 -0
  81. package/api/types/AnalyzeTaskResponseRequestParamsResponseFormat.js +5 -0
  82. package/api/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItem.d.ts +12 -0
  83. package/api/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItem.js +5 -0
  84. package/api/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItem.d.ts +11 -0
  85. package/api/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItem.js +5 -0
  86. package/api/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItemItems.d.ts +6 -0
  87. package/api/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItemItems.js +5 -0
  88. package/api/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemMediaSourcesItem.d.ts +9 -0
  89. package/api/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemMediaSourcesItem.js +5 -0
  90. package/api/types/AnalyzeTaskResponseRequestParamsResponseFormatType.d.ts +8 -0
  91. package/api/types/AnalyzeTaskResponseRequestParamsResponseFormatType.js +10 -0
  92. package/api/types/AnalyzeTaskResponseVideoSource.d.ts +21 -0
  93. package/api/types/AnalyzeTaskResponseVideoSource.js +5 -0
  94. package/api/types/AnalyzeTaskResponseVideoSourceSystemMetadata.d.ts +10 -0
  95. package/api/types/AnalyzeTaskResponseVideoSourceSystemMetadata.js +5 -0
  96. package/api/types/AnalyzeTaskResponseVideoSourceType.d.ts +13 -0
  97. package/api/types/AnalyzeTaskResponseVideoSourceType.js +12 -0
  98. package/api/types/AnalyzeTaskResult.d.ts +10 -1
  99. package/api/types/AnalyzeTaskResultUsage.d.ts +1 -1
  100. package/api/types/AnalyzeTimeRange.d.ts +12 -0
  101. package/api/types/AnalyzeTimeRange.js +5 -0
  102. package/api/types/Asset.d.ts +5 -0
  103. package/api/types/AssetDetail.d.ts +11 -0
  104. package/api/types/AssetDetail.js +5 -0
  105. package/api/types/AssetHls.d.ts +21 -0
  106. package/api/types/AssetHls.js +5 -0
  107. package/api/types/AssetHlsStatus.d.ts +19 -0
  108. package/api/types/AssetHlsStatus.js +12 -0
  109. package/api/types/AssetMethod.d.ts +3 -1
  110. package/api/types/AssetMethod.js +1 -0
  111. package/api/types/AssetThumbnail.d.ts +21 -0
  112. package/api/types/AssetThumbnail.js +5 -0
  113. package/api/types/AssetThumbnailStatus.d.ts +19 -0
  114. package/api/types/AssetThumbnailStatus.js +12 -0
  115. package/api/types/AsyncResponseFormat.d.ts +117 -0
  116. package/api/types/AsyncResponseFormat.js +5 -0
  117. package/api/types/AsyncResponseFormatType.d.ts +13 -0
  118. package/api/types/AsyncResponseFormatType.js +10 -0
  119. package/api/types/ConflictErrorBody.d.ts +11 -0
  120. package/api/types/ConflictErrorBody.js +5 -0
  121. package/api/types/Entity.d.ts +2 -0
  122. package/api/types/IndexedAsset.d.ts +2 -0
  123. package/api/types/IndexedAssetSummary.d.ts +12 -0
  124. package/api/types/IndexedAssetSummary.js +5 -0
  125. package/api/types/IndexedAssetSummaryIndex.d.ts +12 -0
  126. package/api/types/IndexedAssetSummaryIndex.js +5 -0
  127. package/api/types/IndexedAssetsListRequestDuration.d.ts +7 -0
  128. package/api/types/IndexedAssetsListRequestDuration.js +5 -0
  129. package/api/types/IndexedAssetsListRequestFps.d.ts +7 -0
  130. package/api/types/IndexedAssetsListRequestFps.js +5 -0
  131. package/api/types/IndexedAssetsListRequestHeight.d.ts +7 -0
  132. package/api/types/IndexedAssetsListRequestHeight.js +5 -0
  133. package/api/types/IndexedAssetsListRequestSize.d.ts +7 -0
  134. package/api/types/IndexedAssetsListRequestSize.js +5 -0
  135. package/api/types/IndexedAssetsListRequestWidth.d.ts +7 -0
  136. package/api/types/IndexedAssetsListRequestWidth.js +5 -0
  137. package/api/types/InternalEntity.d.ts +23 -1
  138. package/api/types/MediaSource.d.ts +1 -1
  139. package/api/types/One.d.ts +1 -1
  140. package/api/types/SegmentDefinition.d.ts +28 -0
  141. package/api/types/SegmentDefinition.js +5 -0
  142. package/api/types/SegmentField.d.ts +19 -0
  143. package/api/types/SegmentField.js +5 -0
  144. package/api/types/SegmentFieldItems.d.ts +10 -0
  145. package/api/types/SegmentFieldItems.js +5 -0
  146. package/api/types/SegmentFieldItemsType.d.ts +10 -0
  147. package/api/types/SegmentFieldItemsType.js +12 -0
  148. package/api/types/SegmentFieldType.d.ts +14 -0
  149. package/api/types/SegmentFieldType.js +13 -0
  150. package/api/types/SmeMediaSource.d.ts +19 -0
  151. package/api/types/SmeMediaSource.js +5 -0
  152. package/api/types/SmeMediaSourceMediaType.d.ts +10 -0
  153. package/api/types/SmeMediaSourceMediaType.js +9 -0
  154. package/api/types/{ResponseFormat.d.ts → SyncResponseFormat.d.ts} +27 -8
  155. package/api/types/SyncResponseFormat.js +5 -0
  156. package/{dist/api/types/ResponseFormatType.d.ts → api/types/SyncResponseFormatType.d.ts} +2 -2
  157. package/{dist/api/types/ResponseFormatType.js → api/types/SyncResponseFormatType.js} +2 -2
  158. package/api/types/TokenUsage.d.ts +3 -1
  159. package/api/types/VideosListRequestDuration.d.ts +7 -0
  160. package/api/types/VideosListRequestDuration.js +5 -0
  161. package/api/types/VideosListRequestFps.d.ts +7 -0
  162. package/api/types/VideosListRequestFps.js +5 -0
  163. package/api/types/VideosListRequestHeight.d.ts +7 -0
  164. package/api/types/VideosListRequestHeight.js +5 -0
  165. package/api/types/VideosListRequestSize.d.ts +7 -0
  166. package/api/types/VideosListRequestSize.js +5 -0
  167. package/api/types/VideosListRequestWidth.d.ts +7 -0
  168. package/api/types/VideosListRequestWidth.js +5 -0
  169. package/api/types/index.d.ts +46 -2
  170. package/api/types/index.js +46 -2
  171. package/dist/Client.d.ts +14 -36
  172. package/dist/Client.js +22 -40
  173. package/dist/api/client/requests/AnalyzeRequest.d.ts +43 -30
  174. package/dist/api/client/requests/AnalyzeStreamRequest.d.ts +43 -30
  175. package/dist/api/errors/ConflictError.d.ts +1 -2
  176. package/dist/api/errors/index.d.ts +1 -1
  177. package/dist/api/errors/index.js +1 -1
  178. package/dist/api/resources/analyzeAsync/resources/tasks/client/Client.d.ts +96 -2
  179. package/dist/api/resources/analyzeAsync/resources/tasks/client/Client.js +118 -17
  180. package/dist/api/resources/analyzeAsync/resources/tasks/client/requests/CreateAsyncAnalyzeRequest.d.ts +176 -3
  181. package/dist/api/resources/analyzeAsync/resources/tasks/client/requests/TasksListRequest.d.ts +32 -1
  182. package/dist/api/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestAnalysisMode.d.ts +15 -0
  183. package/dist/api/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestAnalysisMode.js +10 -0
  184. package/dist/api/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestModelName.d.ts +15 -0
  185. package/dist/api/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestModelName.js +10 -0
  186. package/dist/api/resources/analyzeAsync/resources/tasks/types/TasksListRequestAnalysisMode.d.ts +8 -0
  187. package/dist/api/resources/analyzeAsync/resources/tasks/types/TasksListRequestAnalysisMode.js +10 -0
  188. package/dist/api/resources/analyzeAsync/resources/tasks/types/index.d.ts +3 -0
  189. package/dist/api/resources/analyzeAsync/resources/tasks/types/index.js +3 -0
  190. package/dist/api/resources/assets/client/Client.d.ts +20 -6
  191. package/dist/api/resources/assets/client/Client.js +48 -17
  192. package/dist/api/resources/assets/client/requests/AssetsCreateRequest.d.ts +13 -1
  193. package/dist/api/resources/assets/client/requests/AssetsDeleteRequest.d.ts +17 -0
  194. package/dist/api/resources/assets/client/requests/AssetsDeleteRequest.js +5 -0
  195. package/dist/api/resources/assets/client/requests/AssetsListRequest.d.ts +6 -1
  196. package/dist/api/resources/assets/client/requests/index.d.ts +1 -0
  197. package/dist/api/resources/assets/types/AssetsListResponse.d.ts +1 -1
  198. package/dist/api/resources/embed/client/Client.js +2 -2
  199. package/dist/api/resources/embed/resources/tasks/client/Client.d.ts +1 -1
  200. package/dist/api/resources/embed/resources/tasks/client/Client.js +9 -9
  201. package/dist/api/resources/embed/resources/v2/client/Client.js +2 -2
  202. package/dist/api/resources/embed/resources/v2/resources/tasks/client/Client.d.ts +13 -3
  203. package/dist/api/resources/embed/resources/v2/resources/tasks/client/Client.js +19 -9
  204. package/dist/api/resources/entityCollections/client/Client.js +10 -10
  205. package/dist/api/resources/entityCollections/resources/entities/client/Client.d.ts +16 -0
  206. package/dist/api/resources/entityCollections/resources/entities/client/Client.js +108 -17
  207. package/dist/api/resources/entityCollections/resources/entities/client/requests/EntitiesListByAssetRequest.d.ts +25 -0
  208. package/dist/api/resources/entityCollections/resources/entities/client/requests/EntitiesListByAssetRequest.js +5 -0
  209. package/dist/api/resources/entityCollections/resources/entities/client/requests/index.d.ts +1 -0
  210. package/dist/api/resources/entityCollections/resources/entities/types/EntitiesListByAssetResponse.d.ts +9 -0
  211. package/dist/api/resources/entityCollections/resources/entities/types/EntitiesListByAssetResponse.js +5 -0
  212. package/dist/api/resources/entityCollections/resources/entities/types/index.d.ts +1 -0
  213. package/dist/api/resources/entityCollections/resources/entities/types/index.js +1 -0
  214. package/dist/api/resources/indexes/client/Client.js +10 -10
  215. package/dist/api/resources/indexes/resources/indexedAssets/client/Client.d.ts +16 -5
  216. package/dist/api/resources/indexes/resources/indexedAssets/client/Client.js +131 -20
  217. package/dist/api/resources/indexes/resources/indexedAssets/client/requests/IndexedAssetsCreateRequest.d.ts +1 -1
  218. package/dist/api/resources/indexes/resources/indexedAssets/client/requests/IndexedAssetsListByAssetRequest.d.ts +25 -0
  219. package/dist/api/resources/indexes/resources/indexedAssets/client/requests/IndexedAssetsListByAssetRequest.js +5 -0
  220. package/dist/api/resources/indexes/resources/indexedAssets/client/requests/IndexedAssetsListRequest.d.ts +15 -15
  221. package/dist/api/resources/indexes/resources/indexedAssets/client/requests/index.d.ts +1 -0
  222. package/dist/api/resources/indexes/resources/indexedAssets/types/IndexedAssetsCreateResponse.d.ts +2 -0
  223. package/dist/api/resources/indexes/resources/indexedAssets/types/IndexedAssetsListByAssetResponse.d.ts +9 -0
  224. package/dist/api/resources/indexes/resources/indexedAssets/types/IndexedAssetsListByAssetResponse.js +5 -0
  225. package/dist/api/resources/indexes/resources/indexedAssets/types/index.d.ts +1 -0
  226. package/dist/api/resources/indexes/resources/indexedAssets/types/index.js +1 -0
  227. package/dist/api/resources/indexes/resources/videos/client/Client.d.ts +0 -5
  228. package/dist/api/resources/indexes/resources/videos/client/Client.js +39 -19
  229. package/dist/api/resources/indexes/resources/videos/client/requests/VideosListRequest.d.ts +15 -15
  230. package/dist/api/resources/multipartUpload/client/Client.d.ts +3 -3
  231. package/dist/api/resources/multipartUpload/client/Client.js +13 -13
  232. package/dist/api/resources/multipartUpload/client/requests/CreateAssetUploadRequest.d.ts +12 -0
  233. package/dist/api/resources/search/client/Client.js +4 -4
  234. package/dist/api/resources/tasks/client/Client.js +8 -8
  235. package/dist/api/resources/tasks/resources/transfers/client/Client.js +6 -6
  236. package/dist/api/types/AnalyzePromptV2.d.ts +13 -0
  237. package/dist/api/types/AnalyzePromptV2.js +5 -0
  238. package/dist/api/types/AnalyzeRequestModelName.d.ts +15 -0
  239. package/dist/api/types/AnalyzeRequestModelName.js +10 -0
  240. package/dist/api/types/AnalyzeStreamRequestModelName.d.ts +15 -0
  241. package/dist/api/types/AnalyzeStreamRequestModelName.js +10 -0
  242. package/dist/api/types/AnalyzeTaskResponse.d.ts +6 -0
  243. package/dist/api/types/AnalyzeTaskResponseRequestParams.d.ts +39 -0
  244. package/dist/api/types/AnalyzeTaskResponseRequestParams.js +5 -0
  245. package/dist/api/types/AnalyzeTaskResponseRequestParamsAnalysisMode.d.ts +11 -0
  246. package/dist/api/types/AnalyzeTaskResponseRequestParamsAnalysisMode.js +10 -0
  247. package/dist/api/types/AnalyzeTaskResponseRequestParamsPromptV2.d.ts +16 -0
  248. package/dist/api/types/AnalyzeTaskResponseRequestParamsPromptV2.js +5 -0
  249. package/dist/api/types/AnalyzeTaskResponseRequestParamsPromptV2MediaSourcesItem.d.ts +11 -0
  250. package/dist/api/types/AnalyzeTaskResponseRequestParamsPromptV2MediaSourcesItem.js +5 -0
  251. package/dist/api/types/AnalyzeTaskResponseRequestParamsResponseFormat.d.ts +24 -0
  252. package/dist/api/types/AnalyzeTaskResponseRequestParamsResponseFormat.js +5 -0
  253. package/dist/api/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItem.d.ts +12 -0
  254. package/dist/api/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItem.js +5 -0
  255. package/dist/api/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItem.d.ts +11 -0
  256. package/dist/api/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItem.js +5 -0
  257. package/dist/api/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItemItems.d.ts +6 -0
  258. package/dist/api/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItemItems.js +5 -0
  259. package/dist/api/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemMediaSourcesItem.d.ts +9 -0
  260. package/dist/api/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemMediaSourcesItem.js +5 -0
  261. package/dist/api/types/AnalyzeTaskResponseRequestParamsResponseFormatType.d.ts +8 -0
  262. package/dist/api/types/AnalyzeTaskResponseRequestParamsResponseFormatType.js +10 -0
  263. package/dist/api/types/AnalyzeTaskResponseVideoSource.d.ts +21 -0
  264. package/dist/api/types/AnalyzeTaskResponseVideoSource.js +5 -0
  265. package/dist/api/types/AnalyzeTaskResponseVideoSourceSystemMetadata.d.ts +10 -0
  266. package/dist/api/types/AnalyzeTaskResponseVideoSourceSystemMetadata.js +5 -0
  267. package/dist/api/types/AnalyzeTaskResponseVideoSourceType.d.ts +13 -0
  268. package/dist/api/types/AnalyzeTaskResponseVideoSourceType.js +12 -0
  269. package/dist/api/types/AnalyzeTaskResult.d.ts +10 -1
  270. package/dist/api/types/AnalyzeTaskResultUsage.d.ts +1 -1
  271. package/dist/api/types/AnalyzeTimeRange.d.ts +12 -0
  272. package/dist/api/types/AnalyzeTimeRange.js +5 -0
  273. package/dist/api/types/Asset.d.ts +5 -0
  274. package/dist/api/types/AssetDetail.d.ts +11 -0
  275. package/dist/api/types/AssetDetail.js +5 -0
  276. package/dist/api/types/AssetHls.d.ts +21 -0
  277. package/dist/api/types/AssetHls.js +5 -0
  278. package/dist/api/types/AssetHlsStatus.d.ts +19 -0
  279. package/dist/api/types/AssetHlsStatus.js +12 -0
  280. package/dist/api/types/AssetMethod.d.ts +3 -1
  281. package/dist/api/types/AssetMethod.js +1 -0
  282. package/dist/api/types/AssetThumbnail.d.ts +21 -0
  283. package/dist/api/types/AssetThumbnail.js +5 -0
  284. package/dist/api/types/AssetThumbnailStatus.d.ts +19 -0
  285. package/dist/api/types/AssetThumbnailStatus.js +12 -0
  286. package/dist/api/types/AsyncResponseFormat.d.ts +117 -0
  287. package/dist/api/types/AsyncResponseFormat.js +5 -0
  288. package/dist/api/types/AsyncResponseFormatType.d.ts +13 -0
  289. package/dist/api/types/AsyncResponseFormatType.js +10 -0
  290. package/dist/api/types/ConflictErrorBody.d.ts +11 -0
  291. package/dist/api/types/ConflictErrorBody.js +5 -0
  292. package/dist/api/types/Entity.d.ts +2 -0
  293. package/dist/api/types/IndexedAsset.d.ts +2 -0
  294. package/dist/api/types/IndexedAssetSummary.d.ts +12 -0
  295. package/dist/api/types/IndexedAssetSummary.js +5 -0
  296. package/dist/api/types/IndexedAssetSummaryIndex.d.ts +12 -0
  297. package/dist/api/types/IndexedAssetSummaryIndex.js +5 -0
  298. package/dist/api/types/IndexedAssetsListRequestDuration.d.ts +7 -0
  299. package/dist/api/types/IndexedAssetsListRequestDuration.js +5 -0
  300. package/dist/api/types/IndexedAssetsListRequestFps.d.ts +7 -0
  301. package/dist/api/types/IndexedAssetsListRequestFps.js +5 -0
  302. package/dist/api/types/IndexedAssetsListRequestHeight.d.ts +7 -0
  303. package/dist/api/types/IndexedAssetsListRequestHeight.js +5 -0
  304. package/dist/api/types/IndexedAssetsListRequestSize.d.ts +7 -0
  305. package/dist/api/types/IndexedAssetsListRequestSize.js +5 -0
  306. package/dist/api/types/IndexedAssetsListRequestWidth.d.ts +7 -0
  307. package/dist/api/types/IndexedAssetsListRequestWidth.js +5 -0
  308. package/dist/api/types/InternalEntity.d.ts +23 -1
  309. package/dist/api/types/MediaSource.d.ts +1 -1
  310. package/dist/api/types/One.d.ts +1 -1
  311. package/dist/api/types/SegmentDefinition.d.ts +28 -0
  312. package/dist/api/types/SegmentDefinition.js +5 -0
  313. package/dist/api/types/SegmentField.d.ts +19 -0
  314. package/dist/api/types/SegmentField.js +5 -0
  315. package/dist/api/types/SegmentFieldItems.d.ts +10 -0
  316. package/dist/api/types/SegmentFieldItems.js +5 -0
  317. package/dist/api/types/SegmentFieldItemsType.d.ts +10 -0
  318. package/dist/api/types/SegmentFieldItemsType.js +12 -0
  319. package/dist/api/types/SegmentFieldType.d.ts +14 -0
  320. package/dist/api/types/SegmentFieldType.js +13 -0
  321. package/dist/api/types/SmeMediaSource.d.ts +19 -0
  322. package/dist/api/types/SmeMediaSource.js +5 -0
  323. package/dist/api/types/SmeMediaSourceMediaType.d.ts +10 -0
  324. package/dist/api/types/SmeMediaSourceMediaType.js +9 -0
  325. package/dist/api/types/{ResponseFormat.d.ts → SyncResponseFormat.d.ts} +27 -8
  326. package/dist/api/types/SyncResponseFormat.js +5 -0
  327. package/{api/types/ResponseFormatType.d.ts → dist/api/types/SyncResponseFormatType.d.ts} +2 -2
  328. package/{api/types/ResponseFormatType.js → dist/api/types/SyncResponseFormatType.js} +2 -2
  329. package/dist/api/types/TokenUsage.d.ts +3 -1
  330. package/dist/api/types/VideosListRequestDuration.d.ts +7 -0
  331. package/dist/api/types/VideosListRequestDuration.js +5 -0
  332. package/dist/api/types/VideosListRequestFps.d.ts +7 -0
  333. package/dist/api/types/VideosListRequestFps.js +5 -0
  334. package/dist/api/types/VideosListRequestHeight.d.ts +7 -0
  335. package/dist/api/types/VideosListRequestHeight.js +5 -0
  336. package/dist/api/types/VideosListRequestSize.d.ts +7 -0
  337. package/dist/api/types/VideosListRequestSize.js +5 -0
  338. package/dist/api/types/VideosListRequestWidth.d.ts +7 -0
  339. package/dist/api/types/VideosListRequestWidth.js +5 -0
  340. package/dist/api/types/index.d.ts +46 -2
  341. package/dist/api/types/index.js +46 -2
  342. package/dist/serialization/client/requests/AnalyzeRequest.d.ts +10 -5
  343. package/dist/serialization/client/requests/AnalyzeRequest.js +10 -5
  344. package/dist/serialization/client/requests/AnalyzeStreamRequest.d.ts +10 -5
  345. package/dist/serialization/client/requests/AnalyzeStreamRequest.js +10 -5
  346. package/dist/serialization/resources/analyzeAsync/resources/tasks/client/requests/CreateAsyncAnalyzeRequest.d.ts +15 -6
  347. package/dist/serialization/resources/analyzeAsync/resources/tasks/client/requests/CreateAsyncAnalyzeRequest.js +15 -6
  348. package/dist/serialization/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestAnalysisMode.d.ts +10 -0
  349. package/dist/serialization/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestAnalysisMode.js +41 -0
  350. package/dist/serialization/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestModelName.d.ts +10 -0
  351. package/dist/serialization/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestModelName.js +41 -0
  352. package/dist/serialization/resources/analyzeAsync/resources/tasks/types/TasksListRequestAnalysisMode.d.ts +10 -0
  353. package/dist/serialization/resources/analyzeAsync/resources/tasks/types/TasksListRequestAnalysisMode.js +41 -0
  354. package/dist/serialization/resources/analyzeAsync/resources/tasks/types/index.d.ts +3 -0
  355. package/dist/serialization/resources/analyzeAsync/resources/tasks/types/index.js +3 -0
  356. package/dist/serialization/resources/assets/types/AssetsListResponse.d.ts +2 -2
  357. package/dist/serialization/resources/assets/types/AssetsListResponse.js +2 -2
  358. package/dist/serialization/resources/entityCollections/resources/entities/types/EntitiesListByAssetResponse.d.ts +15 -0
  359. package/dist/serialization/resources/entityCollections/resources/entities/types/EntitiesListByAssetResponse.js +46 -0
  360. package/dist/serialization/resources/entityCollections/resources/entities/types/index.d.ts +1 -0
  361. package/dist/serialization/resources/entityCollections/resources/entities/types/index.js +1 -0
  362. package/dist/serialization/resources/indexes/resources/indexedAssets/types/IndexedAssetsCreateResponse.d.ts +1 -0
  363. package/dist/serialization/resources/indexes/resources/indexedAssets/types/IndexedAssetsCreateResponse.js +1 -0
  364. package/dist/serialization/resources/indexes/resources/indexedAssets/types/IndexedAssetsListByAssetResponse.d.ts +15 -0
  365. package/dist/serialization/resources/indexes/resources/indexedAssets/types/IndexedAssetsListByAssetResponse.js +46 -0
  366. package/dist/serialization/resources/indexes/resources/indexedAssets/types/index.d.ts +1 -0
  367. package/dist/serialization/resources/indexes/resources/indexedAssets/types/index.js +1 -0
  368. package/dist/serialization/resources/multipartUpload/client/requests/CreateAssetUploadRequest.d.ts +2 -0
  369. package/dist/serialization/resources/multipartUpload/client/requests/CreateAssetUploadRequest.js +2 -0
  370. package/dist/serialization/types/AnalyzePromptV2.d.ts +14 -0
  371. package/dist/serialization/types/AnalyzePromptV2.js +45 -0
  372. package/dist/serialization/types/AnalyzeRequestModelName.d.ts +10 -0
  373. package/dist/serialization/types/AnalyzeRequestModelName.js +41 -0
  374. package/dist/serialization/types/AnalyzeStreamRequestModelName.d.ts +10 -0
  375. package/dist/serialization/types/AnalyzeStreamRequestModelName.js +41 -0
  376. package/dist/serialization/types/AnalyzeTaskResponse.d.ts +5 -0
  377. package/dist/serialization/types/AnalyzeTaskResponse.js +5 -0
  378. package/dist/serialization/types/AnalyzeTaskResponseRequestParams.d.ts +24 -0
  379. package/dist/serialization/types/AnalyzeTaskResponseRequestParams.js +55 -0
  380. package/dist/serialization/types/AnalyzeTaskResponseRequestParamsAnalysisMode.d.ts +10 -0
  381. package/dist/serialization/types/AnalyzeTaskResponseRequestParamsAnalysisMode.js +41 -0
  382. package/dist/serialization/types/AnalyzeTaskResponseRequestParamsPromptV2.d.ts +14 -0
  383. package/dist/serialization/types/AnalyzeTaskResponseRequestParamsPromptV2.js +45 -0
  384. package/dist/serialization/types/AnalyzeTaskResponseRequestParamsPromptV2MediaSourcesItem.d.ts +15 -0
  385. package/dist/serialization/types/AnalyzeTaskResponseRequestParamsPromptV2MediaSourcesItem.js +46 -0
  386. package/dist/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormat.d.ts +16 -0
  387. package/dist/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormat.js +47 -0
  388. package/dist/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItem.d.ts +19 -0
  389. package/dist/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItem.js +54 -0
  390. package/dist/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItem.d.ts +17 -0
  391. package/dist/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItem.js +48 -0
  392. package/dist/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItemItems.d.ts +12 -0
  393. package/dist/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItemItems.js +43 -0
  394. package/dist/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemMediaSourcesItem.d.ts +15 -0
  395. package/dist/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemMediaSourcesItem.js +46 -0
  396. package/dist/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatType.d.ts +10 -0
  397. package/dist/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatType.js +41 -0
  398. package/dist/serialization/types/AnalyzeTaskResponseVideoSource.d.ts +19 -0
  399. package/dist/serialization/types/AnalyzeTaskResponseVideoSource.js +50 -0
  400. package/dist/serialization/types/AnalyzeTaskResponseVideoSourceSystemMetadata.d.ts +12 -0
  401. package/dist/serialization/types/AnalyzeTaskResponseVideoSourceSystemMetadata.js +43 -0
  402. package/dist/serialization/types/AnalyzeTaskResponseVideoSourceType.d.ts +10 -0
  403. package/dist/serialization/types/AnalyzeTaskResponseVideoSourceType.js +41 -0
  404. package/dist/serialization/types/AnalyzeTaskResult.d.ts +1 -2
  405. package/dist/serialization/types/AnalyzeTaskResult.js +1 -2
  406. package/dist/serialization/types/AnalyzeTimeRange.d.ts +13 -0
  407. package/dist/serialization/types/AnalyzeTimeRange.js +44 -0
  408. package/dist/serialization/types/Asset.d.ts +2 -0
  409. package/dist/serialization/types/Asset.js +2 -0
  410. package/dist/serialization/types/AssetDetail.d.ts +16 -0
  411. package/dist/serialization/types/AssetDetail.js +49 -0
  412. package/dist/serialization/types/AssetHls.d.ts +14 -0
  413. package/dist/serialization/types/AssetHls.js +45 -0
  414. package/dist/serialization/types/AssetHlsStatus.d.ts +10 -0
  415. package/dist/serialization/types/AssetHlsStatus.js +41 -0
  416. package/dist/serialization/types/AssetMethod.d.ts +1 -1
  417. package/dist/serialization/types/AssetMethod.js +1 -1
  418. package/dist/serialization/types/AssetThumbnail.d.ts +14 -0
  419. package/dist/serialization/types/AssetThumbnail.js +45 -0
  420. package/dist/serialization/types/AssetThumbnailStatus.d.ts +10 -0
  421. package/dist/serialization/types/AssetThumbnailStatus.js +41 -0
  422. package/dist/serialization/types/AsyncResponseFormat.d.ts +16 -0
  423. package/dist/serialization/types/AsyncResponseFormat.js +47 -0
  424. package/dist/serialization/types/AsyncResponseFormatType.d.ts +10 -0
  425. package/dist/serialization/types/AsyncResponseFormatType.js +41 -0
  426. package/dist/serialization/types/ConflictErrorBody.d.ts +14 -0
  427. package/dist/serialization/types/ConflictErrorBody.js +45 -0
  428. package/dist/serialization/types/Entity.d.ts +1 -0
  429. package/dist/serialization/types/Entity.js +1 -0
  430. package/dist/serialization/types/IndexedAsset.d.ts +1 -0
  431. package/dist/serialization/types/IndexedAsset.js +1 -0
  432. package/dist/serialization/types/IndexedAssetSummary.d.ts +14 -0
  433. package/dist/serialization/types/IndexedAssetSummary.js +45 -0
  434. package/dist/serialization/types/IndexedAssetSummaryIndex.d.ts +13 -0
  435. package/dist/serialization/types/IndexedAssetSummaryIndex.js +44 -0
  436. package/dist/serialization/types/IndexedAssetsListRequestDuration.d.ts +13 -0
  437. package/dist/serialization/types/IndexedAssetsListRequestDuration.js +44 -0
  438. package/dist/serialization/types/IndexedAssetsListRequestFps.d.ts +13 -0
  439. package/dist/serialization/types/IndexedAssetsListRequestFps.js +44 -0
  440. package/dist/serialization/types/IndexedAssetsListRequestHeight.d.ts +13 -0
  441. package/dist/serialization/types/IndexedAssetsListRequestHeight.js +44 -0
  442. package/dist/serialization/types/IndexedAssetsListRequestSize.d.ts +13 -0
  443. package/dist/serialization/types/IndexedAssetsListRequestSize.js +44 -0
  444. package/dist/serialization/types/IndexedAssetsListRequestWidth.d.ts +13 -0
  445. package/dist/serialization/types/IndexedAssetsListRequestWidth.js +44 -0
  446. package/dist/serialization/types/InternalEntity.d.ts +10 -2
  447. package/dist/serialization/types/InternalEntity.js +11 -5
  448. package/dist/serialization/types/SegmentDefinition.d.ts +19 -0
  449. package/dist/serialization/types/SegmentDefinition.js +50 -0
  450. package/dist/serialization/types/SegmentField.d.ts +18 -0
  451. package/dist/serialization/types/SegmentField.js +49 -0
  452. package/dist/serialization/types/SegmentFieldItems.d.ts +13 -0
  453. package/dist/serialization/types/SegmentFieldItems.js +44 -0
  454. package/dist/serialization/types/SegmentFieldItemsType.d.ts +10 -0
  455. package/dist/serialization/types/SegmentFieldItemsType.js +41 -0
  456. package/dist/serialization/types/SegmentFieldType.d.ts +10 -0
  457. package/dist/serialization/types/SegmentFieldType.js +41 -0
  458. package/dist/serialization/types/SmeMediaSource.d.ts +17 -0
  459. package/dist/serialization/types/SmeMediaSource.js +48 -0
  460. package/dist/serialization/types/SmeMediaSourceMediaType.d.ts +10 -0
  461. package/dist/serialization/types/{ResponseFormatType.js → SmeMediaSourceMediaType.js} +2 -2
  462. package/dist/serialization/types/SyncResponseFormat.d.ts +14 -0
  463. package/{serialization/types/ResponseFormat.js → dist/serialization/types/SyncResponseFormat.js} +4 -4
  464. package/dist/serialization/types/{ResponseFormatType.d.ts → SyncResponseFormatType.d.ts} +2 -2
  465. package/dist/serialization/types/SyncResponseFormatType.js +41 -0
  466. package/dist/serialization/types/TokenUsage.d.ts +2 -1
  467. package/dist/serialization/types/TokenUsage.js +2 -1
  468. package/dist/serialization/types/VideosListRequestDuration.d.ts +13 -0
  469. package/dist/serialization/types/VideosListRequestDuration.js +44 -0
  470. package/dist/serialization/types/VideosListRequestFps.d.ts +13 -0
  471. package/dist/serialization/types/VideosListRequestFps.js +44 -0
  472. package/dist/serialization/types/VideosListRequestHeight.d.ts +13 -0
  473. package/dist/serialization/types/VideosListRequestHeight.js +44 -0
  474. package/dist/serialization/types/VideosListRequestSize.d.ts +13 -0
  475. package/dist/serialization/types/VideosListRequestSize.js +44 -0
  476. package/dist/serialization/types/VideosListRequestWidth.d.ts +13 -0
  477. package/dist/serialization/types/VideosListRequestWidth.js +44 -0
  478. package/dist/serialization/types/index.d.ts +46 -2
  479. package/dist/serialization/types/index.js +46 -2
  480. package/dist/version.d.ts +1 -1
  481. package/dist/version.js +1 -1
  482. package/dist/wrapper/resources/IndexesVideosWrapper.js +29 -14
  483. package/package.json +1 -1
  484. package/reference.md +233 -68
  485. package/serialization/client/requests/AnalyzeRequest.d.ts +10 -5
  486. package/serialization/client/requests/AnalyzeRequest.js +10 -5
  487. package/serialization/client/requests/AnalyzeStreamRequest.d.ts +10 -5
  488. package/serialization/client/requests/AnalyzeStreamRequest.js +10 -5
  489. package/serialization/resources/analyzeAsync/resources/tasks/client/requests/CreateAsyncAnalyzeRequest.d.ts +15 -6
  490. package/serialization/resources/analyzeAsync/resources/tasks/client/requests/CreateAsyncAnalyzeRequest.js +15 -6
  491. package/serialization/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestAnalysisMode.d.ts +10 -0
  492. package/serialization/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestAnalysisMode.js +41 -0
  493. package/serialization/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestModelName.d.ts +10 -0
  494. package/serialization/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestModelName.js +41 -0
  495. package/serialization/resources/analyzeAsync/resources/tasks/types/TasksListRequestAnalysisMode.d.ts +10 -0
  496. package/serialization/resources/analyzeAsync/resources/tasks/types/TasksListRequestAnalysisMode.js +41 -0
  497. package/serialization/resources/analyzeAsync/resources/tasks/types/index.d.ts +3 -0
  498. package/serialization/resources/analyzeAsync/resources/tasks/types/index.js +3 -0
  499. package/serialization/resources/assets/types/AssetsListResponse.d.ts +2 -2
  500. package/serialization/resources/assets/types/AssetsListResponse.js +2 -2
  501. package/serialization/resources/entityCollections/resources/entities/types/EntitiesListByAssetResponse.d.ts +15 -0
  502. package/serialization/resources/entityCollections/resources/entities/types/EntitiesListByAssetResponse.js +46 -0
  503. package/serialization/resources/entityCollections/resources/entities/types/index.d.ts +1 -0
  504. package/serialization/resources/entityCollections/resources/entities/types/index.js +1 -0
  505. package/serialization/resources/indexes/resources/indexedAssets/types/IndexedAssetsCreateResponse.d.ts +1 -0
  506. package/serialization/resources/indexes/resources/indexedAssets/types/IndexedAssetsCreateResponse.js +1 -0
  507. package/serialization/resources/indexes/resources/indexedAssets/types/IndexedAssetsListByAssetResponse.d.ts +15 -0
  508. package/serialization/resources/indexes/resources/indexedAssets/types/IndexedAssetsListByAssetResponse.js +46 -0
  509. package/serialization/resources/indexes/resources/indexedAssets/types/index.d.ts +1 -0
  510. package/serialization/resources/indexes/resources/indexedAssets/types/index.js +1 -0
  511. package/serialization/resources/multipartUpload/client/requests/CreateAssetUploadRequest.d.ts +2 -0
  512. package/serialization/resources/multipartUpload/client/requests/CreateAssetUploadRequest.js +2 -0
  513. package/serialization/types/AnalyzePromptV2.d.ts +14 -0
  514. package/serialization/types/AnalyzePromptV2.js +45 -0
  515. package/serialization/types/AnalyzeRequestModelName.d.ts +10 -0
  516. package/serialization/types/AnalyzeRequestModelName.js +41 -0
  517. package/serialization/types/AnalyzeStreamRequestModelName.d.ts +10 -0
  518. package/serialization/types/AnalyzeStreamRequestModelName.js +41 -0
  519. package/serialization/types/AnalyzeTaskResponse.d.ts +5 -0
  520. package/serialization/types/AnalyzeTaskResponse.js +5 -0
  521. package/serialization/types/AnalyzeTaskResponseRequestParams.d.ts +24 -0
  522. package/serialization/types/AnalyzeTaskResponseRequestParams.js +55 -0
  523. package/serialization/types/AnalyzeTaskResponseRequestParamsAnalysisMode.d.ts +10 -0
  524. package/serialization/types/AnalyzeTaskResponseRequestParamsAnalysisMode.js +41 -0
  525. package/serialization/types/AnalyzeTaskResponseRequestParamsPromptV2.d.ts +14 -0
  526. package/serialization/types/AnalyzeTaskResponseRequestParamsPromptV2.js +45 -0
  527. package/serialization/types/AnalyzeTaskResponseRequestParamsPromptV2MediaSourcesItem.d.ts +15 -0
  528. package/serialization/types/AnalyzeTaskResponseRequestParamsPromptV2MediaSourcesItem.js +46 -0
  529. package/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormat.d.ts +16 -0
  530. package/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormat.js +47 -0
  531. package/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItem.d.ts +19 -0
  532. package/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItem.js +54 -0
  533. package/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItem.d.ts +17 -0
  534. package/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItem.js +48 -0
  535. package/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItemItems.d.ts +12 -0
  536. package/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItemItems.js +43 -0
  537. package/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemMediaSourcesItem.d.ts +15 -0
  538. package/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemMediaSourcesItem.js +46 -0
  539. package/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatType.d.ts +10 -0
  540. package/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatType.js +41 -0
  541. package/serialization/types/AnalyzeTaskResponseVideoSource.d.ts +19 -0
  542. package/serialization/types/AnalyzeTaskResponseVideoSource.js +50 -0
  543. package/serialization/types/AnalyzeTaskResponseVideoSourceSystemMetadata.d.ts +12 -0
  544. package/serialization/types/AnalyzeTaskResponseVideoSourceSystemMetadata.js +43 -0
  545. package/serialization/types/AnalyzeTaskResponseVideoSourceType.d.ts +10 -0
  546. package/serialization/types/AnalyzeTaskResponseVideoSourceType.js +41 -0
  547. package/serialization/types/AnalyzeTaskResult.d.ts +1 -2
  548. package/serialization/types/AnalyzeTaskResult.js +1 -2
  549. package/serialization/types/AnalyzeTimeRange.d.ts +13 -0
  550. package/serialization/types/AnalyzeTimeRange.js +44 -0
  551. package/serialization/types/Asset.d.ts +2 -0
  552. package/serialization/types/Asset.js +2 -0
  553. package/serialization/types/AssetDetail.d.ts +16 -0
  554. package/serialization/types/AssetDetail.js +49 -0
  555. package/serialization/types/AssetHls.d.ts +14 -0
  556. package/serialization/types/AssetHls.js +45 -0
  557. package/serialization/types/AssetHlsStatus.d.ts +10 -0
  558. package/serialization/types/AssetHlsStatus.js +41 -0
  559. package/serialization/types/AssetMethod.d.ts +1 -1
  560. package/serialization/types/AssetMethod.js +1 -1
  561. package/serialization/types/AssetThumbnail.d.ts +14 -0
  562. package/serialization/types/AssetThumbnail.js +45 -0
  563. package/serialization/types/AssetThumbnailStatus.d.ts +10 -0
  564. package/serialization/types/AssetThumbnailStatus.js +41 -0
  565. package/serialization/types/AsyncResponseFormat.d.ts +16 -0
  566. package/serialization/types/AsyncResponseFormat.js +47 -0
  567. package/serialization/types/AsyncResponseFormatType.d.ts +10 -0
  568. package/serialization/types/AsyncResponseFormatType.js +41 -0
  569. package/serialization/types/ConflictErrorBody.d.ts +14 -0
  570. package/serialization/types/ConflictErrorBody.js +45 -0
  571. package/serialization/types/Entity.d.ts +1 -0
  572. package/serialization/types/Entity.js +1 -0
  573. package/serialization/types/IndexedAsset.d.ts +1 -0
  574. package/serialization/types/IndexedAsset.js +1 -0
  575. package/serialization/types/IndexedAssetSummary.d.ts +14 -0
  576. package/serialization/types/IndexedAssetSummary.js +45 -0
  577. package/serialization/types/IndexedAssetSummaryIndex.d.ts +13 -0
  578. package/serialization/types/IndexedAssetSummaryIndex.js +44 -0
  579. package/serialization/types/IndexedAssetsListRequestDuration.d.ts +13 -0
  580. package/serialization/types/IndexedAssetsListRequestDuration.js +44 -0
  581. package/serialization/types/IndexedAssetsListRequestFps.d.ts +13 -0
  582. package/serialization/types/IndexedAssetsListRequestFps.js +44 -0
  583. package/serialization/types/IndexedAssetsListRequestHeight.d.ts +13 -0
  584. package/serialization/types/IndexedAssetsListRequestHeight.js +44 -0
  585. package/serialization/types/IndexedAssetsListRequestSize.d.ts +13 -0
  586. package/serialization/types/IndexedAssetsListRequestSize.js +44 -0
  587. package/serialization/types/IndexedAssetsListRequestWidth.d.ts +13 -0
  588. package/serialization/types/IndexedAssetsListRequestWidth.js +44 -0
  589. package/serialization/types/InternalEntity.d.ts +10 -2
  590. package/serialization/types/InternalEntity.js +11 -5
  591. package/serialization/types/SegmentDefinition.d.ts +19 -0
  592. package/serialization/types/SegmentDefinition.js +50 -0
  593. package/serialization/types/SegmentField.d.ts +18 -0
  594. package/serialization/types/SegmentField.js +49 -0
  595. package/serialization/types/SegmentFieldItems.d.ts +13 -0
  596. package/serialization/types/SegmentFieldItems.js +44 -0
  597. package/serialization/types/SegmentFieldItemsType.d.ts +10 -0
  598. package/serialization/types/SegmentFieldItemsType.js +41 -0
  599. package/serialization/types/SegmentFieldType.d.ts +10 -0
  600. package/serialization/types/SegmentFieldType.js +41 -0
  601. package/serialization/types/SmeMediaSource.d.ts +17 -0
  602. package/serialization/types/SmeMediaSource.js +48 -0
  603. package/serialization/types/SmeMediaSourceMediaType.d.ts +10 -0
  604. package/serialization/types/{ResponseFormatType.js → SmeMediaSourceMediaType.js} +2 -2
  605. package/serialization/types/SyncResponseFormat.d.ts +14 -0
  606. package/{dist/serialization/types/ResponseFormat.js → serialization/types/SyncResponseFormat.js} +4 -4
  607. package/serialization/types/{ResponseFormatType.d.ts → SyncResponseFormatType.d.ts} +2 -2
  608. package/serialization/types/SyncResponseFormatType.js +41 -0
  609. package/serialization/types/TokenUsage.d.ts +2 -1
  610. package/serialization/types/TokenUsage.js +2 -1
  611. package/serialization/types/VideosListRequestDuration.d.ts +13 -0
  612. package/serialization/types/VideosListRequestDuration.js +44 -0
  613. package/serialization/types/VideosListRequestFps.d.ts +13 -0
  614. package/serialization/types/VideosListRequestFps.js +44 -0
  615. package/serialization/types/VideosListRequestHeight.d.ts +13 -0
  616. package/serialization/types/VideosListRequestHeight.js +44 -0
  617. package/serialization/types/VideosListRequestSize.d.ts +13 -0
  618. package/serialization/types/VideosListRequestSize.js +44 -0
  619. package/serialization/types/VideosListRequestWidth.d.ts +13 -0
  620. package/serialization/types/VideosListRequestWidth.js +44 -0
  621. package/serialization/types/index.d.ts +46 -2
  622. package/serialization/types/index.js +46 -2
  623. package/version.d.ts +1 -1
  624. package/version.js +1 -1
  625. package/wrapper/resources/IndexesVideosWrapper.js +29 -14
  626. package/dist/serialization/types/ResponseFormat.d.ts +0 -14
  627. package/serialization/types/ResponseFormat.d.ts +0 -14
  628. /package/api/{types/ResponseFormat.js → resources/assets/client/requests/AssetsDeleteRequest.js} +0 -0
  629. /package/{dist/api/types/ResponseFormat.js → api/resources/entityCollections/resources/entities/client/requests/EntitiesListByAssetRequest.js} +0 -0
@@ -5,6 +5,6 @@
5
5
  * Provide the video via a unique identifier of an asset.
6
6
  */
7
7
  export interface One {
8
- /** The unique identifier of an asset from a [direct](/v1.3/api-reference/upload-content/direct-uploads) or [multipart](/v1.3/api-reference/upload-content/multipart-uploads) upload. */
8
+ /** The unique identifier of an asset from a [direct](/v1.3/api-reference/upload-content/direct-uploads) or [multipart](/v1.3/api-reference/upload-content/multipart-uploads) upload. The asset status must be `ready`. Use the [Retrieve an asset](/v1.3/api-reference/upload-content/direct-uploads/retrieve) method to check the status. */
9
9
  assetId: string;
10
10
  }
@@ -0,0 +1,28 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TwelvelabsApi from "../index";
5
+ /**
6
+ * Defines a type of segment to extract from the video.
7
+ */
8
+ export interface SegmentDefinition {
9
+ /** A unique identifier for this segment definition. */
10
+ id: string;
11
+ /** Describe what this type of segment looks like in the video. The model uses this text to identify matching segments. */
12
+ description: string;
13
+ /** Custom fields to extract for each segment instance. Maximum 20 fields. */
14
+ fields?: TwelvelabsApi.SegmentField[];
15
+ /** Reference images that help the model identify segments. Maximum 4 sources. */
16
+ mediaSources?: TwelvelabsApi.SmeMediaSource[];
17
+ /**
18
+ * Time windows that limit segment extraction to specific parts of the video. Only supported for Pegasus 1.5 with `analysis_mode` set to `time_based_metadata`.
19
+ *
20
+ * <Note title="Notes">
21
+ * - Each range must satisfy `end_time > start_time` with a minimum duration of `2` seconds. Both values must fall within the video duration.
22
+ * - Ranges within a single definition must not overlap. Touching boundaries are allowed (Example: `[0, 5]` and `[5, 10]`).
23
+ * - Mutually exclusive with the top-level `start_time` / `end_time` fields.
24
+ * - Mutually exclusive with `min_segment_duration` and `max_segment_duration`.
25
+ * </Note>
26
+ */
27
+ timeRanges?: TwelvelabsApi.AnalyzeTimeRange[];
28
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TwelvelabsApi from "../index";
5
+ /**
6
+ * A custom field to extract for each segment.
7
+ */
8
+ export interface SegmentField {
9
+ /** The name of the field. */
10
+ name: string;
11
+ /** The data type of the field. */
12
+ type: TwelvelabsApi.SegmentFieldType;
13
+ /** Instructions that guide the model on what this field should contain and how to extract it from the video. */
14
+ description: string;
15
+ /** Allowed values for this field. Maximum 50 values. */
16
+ enum?: string[];
17
+ /** Required when `type` is `array`. Specifies the type of array elements. */
18
+ items?: TwelvelabsApi.SegmentFieldItems;
19
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TwelvelabsApi from "../index";
5
+ /**
6
+ * Required when `type` is `array`. Specifies the type of array elements.
7
+ */
8
+ export interface SegmentFieldItems {
9
+ type: TwelvelabsApi.SegmentFieldItemsType;
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type SegmentFieldItemsType = "string" | "number" | "boolean" | "integer";
5
+ export declare const SegmentFieldItemsType: {
6
+ readonly String: "string";
7
+ readonly Number: "number";
8
+ readonly Boolean: "boolean";
9
+ readonly Integer: "integer";
10
+ };
@@ -0,0 +1,12 @@
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.SegmentFieldItemsType = void 0;
7
+ exports.SegmentFieldItemsType = {
8
+ String: "string",
9
+ Number: "number",
10
+ Boolean: "boolean",
11
+ Integer: "integer",
12
+ };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * The data type of the field.
6
+ */
7
+ export type SegmentFieldType = "string" | "boolean" | "number" | "integer" | "array";
8
+ export declare const SegmentFieldType: {
9
+ readonly String: "string";
10
+ readonly Boolean: "boolean";
11
+ readonly Number: "number";
12
+ readonly Integer: "integer";
13
+ readonly Array: "array";
14
+ };
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.SegmentFieldType = void 0;
7
+ exports.SegmentFieldType = {
8
+ String: "string",
9
+ Boolean: "boolean",
10
+ Number: "number",
11
+ Integer: "integer",
12
+ Array: "array",
13
+ };
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TwelvelabsApi from "../index";
5
+ /**
6
+ * A reference image that provides visual context for segment identification. Provide exactly one of `url`, `asset_id`, or `base64_string`.
7
+ */
8
+ export interface SmeMediaSource {
9
+ /** A descriptive name for this media source. */
10
+ name: string;
11
+ /** The media type. Only `image` is available. */
12
+ mediaType: TwelvelabsApi.SmeMediaSourceMediaType;
13
+ /** A publicly accessible HTTPS URL of the image. */
14
+ url?: string;
15
+ /** The unique identifier of an uploaded asset. */
16
+ assetId?: string;
17
+ /** Base64-encoded image data. The maximum size is 30MB. */
18
+ base64String?: string;
19
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * The media type. Only `image` is available.
6
+ */
7
+ export type SmeMediaSourceMediaType = "image";
8
+ export declare const SmeMediaSourceMediaType: {
9
+ readonly Image: "image";
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.SmeMediaSourceMediaType = void 0;
7
+ exports.SmeMediaSourceMediaType = {
8
+ Image: "image",
9
+ };
@@ -5,9 +5,9 @@ import * as TwelvelabsApi from "../index";
5
5
  /**
6
6
  * Specifies the format of the response. When you omit this parameter, the platform returns unstructured text.
7
7
  */
8
- export interface ResponseFormat {
8
+ export interface SyncResponseFormat {
9
9
  /** Set this parameter to "json_schema" to receive structured JSON responses. */
10
- type: TwelvelabsApi.ResponseFormatType;
10
+ type: TwelvelabsApi.SyncResponseFormatType;
11
11
  /**
12
12
  * Contains the JSON schema that defines the response structure. The schema must adhere to the [JSON Schema Draft 2020-12](https://json-schema.org/draft/2020-12) specification.
13
13
  *
@@ -24,23 +24,30 @@ export interface ResponseFormat {
24
24
  *
25
25
  * | Type | Supported keywords | Notes |
26
26
  * |------|-------------------|-------|
27
- * | `integer` | `maximum`, `exclusiveMaximum`, `minimum`, `exclusiveMinimum`. | - `maximum`: Sets the highest allowed value (inclusive).<br/>- `exclusiveMaximum`: Sets the highest allowed value (exclusive).<br/>-`minimum`: Sets the lowest allowed value (inclusive).<br/>- `exclusiveMinimum`: Sets the lowest allowed value (exclusive).<br/>These constraints are supported only for the `integer` type. |
27
+ * | `integer` | `maximum`, `exclusiveMaximum`, `minimum`, `exclusiveMinimum`. | - `maximum`: Sets the highest allowed value (inclusive).<br/>- `exclusiveMaximum`: Sets the highest allowed value (exclusive).<br/>- `minimum`: Sets the lowest allowed value (inclusive).<br/>- `exclusiveMinimum`: Sets the lowest allowed value (exclusive).<br/>These constraints are supported only for the `integer` type. |
28
28
  * | `string` | `pattern`, `format` | - `pattern`: A regular expression that the string must match.<br/>- `format`: Validates predefined formats. It accepts the following values: `uuid`, `date-time`, `date`, and `time`.<br/>See string limitations below. |
29
29
  * | `object` | `properties`, `required` | - `properties`: Defines object properties and their schemas. - `required`: Specifies mandatory properties.<br/>See object limitations below. |
30
- * | `array` | `items`, `minItems` | `minItems` accepts only `0` or `1` |
30
+ * | `array` | `items`, `minItems` | `minItems` accepts only `0` or `1`.<br/>See array limitations below. |
31
31
  *
32
32
  *
33
33
  * **String limitations**
34
34
  *
35
- * The platform validates strings using the `pattern` and `format` constraints only. When you include `minLength` or `maxLength` keywords in your schema, the platform returns an error: "String length constraints (minLength) are not supported."
35
+ * When you use the `string` type:
36
+ * - The platform validates strings using only `pattern` and `format`. Including `minLength` or `maxLength` causes a 422 error: "String length constraints (minLength) are not supported." Remove these keywords from your schema.
36
37
  *
37
38
  *
38
39
  * **Object limitations**
39
40
  *
40
41
  * When you use the `object` type:
41
- * - The platform always ignores the `additionalProperties` setting.
42
- * - The sequence of the properties is fixed.
43
- * - The first property should be required. If the first property is optional, the platform moves the first required property to the first position.
42
+ * - The platform does not support the `additionalProperties` keyword. Including it causes a 422 error. Remove it from your schema.
43
+ * - The platform returns properties in declaration order.
44
+ * - Make the first property required. If the first property is optional, the platform moves the first required property to the beginning.
45
+ *
46
+ *
47
+ * **Array limitations**
48
+ *
49
+ * When you use the `array` type:
50
+ * - The platform does not support `uniqueItems` or `maxItems`. Including either keyword causes a 422 error. Remove them from your schema.
44
51
  *
45
52
  *
46
53
  * **Constant and enumerated values**
@@ -70,6 +77,18 @@ export interface ResponseFormat {
70
77
  * For details, see the [JSON Schema documentation on $defs](https://json-schema.org/understanding-json-schema/structuring#defs).
71
78
  *
72
79
  *
80
+ * **Reserved property names (`start_time` / `end_time`)**
81
+ *
82
+ * For `pegasus1.5`, properties named `start_time` or `end_time` in your response schema receive special type handling. These are unrelated to the top-level `start_time` / `end_time` request parameters. The model outputs these values as floating-point seconds, and the platform converts them based on the declared type at any nesting depth (including inside array `items`):
83
+ *
84
+ * | Declared type | Platform behavior |
85
+ * |---------------|-------------------|
86
+ * | `number` | Passes the value through without conversion. |
87
+ * | `integer` | Rounds the value to the nearest integer before returning it. |
88
+ * | `string` (no `format`) | Converts the value to the `hh:mm:ss.fff` format. |
89
+ *
90
+ * All other property names in your schema remain unconstrained by these rules.
91
+ *
73
92
  *
74
93
  * **Response validation**
75
94
  *
@@ -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 });
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Set this parameter to "json_schema" to receive structured JSON responses.
6
6
  */
7
- export type ResponseFormatType = "json_schema";
8
- export declare const ResponseFormatType: {
7
+ export type SyncResponseFormatType = "json_schema";
8
+ export declare const SyncResponseFormatType: {
9
9
  readonly JsonSchema: "json_schema";
10
10
  };
@@ -3,7 +3,7 @@
3
3
  * This file was auto-generated by Fern from our API Definition.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ResponseFormatType = void 0;
7
- exports.ResponseFormatType = {
6
+ exports.SyncResponseFormatType = void 0;
7
+ exports.SyncResponseFormatType = {
8
8
  JsonSchema: "json_schema",
9
9
  };
@@ -6,5 +6,7 @@
6
6
  */
7
7
  export interface TokenUsage {
8
8
  /** The number of tokens in the generated text. */
9
- outputTokens?: number;
9
+ outputTokens: number;
10
+ /** The number of tokens consumed by the input (prompt and video). Omitted for Pegasus 1.5. */
11
+ inputTokens?: number;
10
12
  }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface VideosListRequestDuration {
5
+ gte?: number;
6
+ lte?: number;
7
+ }
@@ -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,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface VideosListRequestFps {
5
+ gte?: number;
6
+ lte?: number;
7
+ }
@@ -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,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface VideosListRequestHeight {
5
+ gte?: number;
6
+ lte?: number;
7
+ }
@@ -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,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface VideosListRequestSize {
5
+ gte?: number;
6
+ lte?: number;
7
+ }
@@ -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,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface VideosListRequestWidth {
5
+ gte?: number;
6
+ lte?: number;
7
+ }
@@ -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 });
@@ -1,7 +1,20 @@
1
1
  export * from "./BadRequestErrorBody";
2
+ export * from "./IndexedAssetsListRequestDuration";
3
+ export * from "./IndexedAssetsListRequestFps";
4
+ export * from "./IndexedAssetsListRequestWidth";
5
+ export * from "./IndexedAssetsListRequestHeight";
6
+ export * from "./IndexedAssetsListRequestSize";
2
7
  export * from "./NotFoundErrorBody";
3
8
  export * from "./InternalServerErrorBody";
9
+ export * from "./VideosListRequestDuration";
10
+ export * from "./VideosListRequestFps";
11
+ export * from "./VideosListRequestWidth";
12
+ export * from "./VideosListRequestHeight";
13
+ export * from "./VideosListRequestSize";
14
+ export * from "./ConflictErrorBody";
4
15
  export * from "./ForbiddenErrorBody";
16
+ export * from "./AnalyzeStreamRequestModelName";
17
+ export * from "./AnalyzeRequestModelName";
5
18
  export * from "./Url";
6
19
  export * from "./One";
7
20
  export * from "./Two";
@@ -115,12 +128,36 @@ export * from "./StreamEndResponseMetadata";
115
128
  export * from "./StreamEndResponse";
116
129
  export * from "./NonStreamAnalyzeResponse";
117
130
  export * from "./TokenUsage";
118
- export * from "./ResponseFormatType";
119
- export * from "./ResponseFormat";
131
+ export * from "./AsyncResponseFormatType";
132
+ export * from "./AsyncResponseFormat";
133
+ export * from "./SyncResponseFormatType";
134
+ export * from "./SyncResponseFormat";
135
+ export * from "./SegmentDefinition";
136
+ export * from "./AnalyzePromptV2";
137
+ export * from "./AnalyzeTimeRange";
138
+ export * from "./SegmentFieldType";
139
+ export * from "./SegmentFieldItemsType";
140
+ export * from "./SegmentFieldItems";
141
+ export * from "./SegmentField";
142
+ export * from "./SmeMediaSourceMediaType";
143
+ export * from "./SmeMediaSource";
120
144
  export * from "./FinishReason";
121
145
  export * from "./VideoContext";
122
146
  export * from "./AnalyzeTaskStatus";
123
147
  export * from "./CreateAnalyzeTaskResponse";
148
+ export * from "./AnalyzeTaskResponseVideoSourceType";
149
+ export * from "./AnalyzeTaskResponseVideoSourceSystemMetadata";
150
+ export * from "./AnalyzeTaskResponseVideoSource";
151
+ export * from "./AnalyzeTaskResponseRequestParamsAnalysisMode";
152
+ export * from "./AnalyzeTaskResponseRequestParamsPromptV2MediaSourcesItem";
153
+ export * from "./AnalyzeTaskResponseRequestParamsPromptV2";
154
+ export * from "./AnalyzeTaskResponseRequestParamsResponseFormatType";
155
+ export * from "./AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItemItems";
156
+ export * from "./AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItem";
157
+ export * from "./AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemMediaSourcesItem";
158
+ export * from "./AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItem";
159
+ export * from "./AnalyzeTaskResponseRequestParamsResponseFormat";
160
+ export * from "./AnalyzeTaskResponseRequestParams";
124
161
  export * from "./AnalyzeTaskResponse";
125
162
  export * from "./AnalyzeTaskResultUsage";
126
163
  export * from "./AnalyzeTaskResult";
@@ -129,6 +166,13 @@ export * from "./AnalyzeTaskWebhookInfo";
129
166
  export * from "./AssetMethod";
130
167
  export * from "./AssetStatus";
131
168
  export * from "./Asset";
169
+ export * from "./AssetDetail";
170
+ export * from "./AssetHlsStatus";
171
+ export * from "./AssetHls";
172
+ export * from "./AssetThumbnailStatus";
173
+ export * from "./AssetThumbnail";
174
+ export * from "./IndexedAssetSummaryIndex";
175
+ export * from "./IndexedAssetSummary";
132
176
  export * from "./CreateAssetUploadResponse";
133
177
  export * from "./CompletedChunkProofType";
134
178
  export * from "./CompletedChunk";
@@ -15,9 +15,22 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./BadRequestErrorBody"), exports);
18
+ __exportStar(require("./IndexedAssetsListRequestDuration"), exports);
19
+ __exportStar(require("./IndexedAssetsListRequestFps"), exports);
20
+ __exportStar(require("./IndexedAssetsListRequestWidth"), exports);
21
+ __exportStar(require("./IndexedAssetsListRequestHeight"), exports);
22
+ __exportStar(require("./IndexedAssetsListRequestSize"), exports);
18
23
  __exportStar(require("./NotFoundErrorBody"), exports);
19
24
  __exportStar(require("./InternalServerErrorBody"), exports);
25
+ __exportStar(require("./VideosListRequestDuration"), exports);
26
+ __exportStar(require("./VideosListRequestFps"), exports);
27
+ __exportStar(require("./VideosListRequestWidth"), exports);
28
+ __exportStar(require("./VideosListRequestHeight"), exports);
29
+ __exportStar(require("./VideosListRequestSize"), exports);
30
+ __exportStar(require("./ConflictErrorBody"), exports);
20
31
  __exportStar(require("./ForbiddenErrorBody"), exports);
32
+ __exportStar(require("./AnalyzeStreamRequestModelName"), exports);
33
+ __exportStar(require("./AnalyzeRequestModelName"), exports);
21
34
  __exportStar(require("./Url"), exports);
22
35
  __exportStar(require("./One"), exports);
23
36
  __exportStar(require("./Two"), exports);
@@ -131,12 +144,36 @@ __exportStar(require("./StreamEndResponseMetadata"), exports);
131
144
  __exportStar(require("./StreamEndResponse"), exports);
132
145
  __exportStar(require("./NonStreamAnalyzeResponse"), exports);
133
146
  __exportStar(require("./TokenUsage"), exports);
134
- __exportStar(require("./ResponseFormatType"), exports);
135
- __exportStar(require("./ResponseFormat"), exports);
147
+ __exportStar(require("./AsyncResponseFormatType"), exports);
148
+ __exportStar(require("./AsyncResponseFormat"), exports);
149
+ __exportStar(require("./SyncResponseFormatType"), exports);
150
+ __exportStar(require("./SyncResponseFormat"), exports);
151
+ __exportStar(require("./SegmentDefinition"), exports);
152
+ __exportStar(require("./AnalyzePromptV2"), exports);
153
+ __exportStar(require("./AnalyzeTimeRange"), exports);
154
+ __exportStar(require("./SegmentFieldType"), exports);
155
+ __exportStar(require("./SegmentFieldItemsType"), exports);
156
+ __exportStar(require("./SegmentFieldItems"), exports);
157
+ __exportStar(require("./SegmentField"), exports);
158
+ __exportStar(require("./SmeMediaSourceMediaType"), exports);
159
+ __exportStar(require("./SmeMediaSource"), exports);
136
160
  __exportStar(require("./FinishReason"), exports);
137
161
  __exportStar(require("./VideoContext"), exports);
138
162
  __exportStar(require("./AnalyzeTaskStatus"), exports);
139
163
  __exportStar(require("./CreateAnalyzeTaskResponse"), exports);
164
+ __exportStar(require("./AnalyzeTaskResponseVideoSourceType"), exports);
165
+ __exportStar(require("./AnalyzeTaskResponseVideoSourceSystemMetadata"), exports);
166
+ __exportStar(require("./AnalyzeTaskResponseVideoSource"), exports);
167
+ __exportStar(require("./AnalyzeTaskResponseRequestParamsAnalysisMode"), exports);
168
+ __exportStar(require("./AnalyzeTaskResponseRequestParamsPromptV2MediaSourcesItem"), exports);
169
+ __exportStar(require("./AnalyzeTaskResponseRequestParamsPromptV2"), exports);
170
+ __exportStar(require("./AnalyzeTaskResponseRequestParamsResponseFormatType"), exports);
171
+ __exportStar(require("./AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItemItems"), exports);
172
+ __exportStar(require("./AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItem"), exports);
173
+ __exportStar(require("./AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemMediaSourcesItem"), exports);
174
+ __exportStar(require("./AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItem"), exports);
175
+ __exportStar(require("./AnalyzeTaskResponseRequestParamsResponseFormat"), exports);
176
+ __exportStar(require("./AnalyzeTaskResponseRequestParams"), exports);
140
177
  __exportStar(require("./AnalyzeTaskResponse"), exports);
141
178
  __exportStar(require("./AnalyzeTaskResultUsage"), exports);
142
179
  __exportStar(require("./AnalyzeTaskResult"), exports);
@@ -145,6 +182,13 @@ __exportStar(require("./AnalyzeTaskWebhookInfo"), exports);
145
182
  __exportStar(require("./AssetMethod"), exports);
146
183
  __exportStar(require("./AssetStatus"), exports);
147
184
  __exportStar(require("./Asset"), exports);
185
+ __exportStar(require("./AssetDetail"), exports);
186
+ __exportStar(require("./AssetHlsStatus"), exports);
187
+ __exportStar(require("./AssetHls"), exports);
188
+ __exportStar(require("./AssetThumbnailStatus"), exports);
189
+ __exportStar(require("./AssetThumbnail"), exports);
190
+ __exportStar(require("./IndexedAssetSummaryIndex"), exports);
191
+ __exportStar(require("./IndexedAssetSummary"), exports);
148
192
  __exportStar(require("./CreateAssetUploadResponse"), exports);
149
193
  __exportStar(require("./CompletedChunkProofType"), exports);
150
194
  __exportStar(require("./CompletedChunk"), exports);
package/dist/Client.d.ts CHANGED
@@ -50,7 +50,7 @@ export declare class TwelvelabsApiClient {
50
50
  get search(): Search;
51
51
  get analyzeAsync(): AnalyzeAsync;
52
52
  /**
53
- * This method synchronously analyzes your videos and generates fully customizable text based on your prompts.
53
+ * This method analyzes your videos and returns the results directly in the response. It generates text based on your prompts and supports both Pegasus 1.2 and Pegasus 1.5 for general analysis (prompt-based text generation).
54
54
  *
55
55
  * <Accordion title="Input requirements">
56
56
  * - Minimum duration: 4 seconds
@@ -62,20 +62,21 @@ export declare class TwelvelabsApiClient {
62
62
  *
63
63
  * **When to use this method**:
64
64
  * - Analyze videos up to 1 hour
65
- * - Retrieve immediate results without waiting for asynchronous processing
66
- * - Stream text fragments in real-time for immediate processing and feedback
65
+ * - Retrieve immediate results without polling for task completion
66
+ * - Stream text fragments in real time for immediate processing and feedback
67
67
  *
68
68
  * **Do not use this method for**:
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
+ * - 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.
70
71
  *
71
- * <Note title="Notes">
72
- * - This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page.
72
+ * <Note title="Note">
73
+ * This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page.
73
74
  * </Note>
74
75
  */
75
76
  analyzeStream(request: TwelvelabsApi.AnalyzeStreamRequest, requestOptions?: TwelvelabsApiClient.RequestOptions): core.HttpResponsePromise<core.Stream<TwelvelabsApi.StreamAnalyzeResponse>>;
76
77
  private __analyzeStream;
77
78
  /**
78
- * This method synchronously analyzes your videos and generates fully customizable text based on your prompts.
79
+ * This method analyzes your videos and returns the results directly in the response. It generates text based on your prompts and supports both Pegasus 1.2 and Pegasus 1.5 for general analysis (prompt-based text generation).
79
80
  *
80
81
  * <Accordion title="Input requirements">
81
82
  * - Minimum duration: 4 seconds
@@ -87,49 +88,26 @@ export declare class TwelvelabsApiClient {
87
88
  *
88
89
  * **When to use this method**:
89
90
  * - Analyze videos up to 1 hour
90
- * - Retrieve immediate results without waiting for asynchronous processing
91
- * - Stream text fragments in real-time for immediate processing and feedback
91
+ * - Retrieve immediate results without polling for task completion
92
+ * - Stream text fragments in real time for immediate processing and feedback
92
93
  *
93
94
  * **Do not use this method for**:
94
95
  * - 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
+ * - 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.
95
97
  *
96
- * <Note title="Notes">
97
- * - This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page.
98
+ * <Note title="Note">
99
+ * This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page.
98
100
  * </Note>
99
101
  *
100
102
  * @param {TwelvelabsApi.AnalyzeRequest} request
101
103
  * @param {TwelvelabsApiClient.RequestOptions} requestOptions - Request-specific configuration.
102
104
  *
103
105
  * @throws {@link TwelvelabsApi.BadRequestError}
106
+ * @throws {@link TwelvelabsApi.NotFoundError}
104
107
  * @throws {@link TwelvelabsApi.TooManyRequestsError}
105
108
  *
106
109
  * @example
107
- * await client.analyze({
108
- * videoId: "6298d673f1090f1100476d4c",
109
- * prompt: "I want to generate a description for my video with the following format - Title of the video, followed by a summary in 2-3 sentences, highlighting the main topic, key events, and concluding remarks.",
110
- * temperature: 0.2,
111
- * responseFormat: {
112
- * type: "json_schema",
113
- * jsonSchema: {
114
- * "type": "object",
115
- * "properties": {
116
- * "title": {
117
- * "type": "string"
118
- * },
119
- * "summary": {
120
- * "type": "string"
121
- * },
122
- * "keywords": {
123
- * "type": "array",
124
- * "items": {
125
- * "type": "string"
126
- * }
127
- * }
128
- * }
129
- * }
130
- * },
131
- * maxTokens: 2000
132
- * })
110
+ * await client.analyze({})
133
111
  */
134
112
  analyze(request: TwelvelabsApi.AnalyzeRequest, requestOptions?: TwelvelabsApiClient.RequestOptions): core.HttpResponsePromise<TwelvelabsApi.NonStreamAnalyzeResponse>;
135
113
  private __analyze;