twelvelabs-js 1.2.2 → 1.2.3
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/Client.d.ts +2 -0
- package/Client.js +4 -2
- package/README.md +20 -1
- package/api/client/requests/AnalyzeRequest.d.ts +1 -1
- package/api/client/requests/AnalyzeStreamRequest.d.ts +1 -1
- package/api/errors/ConflictError.d.ts +1 -2
- package/api/errors/index.d.ts +1 -1
- package/api/errors/index.js +1 -1
- package/api/resources/analyzeAsync/resources/tasks/client/Client.d.ts +39 -2
- package/api/resources/analyzeAsync/resources/tasks/client/Client.js +54 -13
- package/api/resources/analyzeAsync/resources/tasks/client/requests/CreateAsyncAnalyzeRequest.d.ts +74 -3
- package/api/resources/analyzeAsync/resources/tasks/client/requests/TasksListRequest.d.ts +26 -1
- package/api/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestAnalysisMode.d.ts +10 -0
- package/api/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestAnalysisMode.js +9 -0
- package/api/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestModelName.d.ts +13 -0
- package/api/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestModelName.js +10 -0
- package/api/resources/analyzeAsync/resources/tasks/types/TasksListRequestAnalysisMode.d.ts +7 -0
- package/api/resources/analyzeAsync/resources/tasks/types/TasksListRequestAnalysisMode.js +9 -0
- package/api/resources/analyzeAsync/resources/tasks/types/index.d.ts +3 -0
- package/api/resources/analyzeAsync/resources/tasks/types/index.js +3 -0
- package/api/resources/assets/client/Client.d.ts +17 -6
- package/api/resources/assets/client/Client.js +41 -13
- package/api/resources/assets/client/requests/AssetsCreateRequest.d.ts +13 -1
- package/api/resources/assets/client/requests/AssetsDeleteRequest.d.ts +17 -0
- package/api/resources/assets/client/requests/AssetsListRequest.d.ts +6 -1
- package/api/resources/assets/client/requests/index.d.ts +1 -0
- package/api/resources/assets/types/AssetsListResponse.d.ts +1 -1
- package/api/resources/embed/client/Client.js +1 -1
- package/api/resources/embed/resources/tasks/client/Client.d.ts +1 -1
- package/api/resources/embed/resources/tasks/client/Client.js +5 -5
- package/api/resources/embed/resources/v2/client/Client.js +1 -1
- package/api/resources/embed/resources/v2/resources/tasks/client/Client.d.ts +12 -2
- package/api/resources/embed/resources/v2/resources/tasks/client/Client.js +15 -5
- package/api/resources/entityCollections/client/Client.js +5 -5
- package/api/resources/entityCollections/resources/entities/client/Client.d.ts +16 -0
- package/api/resources/entityCollections/resources/entities/client/Client.js +100 -9
- package/api/resources/entityCollections/resources/entities/client/requests/EntitiesListByAssetRequest.d.ts +25 -0
- package/api/resources/entityCollections/resources/entities/client/requests/index.d.ts +1 -0
- package/api/resources/entityCollections/resources/entities/types/EntitiesListByAssetResponse.d.ts +9 -0
- package/api/resources/entityCollections/resources/entities/types/EntitiesListByAssetResponse.js +5 -0
- package/api/resources/entityCollections/resources/entities/types/index.d.ts +1 -0
- package/api/resources/entityCollections/resources/entities/types/index.js +1 -0
- package/api/resources/indexes/client/Client.js +5 -5
- package/api/resources/indexes/resources/indexedAssets/client/Client.d.ts +16 -5
- package/api/resources/indexes/resources/indexedAssets/client/Client.js +126 -15
- package/api/resources/indexes/resources/indexedAssets/client/requests/IndexedAssetsCreateRequest.d.ts +1 -1
- package/api/resources/indexes/resources/indexedAssets/client/requests/IndexedAssetsListByAssetRequest.d.ts +25 -0
- package/api/resources/indexes/resources/indexedAssets/client/requests/IndexedAssetsListByAssetRequest.js +5 -0
- package/api/resources/indexes/resources/indexedAssets/client/requests/IndexedAssetsListRequest.d.ts +15 -15
- package/api/resources/indexes/resources/indexedAssets/client/requests/index.d.ts +1 -0
- package/api/resources/indexes/resources/indexedAssets/types/IndexedAssetsCreateResponse.d.ts +2 -0
- package/api/resources/indexes/resources/indexedAssets/types/IndexedAssetsListByAssetResponse.d.ts +9 -0
- package/api/resources/indexes/resources/indexedAssets/types/IndexedAssetsListByAssetResponse.js +5 -0
- package/api/resources/indexes/resources/indexedAssets/types/index.d.ts +1 -0
- package/api/resources/indexes/resources/indexedAssets/types/index.js +1 -0
- package/api/resources/indexes/resources/videos/client/Client.d.ts +0 -5
- package/api/resources/indexes/resources/videos/client/Client.js +35 -15
- package/api/resources/indexes/resources/videos/client/requests/VideosListRequest.d.ts +15 -15
- package/api/resources/multipartUpload/client/Client.d.ts +2 -2
- package/api/resources/multipartUpload/client/Client.js +7 -7
- package/api/resources/multipartUpload/client/requests/CreateAssetUploadRequest.d.ts +12 -0
- package/api/resources/search/client/Client.js +2 -2
- package/api/resources/tasks/client/Client.js +4 -4
- package/api/resources/tasks/resources/transfers/client/Client.js +3 -3
- package/api/types/AnalyzeTaskResponse.d.ts +4 -0
- package/api/types/AnalyzeTaskResponseRequestParams.d.ts +21 -0
- package/api/types/AnalyzeTaskResponseRequestParams.js +5 -0
- package/api/types/AnalyzeTaskResponseRequestParamsAnalysisMode.d.ts +11 -0
- package/api/types/AnalyzeTaskResponseRequestParamsAnalysisMode.js +10 -0
- package/api/types/AnalyzeTaskResponseRequestParamsResponseFormat.d.ts +11 -0
- package/api/types/AnalyzeTaskResponseRequestParamsResponseFormat.js +5 -0
- package/api/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItem.d.ts +10 -0
- package/api/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItem.js +5 -0
- package/api/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItem.d.ts +11 -0
- package/api/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItem.js +5 -0
- package/api/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItemItems.d.ts +6 -0
- package/api/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItemItems.js +5 -0
- package/api/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemMediaSourcesItem.d.ts +9 -0
- package/api/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemMediaSourcesItem.js +5 -0
- package/api/types/AnalyzeTaskResponseRequestParamsResponseFormatType.d.ts +8 -0
- package/api/types/AnalyzeTaskResponseRequestParamsResponseFormatType.js +10 -0
- package/api/types/AnalyzeTaskResponseVideoSource.d.ts +19 -0
- package/api/types/AnalyzeTaskResponseVideoSource.js +5 -0
- package/api/types/AnalyzeTaskResponseVideoSourceSystemMetadata.d.ts +10 -0
- package/api/types/AnalyzeTaskResponseVideoSourceSystemMetadata.js +5 -0
- package/api/types/AnalyzeTaskResponseVideoSourceType.d.ts +13 -0
- package/api/types/AnalyzeTaskResponseVideoSourceType.js +12 -0
- package/api/types/AnalyzeTaskResult.d.ts +10 -1
- package/api/types/Asset.d.ts +5 -0
- package/api/types/AssetDetail.d.ts +11 -0
- package/api/types/AssetDetail.js +5 -0
- package/api/types/AssetHls.d.ts +21 -0
- package/api/types/AssetHls.js +5 -0
- package/api/types/AssetHlsStatus.d.ts +19 -0
- package/api/types/AssetHlsStatus.js +12 -0
- package/api/types/AssetMethod.d.ts +3 -1
- package/api/types/AssetMethod.js +1 -0
- package/api/types/AssetThumbnail.d.ts +21 -0
- package/api/types/AssetThumbnail.js +5 -0
- package/api/types/AssetThumbnailStatus.d.ts +19 -0
- package/api/types/AssetThumbnailStatus.js +12 -0
- package/api/types/AsyncResponseFormat.d.ts +89 -0
- package/api/types/AsyncResponseFormat.js +5 -0
- package/api/types/AsyncResponseFormatType.d.ts +13 -0
- package/api/types/AsyncResponseFormatType.js +10 -0
- package/api/types/ConflictErrorBody.d.ts +11 -0
- package/api/types/ConflictErrorBody.js +5 -0
- package/api/types/Entity.d.ts +2 -0
- package/api/types/IndexedAsset.d.ts +2 -0
- package/api/types/IndexedAssetSummary.d.ts +12 -0
- package/api/types/IndexedAssetSummary.js +5 -0
- package/api/types/IndexedAssetSummaryIndex.d.ts +12 -0
- package/api/types/IndexedAssetSummaryIndex.js +5 -0
- package/api/types/IndexedAssetsListRequestDuration.d.ts +7 -0
- package/api/types/IndexedAssetsListRequestDuration.js +5 -0
- package/api/types/IndexedAssetsListRequestFps.d.ts +7 -0
- package/api/types/IndexedAssetsListRequestFps.js +5 -0
- package/api/types/IndexedAssetsListRequestHeight.d.ts +7 -0
- package/api/types/IndexedAssetsListRequestHeight.js +5 -0
- package/api/types/IndexedAssetsListRequestSize.d.ts +7 -0
- package/api/types/IndexedAssetsListRequestSize.js +5 -0
- package/api/types/IndexedAssetsListRequestWidth.d.ts +7 -0
- package/api/types/IndexedAssetsListRequestWidth.js +5 -0
- package/api/types/InternalEntity.d.ts +23 -1
- package/api/types/MediaSource.d.ts +1 -1
- package/api/types/One.d.ts +1 -1
- package/api/types/SegmentDefinition.d.ts +17 -0
- package/api/types/SegmentDefinition.js +5 -0
- package/api/types/SegmentField.d.ts +19 -0
- package/api/types/SegmentField.js +5 -0
- package/api/types/SegmentFieldItems.d.ts +10 -0
- package/api/types/SegmentFieldItems.js +5 -0
- package/api/types/SegmentFieldItemsType.d.ts +10 -0
- package/api/types/SegmentFieldItemsType.js +12 -0
- package/api/types/SegmentFieldType.d.ts +14 -0
- package/api/types/SegmentFieldType.js +13 -0
- package/api/types/SmeMediaSource.d.ts +19 -0
- package/api/types/SmeMediaSource.js +5 -0
- package/api/types/SmeMediaSourceMediaType.d.ts +10 -0
- package/api/types/SmeMediaSourceMediaType.js +9 -0
- package/api/types/{ResponseFormat.d.ts → SyncResponseFormat.d.ts} +2 -2
- package/api/types/SyncResponseFormat.js +5 -0
- package/{dist/api/types/ResponseFormatType.d.ts → api/types/SyncResponseFormatType.d.ts} +2 -2
- package/{dist/api/types/ResponseFormatType.js → api/types/SyncResponseFormatType.js} +2 -2
- package/api/types/VideosListRequestDuration.d.ts +7 -0
- package/api/types/VideosListRequestDuration.js +5 -0
- package/api/types/VideosListRequestFps.d.ts +7 -0
- package/api/types/VideosListRequestFps.js +5 -0
- package/api/types/VideosListRequestHeight.d.ts +7 -0
- package/api/types/VideosListRequestHeight.js +5 -0
- package/api/types/VideosListRequestSize.d.ts +7 -0
- package/api/types/VideosListRequestSize.js +5 -0
- package/api/types/VideosListRequestWidth.d.ts +7 -0
- package/api/types/VideosListRequestWidth.js +5 -0
- package/api/types/index.d.ts +40 -2
- package/api/types/index.js +40 -2
- package/dist/Client.d.ts +2 -0
- package/dist/Client.js +4 -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/ConflictError.d.ts +1 -2
- package/dist/api/errors/index.d.ts +1 -1
- package/dist/api/errors/index.js +1 -1
- package/dist/api/resources/analyzeAsync/resources/tasks/client/Client.d.ts +39 -2
- package/dist/api/resources/analyzeAsync/resources/tasks/client/Client.js +54 -13
- package/dist/api/resources/analyzeAsync/resources/tasks/client/requests/CreateAsyncAnalyzeRequest.d.ts +74 -3
- package/dist/api/resources/analyzeAsync/resources/tasks/client/requests/TasksListRequest.d.ts +26 -1
- package/dist/api/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestAnalysisMode.d.ts +10 -0
- package/dist/api/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestAnalysisMode.js +9 -0
- package/dist/api/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestModelName.d.ts +13 -0
- package/dist/api/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestModelName.js +10 -0
- package/dist/api/resources/analyzeAsync/resources/tasks/types/TasksListRequestAnalysisMode.d.ts +7 -0
- package/dist/api/resources/analyzeAsync/resources/tasks/types/TasksListRequestAnalysisMode.js +9 -0
- package/dist/api/resources/analyzeAsync/resources/tasks/types/index.d.ts +3 -0
- package/dist/api/resources/analyzeAsync/resources/tasks/types/index.js +3 -0
- package/dist/api/resources/assets/client/Client.d.ts +17 -6
- package/dist/api/resources/assets/client/Client.js +41 -13
- package/dist/api/resources/assets/client/requests/AssetsCreateRequest.d.ts +13 -1
- package/dist/api/resources/assets/client/requests/AssetsDeleteRequest.d.ts +17 -0
- package/dist/api/resources/assets/client/requests/AssetsDeleteRequest.js +5 -0
- package/dist/api/resources/assets/client/requests/AssetsListRequest.d.ts +6 -1
- package/dist/api/resources/assets/client/requests/index.d.ts +1 -0
- package/dist/api/resources/assets/types/AssetsListResponse.d.ts +1 -1
- package/dist/api/resources/embed/client/Client.js +1 -1
- package/dist/api/resources/embed/resources/tasks/client/Client.d.ts +1 -1
- package/dist/api/resources/embed/resources/tasks/client/Client.js +5 -5
- 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 +12 -2
- package/dist/api/resources/embed/resources/v2/resources/tasks/client/Client.js +15 -5
- package/dist/api/resources/entityCollections/client/Client.js +5 -5
- package/dist/api/resources/entityCollections/resources/entities/client/Client.d.ts +16 -0
- package/dist/api/resources/entityCollections/resources/entities/client/Client.js +100 -9
- package/dist/api/resources/entityCollections/resources/entities/client/requests/EntitiesListByAssetRequest.d.ts +25 -0
- package/dist/api/resources/entityCollections/resources/entities/client/requests/EntitiesListByAssetRequest.js +5 -0
- package/dist/api/resources/entityCollections/resources/entities/client/requests/index.d.ts +1 -0
- package/dist/api/resources/entityCollections/resources/entities/types/EntitiesListByAssetResponse.d.ts +9 -0
- package/dist/api/resources/entityCollections/resources/entities/types/EntitiesListByAssetResponse.js +5 -0
- package/dist/api/resources/entityCollections/resources/entities/types/index.d.ts +1 -0
- package/dist/api/resources/entityCollections/resources/entities/types/index.js +1 -0
- package/dist/api/resources/indexes/client/Client.js +5 -5
- package/dist/api/resources/indexes/resources/indexedAssets/client/Client.d.ts +16 -5
- package/dist/api/resources/indexes/resources/indexedAssets/client/Client.js +126 -15
- package/dist/api/resources/indexes/resources/indexedAssets/client/requests/IndexedAssetsCreateRequest.d.ts +1 -1
- package/dist/api/resources/indexes/resources/indexedAssets/client/requests/IndexedAssetsListByAssetRequest.d.ts +25 -0
- package/dist/api/resources/indexes/resources/indexedAssets/client/requests/IndexedAssetsListByAssetRequest.js +5 -0
- package/dist/api/resources/indexes/resources/indexedAssets/client/requests/IndexedAssetsListRequest.d.ts +15 -15
- package/dist/api/resources/indexes/resources/indexedAssets/client/requests/index.d.ts +1 -0
- package/dist/api/resources/indexes/resources/indexedAssets/types/IndexedAssetsCreateResponse.d.ts +2 -0
- package/dist/api/resources/indexes/resources/indexedAssets/types/IndexedAssetsListByAssetResponse.d.ts +9 -0
- package/dist/api/resources/indexes/resources/indexedAssets/types/IndexedAssetsListByAssetResponse.js +5 -0
- package/dist/api/resources/indexes/resources/indexedAssets/types/index.d.ts +1 -0
- package/dist/api/resources/indexes/resources/indexedAssets/types/index.js +1 -0
- package/dist/api/resources/indexes/resources/videos/client/Client.d.ts +0 -5
- package/dist/api/resources/indexes/resources/videos/client/Client.js +35 -15
- package/dist/api/resources/indexes/resources/videos/client/requests/VideosListRequest.d.ts +15 -15
- 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/multipartUpload/client/requests/CreateAssetUploadRequest.d.ts +12 -0
- package/dist/api/resources/search/client/Client.js +2 -2
- package/dist/api/resources/tasks/client/Client.js +4 -4
- package/dist/api/resources/tasks/resources/transfers/client/Client.js +3 -3
- package/dist/api/types/AnalyzeTaskResponse.d.ts +4 -0
- package/dist/api/types/AnalyzeTaskResponseRequestParams.d.ts +21 -0
- package/dist/api/types/AnalyzeTaskResponseRequestParams.js +5 -0
- package/dist/api/types/AnalyzeTaskResponseRequestParamsAnalysisMode.d.ts +11 -0
- package/dist/api/types/AnalyzeTaskResponseRequestParamsAnalysisMode.js +10 -0
- package/dist/api/types/AnalyzeTaskResponseRequestParamsResponseFormat.d.ts +11 -0
- package/dist/api/types/AnalyzeTaskResponseRequestParamsResponseFormat.js +5 -0
- package/dist/api/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItem.d.ts +10 -0
- package/dist/api/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItem.js +5 -0
- package/dist/api/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItem.d.ts +11 -0
- package/dist/api/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItem.js +5 -0
- package/dist/api/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItemItems.d.ts +6 -0
- package/dist/api/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItemItems.js +5 -0
- package/dist/api/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemMediaSourcesItem.d.ts +9 -0
- package/dist/api/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemMediaSourcesItem.js +5 -0
- package/dist/api/types/AnalyzeTaskResponseRequestParamsResponseFormatType.d.ts +8 -0
- package/dist/api/types/AnalyzeTaskResponseRequestParamsResponseFormatType.js +10 -0
- package/dist/api/types/AnalyzeTaskResponseVideoSource.d.ts +19 -0
- package/dist/api/types/AnalyzeTaskResponseVideoSource.js +5 -0
- package/dist/api/types/AnalyzeTaskResponseVideoSourceSystemMetadata.d.ts +10 -0
- package/dist/api/types/AnalyzeTaskResponseVideoSourceSystemMetadata.js +5 -0
- package/dist/api/types/AnalyzeTaskResponseVideoSourceType.d.ts +13 -0
- package/dist/api/types/AnalyzeTaskResponseVideoSourceType.js +12 -0
- package/dist/api/types/AnalyzeTaskResult.d.ts +10 -1
- package/dist/api/types/Asset.d.ts +5 -0
- package/dist/api/types/AssetDetail.d.ts +11 -0
- package/dist/api/types/AssetDetail.js +5 -0
- package/dist/api/types/AssetHls.d.ts +21 -0
- package/dist/api/types/AssetHls.js +5 -0
- package/dist/api/types/AssetHlsStatus.d.ts +19 -0
- package/dist/api/types/AssetHlsStatus.js +12 -0
- package/dist/api/types/AssetMethod.d.ts +3 -1
- package/dist/api/types/AssetMethod.js +1 -0
- package/dist/api/types/AssetThumbnail.d.ts +21 -0
- package/dist/api/types/AssetThumbnail.js +5 -0
- package/dist/api/types/AssetThumbnailStatus.d.ts +19 -0
- package/dist/api/types/AssetThumbnailStatus.js +12 -0
- package/dist/api/types/AsyncResponseFormat.d.ts +89 -0
- package/dist/api/types/AsyncResponseFormat.js +5 -0
- package/dist/api/types/AsyncResponseFormatType.d.ts +13 -0
- package/dist/api/types/AsyncResponseFormatType.js +10 -0
- package/dist/api/types/ConflictErrorBody.d.ts +11 -0
- package/dist/api/types/ConflictErrorBody.js +5 -0
- package/dist/api/types/Entity.d.ts +2 -0
- package/dist/api/types/IndexedAsset.d.ts +2 -0
- package/dist/api/types/IndexedAssetSummary.d.ts +12 -0
- package/dist/api/types/IndexedAssetSummary.js +5 -0
- package/dist/api/types/IndexedAssetSummaryIndex.d.ts +12 -0
- package/dist/api/types/IndexedAssetSummaryIndex.js +5 -0
- package/dist/api/types/IndexedAssetsListRequestDuration.d.ts +7 -0
- package/dist/api/types/IndexedAssetsListRequestDuration.js +5 -0
- package/dist/api/types/IndexedAssetsListRequestFps.d.ts +7 -0
- package/dist/api/types/IndexedAssetsListRequestFps.js +5 -0
- package/dist/api/types/IndexedAssetsListRequestHeight.d.ts +7 -0
- package/dist/api/types/IndexedAssetsListRequestHeight.js +5 -0
- package/dist/api/types/IndexedAssetsListRequestSize.d.ts +7 -0
- package/dist/api/types/IndexedAssetsListRequestSize.js +5 -0
- package/dist/api/types/IndexedAssetsListRequestWidth.d.ts +7 -0
- package/dist/api/types/IndexedAssetsListRequestWidth.js +5 -0
- package/dist/api/types/InternalEntity.d.ts +23 -1
- package/dist/api/types/MediaSource.d.ts +1 -1
- package/dist/api/types/One.d.ts +1 -1
- package/dist/api/types/SegmentDefinition.d.ts +17 -0
- package/dist/api/types/SegmentDefinition.js +5 -0
- package/dist/api/types/SegmentField.d.ts +19 -0
- package/dist/api/types/SegmentField.js +5 -0
- package/dist/api/types/SegmentFieldItems.d.ts +10 -0
- package/dist/api/types/SegmentFieldItems.js +5 -0
- package/dist/api/types/SegmentFieldItemsType.d.ts +10 -0
- package/dist/api/types/SegmentFieldItemsType.js +12 -0
- package/dist/api/types/SegmentFieldType.d.ts +14 -0
- package/dist/api/types/SegmentFieldType.js +13 -0
- package/dist/api/types/SmeMediaSource.d.ts +19 -0
- package/dist/api/types/SmeMediaSource.js +5 -0
- package/dist/api/types/SmeMediaSourceMediaType.d.ts +10 -0
- package/dist/api/types/SmeMediaSourceMediaType.js +9 -0
- package/dist/api/types/{ResponseFormat.d.ts → SyncResponseFormat.d.ts} +2 -2
- package/dist/api/types/SyncResponseFormat.js +5 -0
- package/{api/types/ResponseFormatType.d.ts → dist/api/types/SyncResponseFormatType.d.ts} +2 -2
- package/{api/types/ResponseFormatType.js → dist/api/types/SyncResponseFormatType.js} +2 -2
- package/dist/api/types/VideosListRequestDuration.d.ts +7 -0
- package/dist/api/types/VideosListRequestDuration.js +5 -0
- package/dist/api/types/VideosListRequestFps.d.ts +7 -0
- package/dist/api/types/VideosListRequestFps.js +5 -0
- package/dist/api/types/VideosListRequestHeight.d.ts +7 -0
- package/dist/api/types/VideosListRequestHeight.js +5 -0
- package/dist/api/types/VideosListRequestSize.d.ts +7 -0
- package/dist/api/types/VideosListRequestSize.js +5 -0
- package/dist/api/types/VideosListRequestWidth.d.ts +7 -0
- package/dist/api/types/VideosListRequestWidth.js +5 -0
- package/dist/api/types/index.d.ts +40 -2
- package/dist/api/types/index.js +40 -2
- package/dist/serialization/client/requests/AnalyzeRequest.d.ts +2 -2
- package/dist/serialization/client/requests/AnalyzeRequest.js +2 -2
- package/dist/serialization/client/requests/AnalyzeStreamRequest.d.ts +2 -2
- package/dist/serialization/client/requests/AnalyzeStreamRequest.js +2 -2
- package/dist/serialization/resources/analyzeAsync/resources/tasks/client/requests/CreateAsyncAnalyzeRequest.d.ts +10 -6
- package/dist/serialization/resources/analyzeAsync/resources/tasks/client/requests/CreateAsyncAnalyzeRequest.js +10 -6
- package/dist/serialization/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestAnalysisMode.d.ts +10 -0
- package/dist/serialization/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestAnalysisMode.js +41 -0
- package/dist/serialization/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestModelName.d.ts +10 -0
- package/dist/serialization/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestModelName.js +41 -0
- package/dist/serialization/resources/analyzeAsync/resources/tasks/types/TasksListRequestAnalysisMode.d.ts +10 -0
- package/dist/serialization/resources/analyzeAsync/resources/tasks/types/TasksListRequestAnalysisMode.js +41 -0
- package/dist/serialization/resources/analyzeAsync/resources/tasks/types/index.d.ts +3 -0
- package/dist/serialization/resources/analyzeAsync/resources/tasks/types/index.js +3 -0
- package/dist/serialization/resources/assets/types/AssetsListResponse.d.ts +2 -2
- package/dist/serialization/resources/assets/types/AssetsListResponse.js +2 -2
- package/dist/serialization/resources/entityCollections/resources/entities/types/EntitiesListByAssetResponse.d.ts +15 -0
- package/dist/serialization/resources/entityCollections/resources/entities/types/EntitiesListByAssetResponse.js +46 -0
- package/dist/serialization/resources/entityCollections/resources/entities/types/index.d.ts +1 -0
- package/dist/serialization/resources/entityCollections/resources/entities/types/index.js +1 -0
- package/dist/serialization/resources/indexes/resources/indexedAssets/types/IndexedAssetsCreateResponse.d.ts +1 -0
- package/dist/serialization/resources/indexes/resources/indexedAssets/types/IndexedAssetsCreateResponse.js +1 -0
- package/dist/serialization/resources/indexes/resources/indexedAssets/types/IndexedAssetsListByAssetResponse.d.ts +15 -0
- package/dist/serialization/resources/indexes/resources/indexedAssets/types/IndexedAssetsListByAssetResponse.js +46 -0
- package/dist/serialization/resources/indexes/resources/indexedAssets/types/index.d.ts +1 -0
- package/dist/serialization/resources/indexes/resources/indexedAssets/types/index.js +1 -0
- package/dist/serialization/resources/multipartUpload/client/requests/CreateAssetUploadRequest.d.ts +2 -0
- package/dist/serialization/resources/multipartUpload/client/requests/CreateAssetUploadRequest.js +2 -0
- package/dist/serialization/types/AnalyzeTaskResponse.d.ts +4 -0
- package/dist/serialization/types/AnalyzeTaskResponse.js +4 -0
- package/dist/serialization/types/AnalyzeTaskResponseRequestParams.d.ts +19 -0
- package/dist/serialization/types/AnalyzeTaskResponseRequestParams.js +50 -0
- package/dist/serialization/types/AnalyzeTaskResponseRequestParamsAnalysisMode.d.ts +10 -0
- package/dist/serialization/types/AnalyzeTaskResponseRequestParamsAnalysisMode.js +41 -0
- package/dist/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormat.d.ts +15 -0
- package/dist/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormat.js +46 -0
- package/dist/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItem.d.ts +17 -0
- package/dist/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItem.js +52 -0
- package/dist/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItem.d.ts +17 -0
- package/dist/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItem.js +48 -0
- package/dist/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItemItems.d.ts +12 -0
- package/dist/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItemItems.js +43 -0
- package/dist/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemMediaSourcesItem.d.ts +15 -0
- package/dist/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemMediaSourcesItem.js +46 -0
- package/dist/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatType.d.ts +10 -0
- package/dist/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatType.js +41 -0
- package/dist/serialization/types/AnalyzeTaskResponseVideoSource.d.ts +18 -0
- package/dist/serialization/types/AnalyzeTaskResponseVideoSource.js +49 -0
- package/dist/serialization/types/AnalyzeTaskResponseVideoSourceSystemMetadata.d.ts +12 -0
- package/dist/serialization/types/AnalyzeTaskResponseVideoSourceSystemMetadata.js +43 -0
- package/dist/serialization/types/AnalyzeTaskResponseVideoSourceType.d.ts +10 -0
- package/dist/serialization/types/AnalyzeTaskResponseVideoSourceType.js +41 -0
- package/dist/serialization/types/AnalyzeTaskResult.d.ts +1 -2
- package/dist/serialization/types/AnalyzeTaskResult.js +1 -2
- package/dist/serialization/types/Asset.d.ts +2 -0
- package/dist/serialization/types/Asset.js +2 -0
- package/dist/serialization/types/AssetDetail.d.ts +16 -0
- package/dist/serialization/types/AssetDetail.js +49 -0
- package/dist/serialization/types/AssetHls.d.ts +14 -0
- package/dist/serialization/types/AssetHls.js +45 -0
- package/dist/serialization/types/AssetHlsStatus.d.ts +10 -0
- package/dist/serialization/types/AssetHlsStatus.js +41 -0
- package/dist/serialization/types/AssetMethod.d.ts +1 -1
- package/dist/serialization/types/AssetMethod.js +1 -1
- package/dist/serialization/types/AssetThumbnail.d.ts +14 -0
- package/dist/serialization/types/AssetThumbnail.js +45 -0
- package/dist/serialization/types/AssetThumbnailStatus.d.ts +10 -0
- package/dist/serialization/types/AssetThumbnailStatus.js +41 -0
- package/dist/serialization/types/AsyncResponseFormat.d.ts +16 -0
- package/dist/serialization/types/AsyncResponseFormat.js +47 -0
- package/dist/serialization/types/AsyncResponseFormatType.d.ts +10 -0
- package/dist/serialization/types/AsyncResponseFormatType.js +41 -0
- package/dist/serialization/types/ConflictErrorBody.d.ts +14 -0
- package/dist/serialization/types/ConflictErrorBody.js +45 -0
- package/dist/serialization/types/Entity.d.ts +1 -0
- package/dist/serialization/types/Entity.js +1 -0
- package/dist/serialization/types/IndexedAsset.d.ts +1 -0
- package/dist/serialization/types/IndexedAsset.js +1 -0
- package/dist/serialization/types/IndexedAssetSummary.d.ts +14 -0
- package/dist/serialization/types/IndexedAssetSummary.js +45 -0
- package/dist/serialization/types/IndexedAssetSummaryIndex.d.ts +13 -0
- package/dist/serialization/types/IndexedAssetSummaryIndex.js +44 -0
- package/dist/serialization/types/IndexedAssetsListRequestDuration.d.ts +13 -0
- package/dist/serialization/types/IndexedAssetsListRequestDuration.js +44 -0
- package/dist/serialization/types/IndexedAssetsListRequestFps.d.ts +13 -0
- package/dist/serialization/types/IndexedAssetsListRequestFps.js +44 -0
- package/dist/serialization/types/IndexedAssetsListRequestHeight.d.ts +13 -0
- package/dist/serialization/types/IndexedAssetsListRequestHeight.js +44 -0
- package/dist/serialization/types/IndexedAssetsListRequestSize.d.ts +13 -0
- package/dist/serialization/types/IndexedAssetsListRequestSize.js +44 -0
- package/dist/serialization/types/IndexedAssetsListRequestWidth.d.ts +13 -0
- package/dist/serialization/types/IndexedAssetsListRequestWidth.js +44 -0
- package/dist/serialization/types/InternalEntity.d.ts +10 -2
- package/dist/serialization/types/InternalEntity.js +11 -5
- package/dist/serialization/types/SegmentDefinition.d.ts +17 -0
- package/dist/serialization/types/SegmentDefinition.js +48 -0
- package/dist/serialization/types/SegmentField.d.ts +18 -0
- package/dist/serialization/types/SegmentField.js +49 -0
- package/dist/serialization/types/SegmentFieldItems.d.ts +13 -0
- package/dist/serialization/types/SegmentFieldItems.js +44 -0
- package/dist/serialization/types/SegmentFieldItemsType.d.ts +10 -0
- package/dist/serialization/types/SegmentFieldItemsType.js +41 -0
- package/dist/serialization/types/SegmentFieldType.d.ts +10 -0
- package/dist/serialization/types/SegmentFieldType.js +41 -0
- package/dist/serialization/types/SmeMediaSource.d.ts +17 -0
- package/dist/serialization/types/SmeMediaSource.js +48 -0
- package/dist/serialization/types/SmeMediaSourceMediaType.d.ts +10 -0
- package/dist/serialization/types/{ResponseFormatType.js → SmeMediaSourceMediaType.js} +2 -2
- package/dist/serialization/types/SyncResponseFormat.d.ts +14 -0
- package/{serialization/types/ResponseFormat.js → dist/serialization/types/SyncResponseFormat.js} +4 -4
- package/dist/serialization/types/{ResponseFormatType.d.ts → SyncResponseFormatType.d.ts} +2 -2
- package/dist/serialization/types/SyncResponseFormatType.js +41 -0
- package/dist/serialization/types/VideosListRequestDuration.d.ts +13 -0
- package/dist/serialization/types/VideosListRequestDuration.js +44 -0
- package/dist/serialization/types/VideosListRequestFps.d.ts +13 -0
- package/dist/serialization/types/VideosListRequestFps.js +44 -0
- package/dist/serialization/types/VideosListRequestHeight.d.ts +13 -0
- package/dist/serialization/types/VideosListRequestHeight.js +44 -0
- package/dist/serialization/types/VideosListRequestSize.d.ts +13 -0
- package/dist/serialization/types/VideosListRequestSize.js +44 -0
- package/dist/serialization/types/VideosListRequestWidth.d.ts +13 -0
- package/dist/serialization/types/VideosListRequestWidth.js +44 -0
- package/dist/serialization/types/index.d.ts +40 -2
- package/dist/serialization/types/index.js +40 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wrapper/resources/IndexesVideosWrapper.js +29 -14
- package/package.json +1 -1
- package/reference.md +219 -35
- package/serialization/client/requests/AnalyzeRequest.d.ts +2 -2
- package/serialization/client/requests/AnalyzeRequest.js +2 -2
- package/serialization/client/requests/AnalyzeStreamRequest.d.ts +2 -2
- package/serialization/client/requests/AnalyzeStreamRequest.js +2 -2
- package/serialization/resources/analyzeAsync/resources/tasks/client/requests/CreateAsyncAnalyzeRequest.d.ts +10 -6
- package/serialization/resources/analyzeAsync/resources/tasks/client/requests/CreateAsyncAnalyzeRequest.js +10 -6
- package/serialization/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestAnalysisMode.d.ts +10 -0
- package/serialization/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestAnalysisMode.js +41 -0
- package/serialization/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestModelName.d.ts +10 -0
- package/serialization/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestModelName.js +41 -0
- package/serialization/resources/analyzeAsync/resources/tasks/types/TasksListRequestAnalysisMode.d.ts +10 -0
- package/serialization/resources/analyzeAsync/resources/tasks/types/TasksListRequestAnalysisMode.js +41 -0
- package/serialization/resources/analyzeAsync/resources/tasks/types/index.d.ts +3 -0
- package/serialization/resources/analyzeAsync/resources/tasks/types/index.js +3 -0
- package/serialization/resources/assets/types/AssetsListResponse.d.ts +2 -2
- package/serialization/resources/assets/types/AssetsListResponse.js +2 -2
- package/serialization/resources/entityCollections/resources/entities/types/EntitiesListByAssetResponse.d.ts +15 -0
- package/serialization/resources/entityCollections/resources/entities/types/EntitiesListByAssetResponse.js +46 -0
- package/serialization/resources/entityCollections/resources/entities/types/index.d.ts +1 -0
- package/serialization/resources/entityCollections/resources/entities/types/index.js +1 -0
- package/serialization/resources/indexes/resources/indexedAssets/types/IndexedAssetsCreateResponse.d.ts +1 -0
- package/serialization/resources/indexes/resources/indexedAssets/types/IndexedAssetsCreateResponse.js +1 -0
- package/serialization/resources/indexes/resources/indexedAssets/types/IndexedAssetsListByAssetResponse.d.ts +15 -0
- package/serialization/resources/indexes/resources/indexedAssets/types/IndexedAssetsListByAssetResponse.js +46 -0
- package/serialization/resources/indexes/resources/indexedAssets/types/index.d.ts +1 -0
- package/serialization/resources/indexes/resources/indexedAssets/types/index.js +1 -0
- package/serialization/resources/multipartUpload/client/requests/CreateAssetUploadRequest.d.ts +2 -0
- package/serialization/resources/multipartUpload/client/requests/CreateAssetUploadRequest.js +2 -0
- package/serialization/types/AnalyzeTaskResponse.d.ts +4 -0
- package/serialization/types/AnalyzeTaskResponse.js +4 -0
- package/serialization/types/AnalyzeTaskResponseRequestParams.d.ts +19 -0
- package/serialization/types/AnalyzeTaskResponseRequestParams.js +50 -0
- package/serialization/types/AnalyzeTaskResponseRequestParamsAnalysisMode.d.ts +10 -0
- package/serialization/types/AnalyzeTaskResponseRequestParamsAnalysisMode.js +41 -0
- package/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormat.d.ts +15 -0
- package/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormat.js +46 -0
- package/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItem.d.ts +17 -0
- package/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItem.js +52 -0
- package/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItem.d.ts +17 -0
- package/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItem.js +48 -0
- package/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItemItems.d.ts +12 -0
- package/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItemItems.js +43 -0
- package/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemMediaSourcesItem.d.ts +15 -0
- package/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemMediaSourcesItem.js +46 -0
- package/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatType.d.ts +10 -0
- package/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatType.js +41 -0
- package/serialization/types/AnalyzeTaskResponseVideoSource.d.ts +18 -0
- package/serialization/types/AnalyzeTaskResponseVideoSource.js +49 -0
- package/serialization/types/AnalyzeTaskResponseVideoSourceSystemMetadata.d.ts +12 -0
- package/serialization/types/AnalyzeTaskResponseVideoSourceSystemMetadata.js +43 -0
- package/serialization/types/AnalyzeTaskResponseVideoSourceType.d.ts +10 -0
- package/serialization/types/AnalyzeTaskResponseVideoSourceType.js +41 -0
- package/serialization/types/AnalyzeTaskResult.d.ts +1 -2
- package/serialization/types/AnalyzeTaskResult.js +1 -2
- package/serialization/types/Asset.d.ts +2 -0
- package/serialization/types/Asset.js +2 -0
- package/serialization/types/AssetDetail.d.ts +16 -0
- package/serialization/types/AssetDetail.js +49 -0
- package/serialization/types/AssetHls.d.ts +14 -0
- package/serialization/types/AssetHls.js +45 -0
- package/serialization/types/AssetHlsStatus.d.ts +10 -0
- package/serialization/types/AssetHlsStatus.js +41 -0
- package/serialization/types/AssetMethod.d.ts +1 -1
- package/serialization/types/AssetMethod.js +1 -1
- package/serialization/types/AssetThumbnail.d.ts +14 -0
- package/serialization/types/AssetThumbnail.js +45 -0
- package/serialization/types/AssetThumbnailStatus.d.ts +10 -0
- package/serialization/types/AssetThumbnailStatus.js +41 -0
- package/serialization/types/AsyncResponseFormat.d.ts +16 -0
- package/serialization/types/AsyncResponseFormat.js +47 -0
- package/serialization/types/AsyncResponseFormatType.d.ts +10 -0
- package/serialization/types/AsyncResponseFormatType.js +41 -0
- package/serialization/types/ConflictErrorBody.d.ts +14 -0
- package/serialization/types/ConflictErrorBody.js +45 -0
- package/serialization/types/Entity.d.ts +1 -0
- package/serialization/types/Entity.js +1 -0
- package/serialization/types/IndexedAsset.d.ts +1 -0
- package/serialization/types/IndexedAsset.js +1 -0
- package/serialization/types/IndexedAssetSummary.d.ts +14 -0
- package/serialization/types/IndexedAssetSummary.js +45 -0
- package/serialization/types/IndexedAssetSummaryIndex.d.ts +13 -0
- package/serialization/types/IndexedAssetSummaryIndex.js +44 -0
- package/serialization/types/IndexedAssetsListRequestDuration.d.ts +13 -0
- package/serialization/types/IndexedAssetsListRequestDuration.js +44 -0
- package/serialization/types/IndexedAssetsListRequestFps.d.ts +13 -0
- package/serialization/types/IndexedAssetsListRequestFps.js +44 -0
- package/serialization/types/IndexedAssetsListRequestHeight.d.ts +13 -0
- package/serialization/types/IndexedAssetsListRequestHeight.js +44 -0
- package/serialization/types/IndexedAssetsListRequestSize.d.ts +13 -0
- package/serialization/types/IndexedAssetsListRequestSize.js +44 -0
- package/serialization/types/IndexedAssetsListRequestWidth.d.ts +13 -0
- package/serialization/types/IndexedAssetsListRequestWidth.js +44 -0
- package/serialization/types/InternalEntity.d.ts +10 -2
- package/serialization/types/InternalEntity.js +11 -5
- package/serialization/types/SegmentDefinition.d.ts +17 -0
- package/serialization/types/SegmentDefinition.js +48 -0
- package/serialization/types/SegmentField.d.ts +18 -0
- package/serialization/types/SegmentField.js +49 -0
- package/serialization/types/SegmentFieldItems.d.ts +13 -0
- package/serialization/types/SegmentFieldItems.js +44 -0
- package/serialization/types/SegmentFieldItemsType.d.ts +10 -0
- package/serialization/types/SegmentFieldItemsType.js +41 -0
- package/serialization/types/SegmentFieldType.d.ts +10 -0
- package/serialization/types/SegmentFieldType.js +41 -0
- package/serialization/types/SmeMediaSource.d.ts +17 -0
- package/serialization/types/SmeMediaSource.js +48 -0
- package/serialization/types/SmeMediaSourceMediaType.d.ts +10 -0
- package/serialization/types/{ResponseFormatType.js → SmeMediaSourceMediaType.js} +2 -2
- package/serialization/types/SyncResponseFormat.d.ts +14 -0
- package/{dist/serialization/types/ResponseFormat.js → serialization/types/SyncResponseFormat.js} +4 -4
- package/serialization/types/{ResponseFormatType.d.ts → SyncResponseFormatType.d.ts} +2 -2
- package/serialization/types/SyncResponseFormatType.js +41 -0
- package/serialization/types/VideosListRequestDuration.d.ts +13 -0
- package/serialization/types/VideosListRequestDuration.js +44 -0
- package/serialization/types/VideosListRequestFps.d.ts +13 -0
- package/serialization/types/VideosListRequestFps.js +44 -0
- package/serialization/types/VideosListRequestHeight.d.ts +13 -0
- package/serialization/types/VideosListRequestHeight.js +44 -0
- package/serialization/types/VideosListRequestSize.d.ts +13 -0
- package/serialization/types/VideosListRequestSize.js +44 -0
- package/serialization/types/VideosListRequestWidth.d.ts +13 -0
- package/serialization/types/VideosListRequestWidth.js +44 -0
- package/serialization/types/index.d.ts +40 -2
- package/serialization/types/index.js +40 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/wrapper/resources/IndexesVideosWrapper.js +29 -14
- package/dist/serialization/types/ResponseFormat.d.ts +0 -14
- package/serialization/types/ResponseFormat.d.ts +0 -14
- /package/api/{types/ResponseFormat.js → resources/assets/client/requests/AssetsDeleteRequest.js} +0 -0
- /package/{dist/api/types/ResponseFormat.js → api/resources/entityCollections/resources/entities/client/requests/EntitiesListByAssetRequest.js} +0 -0
|
@@ -13,6 +13,6 @@ export interface MediaSource {
|
|
|
13
13
|
* Use direct links to raw media files. Video hosting platforms and cloud storage sharing links are not supported.
|
|
14
14
|
*/
|
|
15
15
|
url?: string;
|
|
16
|
-
/** The unique identifier of an asset from a [direct](/v1.3/api-reference/upload-content/direct-uploads) or [multipart](/v1.3/api-reference/upload-content/multipart-uploads) upload. */
|
|
16
|
+
/** The unique identifier of an asset from a [direct](/v1.3/api-reference/upload-content/direct-uploads) or [multipart](/v1.3/api-reference/upload-content/multipart-uploads) upload. The asset status must be `ready`. Use the [Retrieve an asset](/v1.3/api-reference/upload-content/direct-uploads/retrieve) method to check the status. */
|
|
17
17
|
assetId?: string;
|
|
18
18
|
}
|
package/api/types/One.d.ts
CHANGED
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
* Provide the video via a unique identifier of an asset.
|
|
6
6
|
*/
|
|
7
7
|
export interface One {
|
|
8
|
-
/** The unique identifier of an asset from a [direct](/v1.3/api-reference/upload-content/direct-uploads) or [multipart](/v1.3/api-reference/upload-content/multipart-uploads) upload. */
|
|
8
|
+
/** The unique identifier of an asset from a [direct](/v1.3/api-reference/upload-content/direct-uploads) or [multipart](/v1.3/api-reference/upload-content/multipart-uploads) upload. The asset status must be `ready`. Use the [Retrieve an asset](/v1.3/api-reference/upload-content/direct-uploads/retrieve) method to check the status. */
|
|
9
9
|
assetId: string;
|
|
10
10
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as TwelvelabsApi from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* Defines a type of segment to extract from the video.
|
|
7
|
+
*/
|
|
8
|
+
export interface SegmentDefinition {
|
|
9
|
+
/** A unique identifier for this segment definition. */
|
|
10
|
+
id: string;
|
|
11
|
+
/** Describe what this type of segment looks like in the video. The model uses this text to identify matching segments. */
|
|
12
|
+
description: string;
|
|
13
|
+
/** Custom fields to extract for each segment instance. Maximum 20 fields. */
|
|
14
|
+
fields?: TwelvelabsApi.SegmentField[];
|
|
15
|
+
/** Reference images that help the model identify segments. Maximum 4 sources. */
|
|
16
|
+
mediaSources?: TwelvelabsApi.SmeMediaSource[];
|
|
17
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as TwelvelabsApi from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* A custom field to extract for each segment.
|
|
7
|
+
*/
|
|
8
|
+
export interface SegmentField {
|
|
9
|
+
/** The name of the field. */
|
|
10
|
+
name: string;
|
|
11
|
+
/** The data type of the field. */
|
|
12
|
+
type: TwelvelabsApi.SegmentFieldType;
|
|
13
|
+
/** Instructions that guide the model on what this field should contain and how to extract it from the video. */
|
|
14
|
+
description: string;
|
|
15
|
+
/** Allowed values for this field. Maximum 50 values. */
|
|
16
|
+
enum?: string[];
|
|
17
|
+
/** Required when `type` is `array`. Specifies the type of array elements. */
|
|
18
|
+
items?: TwelvelabsApi.SegmentFieldItems;
|
|
19
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as TwelvelabsApi from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* Required when `type` is `array`. Specifies the type of array elements.
|
|
7
|
+
*/
|
|
8
|
+
export interface SegmentFieldItems {
|
|
9
|
+
type: TwelvelabsApi.SegmentFieldItemsType;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type SegmentFieldItemsType = "string" | "number" | "boolean" | "integer";
|
|
5
|
+
export declare const SegmentFieldItemsType: {
|
|
6
|
+
readonly String: "string";
|
|
7
|
+
readonly Number: "number";
|
|
8
|
+
readonly Boolean: "boolean";
|
|
9
|
+
readonly Integer: "integer";
|
|
10
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.SegmentFieldItemsType = void 0;
|
|
7
|
+
exports.SegmentFieldItemsType = {
|
|
8
|
+
String: "string",
|
|
9
|
+
Number: "number",
|
|
10
|
+
Boolean: "boolean",
|
|
11
|
+
Integer: "integer",
|
|
12
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* The data type of the field.
|
|
6
|
+
*/
|
|
7
|
+
export type SegmentFieldType = "string" | "boolean" | "number" | "integer" | "array";
|
|
8
|
+
export declare const SegmentFieldType: {
|
|
9
|
+
readonly String: "string";
|
|
10
|
+
readonly Boolean: "boolean";
|
|
11
|
+
readonly Number: "number";
|
|
12
|
+
readonly Integer: "integer";
|
|
13
|
+
readonly Array: "array";
|
|
14
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.SegmentFieldType = void 0;
|
|
7
|
+
exports.SegmentFieldType = {
|
|
8
|
+
String: "string",
|
|
9
|
+
Boolean: "boolean",
|
|
10
|
+
Number: "number",
|
|
11
|
+
Integer: "integer",
|
|
12
|
+
Array: "array",
|
|
13
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as TwelvelabsApi from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* A reference image that provides visual context for segment identification. Provide exactly one of `url`, `asset_id`, or `base64_string`.
|
|
7
|
+
*/
|
|
8
|
+
export interface SmeMediaSource {
|
|
9
|
+
/** A descriptive name for this media source. */
|
|
10
|
+
name: string;
|
|
11
|
+
/** The media type. Only `image` is available. */
|
|
12
|
+
mediaType: TwelvelabsApi.SmeMediaSourceMediaType;
|
|
13
|
+
/** A publicly accessible HTTPS URL of the image. */
|
|
14
|
+
url?: string;
|
|
15
|
+
/** The unique identifier of an uploaded asset. */
|
|
16
|
+
assetId?: string;
|
|
17
|
+
/** Base64-encoded image data. The maximum size is 30MB. */
|
|
18
|
+
base64String?: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* The media type. Only `image` is available.
|
|
6
|
+
*/
|
|
7
|
+
export type SmeMediaSourceMediaType = "image";
|
|
8
|
+
export declare const SmeMediaSourceMediaType: {
|
|
9
|
+
readonly Image: "image";
|
|
10
|
+
};
|
|
@@ -5,9 +5,9 @@ import * as TwelvelabsApi from "../index";
|
|
|
5
5
|
/**
|
|
6
6
|
* Specifies the format of the response. When you omit this parameter, the platform returns unstructured text.
|
|
7
7
|
*/
|
|
8
|
-
export interface
|
|
8
|
+
export interface SyncResponseFormat {
|
|
9
9
|
/** Set this parameter to "json_schema" to receive structured JSON responses. */
|
|
10
|
-
type: TwelvelabsApi.
|
|
10
|
+
type: TwelvelabsApi.SyncResponseFormatType;
|
|
11
11
|
/**
|
|
12
12
|
* Contains the JSON schema that defines the response structure. The schema must adhere to the [JSON Schema Draft 2020-12](https://json-schema.org/draft/2020-12) specification.
|
|
13
13
|
*
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Set this parameter to "json_schema" to receive structured JSON responses.
|
|
6
6
|
*/
|
|
7
|
-
export type
|
|
8
|
-
export declare const
|
|
7
|
+
export type SyncResponseFormatType = "json_schema";
|
|
8
|
+
export declare const SyncResponseFormatType: {
|
|
9
9
|
readonly JsonSchema: "json_schema";
|
|
10
10
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
6
|
+
exports.SyncResponseFormatType = void 0;
|
|
7
|
+
exports.SyncResponseFormatType = {
|
|
8
8
|
JsonSchema: "json_schema",
|
|
9
9
|
};
|
package/api/types/index.d.ts
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
export * from "./BadRequestErrorBody";
|
|
2
|
+
export * from "./IndexedAssetsListRequestDuration";
|
|
3
|
+
export * from "./IndexedAssetsListRequestFps";
|
|
4
|
+
export * from "./IndexedAssetsListRequestWidth";
|
|
5
|
+
export * from "./IndexedAssetsListRequestHeight";
|
|
6
|
+
export * from "./IndexedAssetsListRequestSize";
|
|
2
7
|
export * from "./NotFoundErrorBody";
|
|
3
8
|
export * from "./InternalServerErrorBody";
|
|
9
|
+
export * from "./VideosListRequestDuration";
|
|
10
|
+
export * from "./VideosListRequestFps";
|
|
11
|
+
export * from "./VideosListRequestWidth";
|
|
12
|
+
export * from "./VideosListRequestHeight";
|
|
13
|
+
export * from "./VideosListRequestSize";
|
|
14
|
+
export * from "./ConflictErrorBody";
|
|
4
15
|
export * from "./ForbiddenErrorBody";
|
|
5
16
|
export * from "./Url";
|
|
6
17
|
export * from "./One";
|
|
@@ -115,12 +126,32 @@ export * from "./StreamEndResponseMetadata";
|
|
|
115
126
|
export * from "./StreamEndResponse";
|
|
116
127
|
export * from "./NonStreamAnalyzeResponse";
|
|
117
128
|
export * from "./TokenUsage";
|
|
118
|
-
export * from "./
|
|
119
|
-
export * from "./
|
|
129
|
+
export * from "./AsyncResponseFormatType";
|
|
130
|
+
export * from "./AsyncResponseFormat";
|
|
131
|
+
export * from "./SyncResponseFormatType";
|
|
132
|
+
export * from "./SyncResponseFormat";
|
|
133
|
+
export * from "./SegmentDefinition";
|
|
134
|
+
export * from "./SegmentFieldType";
|
|
135
|
+
export * from "./SegmentFieldItemsType";
|
|
136
|
+
export * from "./SegmentFieldItems";
|
|
137
|
+
export * from "./SegmentField";
|
|
138
|
+
export * from "./SmeMediaSourceMediaType";
|
|
139
|
+
export * from "./SmeMediaSource";
|
|
120
140
|
export * from "./FinishReason";
|
|
121
141
|
export * from "./VideoContext";
|
|
122
142
|
export * from "./AnalyzeTaskStatus";
|
|
123
143
|
export * from "./CreateAnalyzeTaskResponse";
|
|
144
|
+
export * from "./AnalyzeTaskResponseVideoSourceType";
|
|
145
|
+
export * from "./AnalyzeTaskResponseVideoSourceSystemMetadata";
|
|
146
|
+
export * from "./AnalyzeTaskResponseVideoSource";
|
|
147
|
+
export * from "./AnalyzeTaskResponseRequestParamsAnalysisMode";
|
|
148
|
+
export * from "./AnalyzeTaskResponseRequestParamsResponseFormatType";
|
|
149
|
+
export * from "./AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItemItems";
|
|
150
|
+
export * from "./AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItem";
|
|
151
|
+
export * from "./AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemMediaSourcesItem";
|
|
152
|
+
export * from "./AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItem";
|
|
153
|
+
export * from "./AnalyzeTaskResponseRequestParamsResponseFormat";
|
|
154
|
+
export * from "./AnalyzeTaskResponseRequestParams";
|
|
124
155
|
export * from "./AnalyzeTaskResponse";
|
|
125
156
|
export * from "./AnalyzeTaskResultUsage";
|
|
126
157
|
export * from "./AnalyzeTaskResult";
|
|
@@ -129,6 +160,13 @@ export * from "./AnalyzeTaskWebhookInfo";
|
|
|
129
160
|
export * from "./AssetMethod";
|
|
130
161
|
export * from "./AssetStatus";
|
|
131
162
|
export * from "./Asset";
|
|
163
|
+
export * from "./AssetDetail";
|
|
164
|
+
export * from "./AssetHlsStatus";
|
|
165
|
+
export * from "./AssetHls";
|
|
166
|
+
export * from "./AssetThumbnailStatus";
|
|
167
|
+
export * from "./AssetThumbnail";
|
|
168
|
+
export * from "./IndexedAssetSummaryIndex";
|
|
169
|
+
export * from "./IndexedAssetSummary";
|
|
132
170
|
export * from "./CreateAssetUploadResponse";
|
|
133
171
|
export * from "./CompletedChunkProofType";
|
|
134
172
|
export * from "./CompletedChunk";
|
package/api/types/index.js
CHANGED
|
@@ -15,8 +15,19 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./BadRequestErrorBody"), exports);
|
|
18
|
+
__exportStar(require("./IndexedAssetsListRequestDuration"), exports);
|
|
19
|
+
__exportStar(require("./IndexedAssetsListRequestFps"), exports);
|
|
20
|
+
__exportStar(require("./IndexedAssetsListRequestWidth"), exports);
|
|
21
|
+
__exportStar(require("./IndexedAssetsListRequestHeight"), exports);
|
|
22
|
+
__exportStar(require("./IndexedAssetsListRequestSize"), exports);
|
|
18
23
|
__exportStar(require("./NotFoundErrorBody"), exports);
|
|
19
24
|
__exportStar(require("./InternalServerErrorBody"), exports);
|
|
25
|
+
__exportStar(require("./VideosListRequestDuration"), exports);
|
|
26
|
+
__exportStar(require("./VideosListRequestFps"), exports);
|
|
27
|
+
__exportStar(require("./VideosListRequestWidth"), exports);
|
|
28
|
+
__exportStar(require("./VideosListRequestHeight"), exports);
|
|
29
|
+
__exportStar(require("./VideosListRequestSize"), exports);
|
|
30
|
+
__exportStar(require("./ConflictErrorBody"), exports);
|
|
20
31
|
__exportStar(require("./ForbiddenErrorBody"), exports);
|
|
21
32
|
__exportStar(require("./Url"), exports);
|
|
22
33
|
__exportStar(require("./One"), exports);
|
|
@@ -131,12 +142,32 @@ __exportStar(require("./StreamEndResponseMetadata"), exports);
|
|
|
131
142
|
__exportStar(require("./StreamEndResponse"), exports);
|
|
132
143
|
__exportStar(require("./NonStreamAnalyzeResponse"), exports);
|
|
133
144
|
__exportStar(require("./TokenUsage"), exports);
|
|
134
|
-
__exportStar(require("./
|
|
135
|
-
__exportStar(require("./
|
|
145
|
+
__exportStar(require("./AsyncResponseFormatType"), exports);
|
|
146
|
+
__exportStar(require("./AsyncResponseFormat"), exports);
|
|
147
|
+
__exportStar(require("./SyncResponseFormatType"), exports);
|
|
148
|
+
__exportStar(require("./SyncResponseFormat"), exports);
|
|
149
|
+
__exportStar(require("./SegmentDefinition"), exports);
|
|
150
|
+
__exportStar(require("./SegmentFieldType"), exports);
|
|
151
|
+
__exportStar(require("./SegmentFieldItemsType"), exports);
|
|
152
|
+
__exportStar(require("./SegmentFieldItems"), exports);
|
|
153
|
+
__exportStar(require("./SegmentField"), exports);
|
|
154
|
+
__exportStar(require("./SmeMediaSourceMediaType"), exports);
|
|
155
|
+
__exportStar(require("./SmeMediaSource"), exports);
|
|
136
156
|
__exportStar(require("./FinishReason"), exports);
|
|
137
157
|
__exportStar(require("./VideoContext"), exports);
|
|
138
158
|
__exportStar(require("./AnalyzeTaskStatus"), exports);
|
|
139
159
|
__exportStar(require("./CreateAnalyzeTaskResponse"), exports);
|
|
160
|
+
__exportStar(require("./AnalyzeTaskResponseVideoSourceType"), exports);
|
|
161
|
+
__exportStar(require("./AnalyzeTaskResponseVideoSourceSystemMetadata"), exports);
|
|
162
|
+
__exportStar(require("./AnalyzeTaskResponseVideoSource"), exports);
|
|
163
|
+
__exportStar(require("./AnalyzeTaskResponseRequestParamsAnalysisMode"), exports);
|
|
164
|
+
__exportStar(require("./AnalyzeTaskResponseRequestParamsResponseFormatType"), exports);
|
|
165
|
+
__exportStar(require("./AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItemItems"), exports);
|
|
166
|
+
__exportStar(require("./AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItem"), exports);
|
|
167
|
+
__exportStar(require("./AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemMediaSourcesItem"), exports);
|
|
168
|
+
__exportStar(require("./AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItem"), exports);
|
|
169
|
+
__exportStar(require("./AnalyzeTaskResponseRequestParamsResponseFormat"), exports);
|
|
170
|
+
__exportStar(require("./AnalyzeTaskResponseRequestParams"), exports);
|
|
140
171
|
__exportStar(require("./AnalyzeTaskResponse"), exports);
|
|
141
172
|
__exportStar(require("./AnalyzeTaskResultUsage"), exports);
|
|
142
173
|
__exportStar(require("./AnalyzeTaskResult"), exports);
|
|
@@ -145,6 +176,13 @@ __exportStar(require("./AnalyzeTaskWebhookInfo"), exports);
|
|
|
145
176
|
__exportStar(require("./AssetMethod"), exports);
|
|
146
177
|
__exportStar(require("./AssetStatus"), exports);
|
|
147
178
|
__exportStar(require("./Asset"), exports);
|
|
179
|
+
__exportStar(require("./AssetDetail"), exports);
|
|
180
|
+
__exportStar(require("./AssetHlsStatus"), exports);
|
|
181
|
+
__exportStar(require("./AssetHls"), exports);
|
|
182
|
+
__exportStar(require("./AssetThumbnailStatus"), exports);
|
|
183
|
+
__exportStar(require("./AssetThumbnail"), exports);
|
|
184
|
+
__exportStar(require("./IndexedAssetSummaryIndex"), exports);
|
|
185
|
+
__exportStar(require("./IndexedAssetSummary"), exports);
|
|
148
186
|
__exportStar(require("./CreateAssetUploadResponse"), exports);
|
|
149
187
|
__exportStar(require("./CompletedChunkProofType"), exports);
|
|
150
188
|
__exportStar(require("./CompletedChunk"), exports);
|
package/dist/Client.d.ts
CHANGED
|
@@ -67,6 +67,7 @@ export declare class TwelvelabsApiClient {
|
|
|
67
67
|
*
|
|
68
68
|
* **Do not use this method for**:
|
|
69
69
|
* - Videos longer than 1 hour. Use the [`POST`](/v1.3/api-reference/analyze-videos/create-async-analysis-task) method of the `/analyze/tasks` endpoint instead.
|
|
70
|
+
* - Video segmentation. Use the [`POST`](/v1.3/api-reference/analyze-videos/create-async-analysis-task) method of the `/analyze/tasks` endpoint with `model_name` set to `pegasus1.5` instead.
|
|
70
71
|
*
|
|
71
72
|
* <Note title="Notes">
|
|
72
73
|
* - This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page.
|
|
@@ -92,6 +93,7 @@ export declare class TwelvelabsApiClient {
|
|
|
92
93
|
*
|
|
93
94
|
* **Do not use this method for**:
|
|
94
95
|
* - Videos longer than 1 hour. Use the [`POST`](/v1.3/api-reference/analyze-videos/create-async-analysis-task) method of the `/analyze/tasks` endpoint instead.
|
|
96
|
+
* - Video segmentation. Use the [`POST`](/v1.3/api-reference/analyze-videos/create-async-analysis-task) method of the `/analyze/tasks` endpoint with `model_name` set to `pegasus1.5` instead.
|
|
95
97
|
*
|
|
96
98
|
* <Note title="Notes">
|
|
97
99
|
* - This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page.
|
package/dist/Client.js
CHANGED
|
@@ -117,6 +117,7 @@ class TwelvelabsApiClient {
|
|
|
117
117
|
*
|
|
118
118
|
* **Do not use this method for**:
|
|
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
|
+
* - Video segmentation. Use the [`POST`](/v1.3/api-reference/analyze-videos/create-async-analysis-task) method of the `/analyze/tasks` endpoint with `model_name` set to `pegasus1.5` instead.
|
|
120
121
|
*
|
|
121
122
|
* <Note title="Notes">
|
|
122
123
|
* - This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page.
|
|
@@ -131,7 +132,7 @@ class TwelvelabsApiClient {
|
|
|
131
132
|
const _response = yield core.fetcher({
|
|
132
133
|
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"),
|
|
133
134
|
method: "POST",
|
|
134
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
135
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.3", "User-Agent": "twelvelabs-js/1.2.3", "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),
|
|
135
136
|
contentType: "application/json",
|
|
136
137
|
requestType: "json",
|
|
137
138
|
body: Object.assign(Object.assign({}, serializers.AnalyzeStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" })), { stream: true }),
|
|
@@ -210,6 +211,7 @@ class TwelvelabsApiClient {
|
|
|
210
211
|
*
|
|
211
212
|
* **Do not use this method for**:
|
|
212
213
|
* - 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.
|
|
214
|
+
* - Video segmentation. Use the [`POST`](/v1.3/api-reference/analyze-videos/create-async-analysis-task) method of the `/analyze/tasks` endpoint with `model_name` set to `pegasus1.5` instead.
|
|
213
215
|
*
|
|
214
216
|
* <Note title="Notes">
|
|
215
217
|
* - This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page.
|
|
@@ -258,7 +260,7 @@ class TwelvelabsApiClient {
|
|
|
258
260
|
const _response = yield core.fetcher({
|
|
259
261
|
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"),
|
|
260
262
|
method: "POST",
|
|
261
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
263
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.3", "User-Agent": "twelvelabs-js/1.2.3", "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),
|
|
262
264
|
contentType: "application/json",
|
|
263
265
|
requestType: "json",
|
|
264
266
|
body: Object.assign(Object.assign({}, serializers.AnalyzeRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" })), { stream: false }),
|
|
@@ -41,6 +41,6 @@ export interface AnalyzeRequest {
|
|
|
41
41
|
video?: TwelvelabsApi.VideoContext;
|
|
42
42
|
prompt: TwelvelabsApi.AnalyzeTextPrompt;
|
|
43
43
|
temperature?: TwelvelabsApi.AnalyzeTemperature;
|
|
44
|
-
responseFormat?: TwelvelabsApi.
|
|
44
|
+
responseFormat?: TwelvelabsApi.SyncResponseFormat;
|
|
45
45
|
maxTokens?: TwelvelabsApi.AnalyzeMaxTokens;
|
|
46
46
|
}
|
|
@@ -41,6 +41,6 @@ export interface AnalyzeStreamRequest {
|
|
|
41
41
|
video?: TwelvelabsApi.VideoContext;
|
|
42
42
|
prompt: TwelvelabsApi.AnalyzeTextPrompt;
|
|
43
43
|
temperature?: TwelvelabsApi.AnalyzeTemperature;
|
|
44
|
-
responseFormat?: TwelvelabsApi.
|
|
44
|
+
responseFormat?: TwelvelabsApi.SyncResponseFormat;
|
|
45
45
|
maxTokens?: TwelvelabsApi.AnalyzeMaxTokens;
|
|
46
46
|
}
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as errors from "../../errors/index";
|
|
5
|
-
import * as TwelvelabsApi from "../index";
|
|
6
5
|
import * as core from "../../core";
|
|
7
6
|
export declare class ConflictError extends errors.TwelvelabsApiError {
|
|
8
|
-
constructor(body
|
|
7
|
+
constructor(body?: unknown, rawResponse?: core.RawResponse);
|
|
9
8
|
}
|
package/dist/api/errors/index.js
CHANGED
|
@@ -17,6 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./BadRequestError"), exports);
|
|
18
18
|
__exportStar(require("./NotFoundError"), exports);
|
|
19
19
|
__exportStar(require("./InternalServerError"), exports);
|
|
20
|
+
__exportStar(require("./ConflictError"), exports);
|
|
20
21
|
__exportStar(require("./ForbiddenError"), exports);
|
|
21
22
|
__exportStar(require("./TooManyRequestsError"), exports);
|
|
22
|
-
__exportStar(require("./ConflictError"), exports);
|
|
@@ -37,13 +37,16 @@ export declare class Tasks {
|
|
|
37
37
|
* await client.analyzeAsync.tasks.list({
|
|
38
38
|
* page: 1,
|
|
39
39
|
* pageLimit: 10,
|
|
40
|
-
* status: "queued"
|
|
40
|
+
* status: "queued",
|
|
41
|
+
* videoUrl: "https://example.com/video.mp4",
|
|
42
|
+
* assetId: "69abc123def456789012abcd",
|
|
43
|
+
* analysisMode: "time_based_metadata"
|
|
41
44
|
* })
|
|
42
45
|
*/
|
|
43
46
|
list(request?: TwelvelabsApi.analyzeAsync.TasksListRequest, requestOptions?: Tasks.RequestOptions): core.HttpResponsePromise<TwelvelabsApi.analyzeAsync.TasksListResponse>;
|
|
44
47
|
private __list;
|
|
45
48
|
/**
|
|
46
|
-
* This method asynchronously analyzes your videos
|
|
49
|
+
* This method asynchronously analyzes your videos. It supports two modes: general analysis (prompt-based text generation) with Pegasus 1.2 and video segmentation with Pegasus 1.5.
|
|
47
50
|
*
|
|
48
51
|
* <Accordion title="Input requirements">
|
|
49
52
|
* - Minimum duration: 4 seconds
|
|
@@ -54,6 +57,8 @@ export declare class Tasks {
|
|
|
54
57
|
* </Accordion>
|
|
55
58
|
*
|
|
56
59
|
* **When to use this method**:
|
|
60
|
+
* - Generate custom text from your video using a prompt (Pegasus 1.2 only)
|
|
61
|
+
* - Extract timestamped metadata with custom fields from your video (Pegasus 1.5 only)
|
|
57
62
|
* - Analyze videos longer than 1 hour
|
|
58
63
|
* - Process videos asynchronously without blocking your application
|
|
59
64
|
*
|
|
@@ -86,6 +91,38 @@ export declare class Tasks {
|
|
|
86
91
|
* temperature: 0.2,
|
|
87
92
|
* maxTokens: 1000
|
|
88
93
|
* })
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
* await client.analyzeAsync.tasks.create({
|
|
97
|
+
* modelName: "pegasus1.5",
|
|
98
|
+
* video: {
|
|
99
|
+
* type: "url",
|
|
100
|
+
* url: "https://example.com/video.mp4"
|
|
101
|
+
* },
|
|
102
|
+
* analysisMode: "time_based_metadata",
|
|
103
|
+
* responseFormat: {
|
|
104
|
+
* type: "segment_definitions",
|
|
105
|
+
* segmentDefinitions: [{
|
|
106
|
+
* id: "scene",
|
|
107
|
+
* description: "A distinct scene or setting change in the video",
|
|
108
|
+
* fields: [{
|
|
109
|
+
* name: "sentiment",
|
|
110
|
+
* type: "string",
|
|
111
|
+
* description: "The emotional tone of this segment",
|
|
112
|
+
* enum: ["positive", "negative", "neutral"]
|
|
113
|
+
* }, {
|
|
114
|
+
* name: "key_objects",
|
|
115
|
+
* type: "array",
|
|
116
|
+
* description: "Notable objects visible in this segment",
|
|
117
|
+
* items: {
|
|
118
|
+
* type: "string"
|
|
119
|
+
* }
|
|
120
|
+
* }]
|
|
121
|
+
* }]
|
|
122
|
+
* },
|
|
123
|
+
* minSegmentDuration: 5,
|
|
124
|
+
* maxSegmentDuration: 30
|
|
125
|
+
* })
|
|
89
126
|
*/
|
|
90
127
|
create(request: TwelvelabsApi.analyzeAsync.CreateAsyncAnalyzeRequest, requestOptions?: Tasks.RequestOptions): core.HttpResponsePromise<TwelvelabsApi.CreateAnalyzeTaskResponse>;
|
|
91
128
|
private __create;
|