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