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