twelvelabs-js 1.1.0 → 1.2.0
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 +14 -41
- package/Client.js +20 -106
- package/api/client/requests/index.d.ts +0 -1
- package/api/resources/assets/client/Client.d.ts +9 -8
- package/api/resources/assets/client/Client.js +11 -10
- package/api/resources/assets/client/requests/AssetsCreateRequest.d.ts +1 -3
- package/api/resources/embed/client/Client.d.ts +5 -4
- package/api/resources/embed/client/Client.js +4 -3
- package/api/resources/embed/resources/tasks/client/Client.d.ts +8 -4
- package/api/resources/embed/resources/tasks/client/Client.js +10 -6
- package/api/resources/embed/resources/tasks/client/requests/TasksCreateRequest.d.ts +1 -1
- package/api/resources/embed/resources/v2/client/Client.d.ts +8 -4
- package/api/resources/embed/resources/v2/client/Client.js +7 -3
- package/api/resources/embed/resources/v2/client/requests/CreateEmbeddingsRequest.d.ts +13 -3
- package/api/resources/embed/resources/v2/resources/tasks/client/Client.d.ts +8 -4
- package/api/resources/embed/resources/v2/resources/tasks/client/Client.js +9 -5
- package/api/resources/embed/resources/v2/resources/tasks/client/requests/CreateAsyncEmbeddingRequest.d.ts +3 -3
- package/api/resources/embed/resources/v2/resources/tasks/types/CreateAsyncEmbeddingRequestInputType.d.ts +1 -1
- package/api/resources/embed/resources/v2/resources/tasks/types/CreateAsyncEmbeddingRequestModelName.d.ts +10 -0
- package/api/resources/embed/resources/v2/resources/tasks/types/CreateAsyncEmbeddingRequestModelName.js +9 -0
- package/api/resources/embed/resources/v2/resources/tasks/types/TasksCreateResponse.d.ts +2 -2
- package/api/resources/embed/resources/v2/resources/tasks/types/TasksCreateResponseStatus.d.ts +10 -0
- package/{dist/api/resources/manageEntities/types/ListAllEntitiesRequestStatus.js → api/resources/embed/resources/v2/resources/tasks/types/TasksCreateResponseStatus.js} +2 -3
- package/api/resources/embed/resources/v2/resources/tasks/types/index.d.ts +2 -0
- package/api/resources/embed/resources/v2/resources/tasks/types/index.js +2 -0
- package/api/resources/embed/resources/v2/types/CreateEmbeddingsRequestInputType.d.ts +9 -1
- package/api/resources/embed/resources/v2/types/CreateEmbeddingsRequestModelName.d.ts +10 -0
- package/api/resources/embed/resources/v2/types/CreateEmbeddingsRequestModelName.js +9 -0
- package/api/resources/embed/resources/v2/types/index.d.ts +1 -0
- package/api/resources/embed/resources/v2/types/index.js +1 -0
- package/api/resources/entityCollections/client/Client.d.ts +3 -3
- package/api/resources/entityCollections/client/Client.js +6 -6
- package/api/resources/entityCollections/resources/entities/client/Client.d.ts +3 -3
- package/api/resources/entityCollections/resources/entities/client/Client.js +9 -9
- package/api/resources/index.d.ts +2 -4
- package/api/resources/index.js +3 -5
- package/api/resources/indexes/client/Client.d.ts +3 -3
- package/api/resources/indexes/client/Client.js +6 -6
- package/api/resources/indexes/resources/indexedAssets/client/Client.d.ts +19 -15
- package/api/resources/indexes/resources/indexedAssets/client/Client.js +22 -18
- package/api/resources/indexes/resources/indexedAssets/client/requests/IndexedAssetsListRequest.d.ts +1 -1
- package/api/resources/indexes/resources/indexedAssets/client/requests/IndexedAssetsRetrieveRequest.d.ts +1 -1
- package/api/resources/indexes/resources/videos/client/Client.d.ts +4 -4
- package/api/resources/indexes/resources/videos/client/Client.js +6 -6
- package/api/resources/multipartUpload/client/Client.d.ts +8 -8
- package/api/resources/multipartUpload/client/Client.js +12 -12
- package/api/resources/multipartUpload/client/requests/CreateAssetUploadRequest.d.ts +5 -1
- package/api/resources/multipartUpload/index.d.ts +1 -0
- package/api/resources/multipartUpload/index.js +1 -0
- package/api/resources/multipartUpload/types/CreateAssetUploadRequestType.d.ts +10 -0
- package/api/resources/multipartUpload/types/CreateAssetUploadRequestType.js +9 -0
- package/api/resources/multipartUpload/types/index.d.ts +1 -0
- package/api/resources/{manageEntities/client → multipartUpload/types}/index.js +1 -1
- package/api/resources/search/client/Client.d.ts +6 -9
- package/api/resources/search/client/Client.js +9 -10
- package/api/resources/search/client/requests/SearchCreateRequest.d.ts +2 -2
- package/api/resources/search/types/SearchCreateRequestQueryMediaType.d.ts +10 -0
- package/api/resources/search/types/SearchCreateRequestQueryMediaType.js +9 -0
- package/api/resources/search/types/index.d.ts +1 -0
- package/api/resources/search/types/index.js +1 -0
- package/api/resources/tasks/client/Client.d.ts +3 -3
- package/api/resources/tasks/client/Client.js +5 -5
- package/api/resources/tasks/resources/transfers/client/Client.d.ts +3 -3
- package/api/resources/tasks/resources/transfers/client/Client.js +4 -4
- package/api/types/Asset.d.ts +2 -12
- package/api/types/AssetStatus.d.ts +4 -4
- package/api/types/AssetStatus.js +1 -1
- package/api/types/AudioSegmentation.d.ts +1 -1
- package/api/types/AudioSegmentationStrategy.d.ts +7 -0
- package/api/types/AudioSegmentationStrategy.js +9 -0
- package/api/types/CompletedChunk.d.ts +2 -1
- package/api/types/CompletedChunkProofType.d.ts +10 -0
- package/api/{resources/manageEntities/client/requests/ListAllEntitiesRequest.js → types/CompletedChunkProofType.js} +4 -0
- package/api/types/CreateAssetUploadResponse.d.ts +4 -5
- package/api/types/EmbeddingData.d.ts +19 -0
- package/api/types/EmbeddingTaskResponse.d.ts +4 -1
- package/api/types/EmbeddingTaskResponseStatus.d.ts +3 -0
- package/api/types/IndexedAsset.d.ts +1 -1
- package/api/types/MediaSource.d.ts +2 -2
- package/api/types/ResponseFormat.d.ts +2 -1
- package/api/types/ResponseFormatType.d.ts +10 -0
- package/api/types/{GenerateResponse.js → ResponseFormatType.js} +4 -0
- package/api/types/VideoInputRequest.d.ts +2 -2
- package/api/types/index.d.ts +3 -1
- package/api/types/index.js +3 -1
- package/dist/Client.d.ts +14 -41
- package/dist/Client.js +20 -106
- package/dist/api/client/requests/index.d.ts +0 -1
- package/dist/api/resources/assets/client/Client.d.ts +9 -8
- package/dist/api/resources/assets/client/Client.js +11 -10
- package/dist/api/resources/assets/client/requests/AssetsCreateRequest.d.ts +1 -3
- package/dist/api/resources/embed/client/Client.d.ts +5 -4
- package/dist/api/resources/embed/client/Client.js +4 -3
- package/dist/api/resources/embed/resources/tasks/client/Client.d.ts +8 -4
- package/dist/api/resources/embed/resources/tasks/client/Client.js +10 -6
- package/dist/api/resources/embed/resources/tasks/client/requests/TasksCreateRequest.d.ts +1 -1
- package/dist/api/resources/embed/resources/v2/client/Client.d.ts +8 -4
- package/dist/api/resources/embed/resources/v2/client/Client.js +7 -3
- package/dist/api/resources/embed/resources/v2/client/requests/CreateEmbeddingsRequest.d.ts +13 -3
- package/dist/api/resources/embed/resources/v2/resources/tasks/client/Client.d.ts +8 -4
- package/dist/api/resources/embed/resources/v2/resources/tasks/client/Client.js +9 -5
- package/dist/api/resources/embed/resources/v2/resources/tasks/client/requests/CreateAsyncEmbeddingRequest.d.ts +3 -3
- package/dist/api/resources/embed/resources/v2/resources/tasks/types/CreateAsyncEmbeddingRequestInputType.d.ts +1 -1
- package/dist/api/resources/embed/resources/v2/resources/tasks/types/CreateAsyncEmbeddingRequestModelName.d.ts +10 -0
- package/dist/api/resources/embed/resources/v2/resources/tasks/types/CreateAsyncEmbeddingRequestModelName.js +9 -0
- package/dist/api/resources/embed/resources/v2/resources/tasks/types/TasksCreateResponse.d.ts +2 -2
- package/dist/api/resources/embed/resources/v2/resources/tasks/types/TasksCreateResponseStatus.d.ts +10 -0
- package/{api/resources/manageEntities/types/ListAllEntitiesRequestStatus.js → dist/api/resources/embed/resources/v2/resources/tasks/types/TasksCreateResponseStatus.js} +2 -3
- package/dist/api/resources/embed/resources/v2/resources/tasks/types/index.d.ts +2 -0
- package/dist/api/resources/embed/resources/v2/resources/tasks/types/index.js +2 -0
- package/dist/api/resources/embed/resources/v2/types/CreateEmbeddingsRequestInputType.d.ts +9 -1
- package/dist/api/resources/embed/resources/v2/types/CreateEmbeddingsRequestModelName.d.ts +10 -0
- package/dist/api/resources/embed/resources/v2/types/CreateEmbeddingsRequestModelName.js +9 -0
- package/dist/api/resources/embed/resources/v2/types/index.d.ts +1 -0
- package/dist/api/resources/embed/resources/v2/types/index.js +1 -0
- package/dist/api/resources/entityCollections/client/Client.d.ts +3 -3
- package/dist/api/resources/entityCollections/client/Client.js +6 -6
- package/dist/api/resources/entityCollections/resources/entities/client/Client.d.ts +3 -3
- package/dist/api/resources/entityCollections/resources/entities/client/Client.js +9 -9
- package/dist/api/resources/index.d.ts +2 -4
- package/dist/api/resources/index.js +3 -5
- package/dist/api/resources/indexes/client/Client.d.ts +3 -3
- package/dist/api/resources/indexes/client/Client.js +6 -6
- package/dist/api/resources/indexes/resources/indexedAssets/client/Client.d.ts +19 -15
- package/dist/api/resources/indexes/resources/indexedAssets/client/Client.js +22 -18
- package/dist/api/resources/indexes/resources/indexedAssets/client/requests/IndexedAssetsListRequest.d.ts +1 -1
- package/dist/api/resources/indexes/resources/indexedAssets/client/requests/IndexedAssetsRetrieveRequest.d.ts +1 -1
- package/dist/api/resources/indexes/resources/videos/client/Client.d.ts +4 -4
- package/dist/api/resources/indexes/resources/videos/client/Client.js +6 -6
- package/dist/api/resources/multipartUpload/client/Client.d.ts +8 -8
- package/dist/api/resources/multipartUpload/client/Client.js +12 -12
- package/dist/api/resources/multipartUpload/client/requests/CreateAssetUploadRequest.d.ts +5 -1
- package/dist/api/resources/multipartUpload/index.d.ts +1 -0
- package/dist/api/resources/multipartUpload/index.js +1 -0
- package/dist/api/resources/multipartUpload/types/CreateAssetUploadRequestType.d.ts +10 -0
- package/dist/api/resources/multipartUpload/types/CreateAssetUploadRequestType.js +9 -0
- package/dist/api/resources/multipartUpload/types/index.d.ts +1 -0
- package/dist/api/resources/{manageEntities/client → multipartUpload/types}/index.js +1 -1
- package/dist/api/resources/search/client/Client.d.ts +6 -9
- package/dist/api/resources/search/client/Client.js +9 -10
- package/dist/api/resources/search/client/requests/SearchCreateRequest.d.ts +2 -2
- package/dist/api/resources/search/types/SearchCreateRequestQueryMediaType.d.ts +10 -0
- package/dist/api/resources/search/types/SearchCreateRequestQueryMediaType.js +9 -0
- package/dist/api/resources/search/types/index.d.ts +1 -0
- package/dist/api/resources/search/types/index.js +1 -0
- package/dist/api/resources/tasks/client/Client.d.ts +3 -3
- package/dist/api/resources/tasks/client/Client.js +5 -5
- package/dist/api/resources/tasks/resources/transfers/client/Client.d.ts +3 -3
- package/dist/api/resources/tasks/resources/transfers/client/Client.js +4 -4
- package/dist/api/types/Asset.d.ts +2 -12
- package/dist/api/types/AssetStatus.d.ts +4 -4
- package/dist/api/types/AssetStatus.js +1 -1
- package/dist/api/types/AudioSegmentation.d.ts +1 -1
- package/dist/api/types/AudioSegmentationStrategy.d.ts +7 -0
- package/dist/api/types/AudioSegmentationStrategy.js +9 -0
- package/dist/api/types/CompletedChunk.d.ts +2 -1
- package/dist/api/types/CompletedChunkProofType.d.ts +10 -0
- package/{api/client/requests/GenerateRequest.js → dist/api/types/CompletedChunkProofType.js} +4 -0
- package/dist/api/types/CreateAssetUploadResponse.d.ts +4 -5
- package/dist/api/types/EmbeddingData.d.ts +19 -0
- package/dist/api/types/EmbeddingTaskResponse.d.ts +4 -1
- package/dist/api/types/EmbeddingTaskResponseStatus.d.ts +3 -0
- package/dist/api/types/IndexedAsset.d.ts +1 -1
- package/dist/api/types/MediaSource.d.ts +2 -2
- package/dist/api/types/ResponseFormat.d.ts +2 -1
- package/dist/api/types/ResponseFormatType.d.ts +10 -0
- package/{api/resources/manageEntities/types/ListAllEntitiesResponse.js → dist/api/types/ResponseFormatType.js} +4 -0
- package/dist/api/types/VideoInputRequest.d.ts +2 -2
- package/dist/api/types/index.d.ts +3 -1
- package/dist/api/types/index.js +3 -1
- package/dist/serialization/client/requests/index.d.ts +0 -1
- package/dist/serialization/client/requests/index.js +1 -3
- package/dist/serialization/resources/embed/resources/v2/client/requests/CreateEmbeddingsRequest.d.ts +2 -1
- package/dist/serialization/resources/embed/resources/v2/client/requests/CreateEmbeddingsRequest.js +2 -1
- package/dist/serialization/resources/embed/resources/v2/resources/tasks/client/requests/CreateAsyncEmbeddingRequest.d.ts +2 -1
- package/dist/serialization/resources/embed/resources/v2/resources/tasks/client/requests/CreateAsyncEmbeddingRequest.js +2 -1
- package/dist/serialization/resources/embed/resources/v2/resources/tasks/types/CreateAsyncEmbeddingRequestModelName.d.ts +10 -0
- package/dist/serialization/resources/embed/resources/v2/resources/tasks/types/CreateAsyncEmbeddingRequestModelName.js +41 -0
- package/dist/serialization/resources/embed/resources/v2/resources/tasks/types/TasksCreateResponse.d.ts +2 -1
- package/dist/serialization/resources/embed/resources/v2/resources/tasks/types/TasksCreateResponse.js +2 -1
- package/dist/serialization/resources/embed/resources/v2/resources/tasks/types/TasksCreateResponseStatus.d.ts +10 -0
- package/dist/serialization/resources/embed/resources/v2/resources/tasks/types/TasksCreateResponseStatus.js +41 -0
- package/dist/serialization/resources/embed/resources/v2/resources/tasks/types/index.d.ts +2 -0
- package/dist/serialization/resources/embed/resources/v2/resources/tasks/types/index.js +2 -0
- package/dist/serialization/resources/embed/resources/v2/types/CreateEmbeddingsRequestModelName.d.ts +10 -0
- package/dist/serialization/resources/embed/resources/v2/types/CreateEmbeddingsRequestModelName.js +41 -0
- package/dist/serialization/resources/embed/resources/v2/types/index.d.ts +1 -0
- package/dist/serialization/resources/embed/resources/v2/types/index.js +1 -0
- package/dist/serialization/resources/index.d.ts +2 -3
- package/dist/serialization/resources/index.js +3 -4
- 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/resources/multipartUpload/index.d.ts +1 -0
- package/dist/serialization/resources/multipartUpload/index.js +1 -0
- package/dist/serialization/resources/multipartUpload/types/CreateAssetUploadRequestType.d.ts +10 -0
- package/dist/serialization/resources/{manageEntities/types/ListAllEntitiesRequestStatus.js → multipartUpload/types/CreateAssetUploadRequestType.js} +2 -2
- package/dist/serialization/resources/multipartUpload/types/index.d.ts +1 -0
- package/dist/serialization/resources/{manageEntities → multipartUpload/types}/index.js +1 -1
- package/dist/serialization/resources/search/types/SearchCreateRequestQueryMediaType.d.ts +10 -0
- package/{serialization/resources/manageEntities/types/ListAllEntitiesRequestStatus.js → dist/serialization/resources/search/types/SearchCreateRequestQueryMediaType.js} +2 -2
- package/dist/serialization/resources/search/types/index.d.ts +1 -0
- package/dist/serialization/resources/search/types/index.js +1 -0
- package/dist/serialization/types/Asset.d.ts +0 -2
- package/dist/serialization/types/Asset.js +0 -2
- package/dist/serialization/types/AssetStatus.d.ts +1 -1
- package/dist/serialization/types/AssetStatus.js +1 -1
- package/dist/serialization/types/AudioSegmentation.d.ts +2 -1
- package/dist/serialization/types/AudioSegmentation.js +2 -1
- package/dist/serialization/types/AudioSegmentationStrategy.d.ts +10 -0
- package/dist/serialization/types/AudioSegmentationStrategy.js +41 -0
- package/dist/serialization/types/CompletedChunk.d.ts +2 -1
- package/dist/serialization/types/CompletedChunk.js +2 -1
- package/dist/serialization/types/CompletedChunkProofType.d.ts +10 -0
- package/dist/serialization/types/CompletedChunkProofType.js +41 -0
- package/dist/serialization/types/ResponseFormat.d.ts +2 -1
- package/dist/serialization/types/ResponseFormat.js +2 -1
- package/dist/serialization/types/ResponseFormatType.d.ts +10 -0
- package/dist/serialization/types/ResponseFormatType.js +41 -0
- package/dist/serialization/types/index.d.ts +3 -1
- package/dist/serialization/types/index.js +3 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wrapper/TwelveLabs.d.ts +1 -1
- package/dist/wrapper/resources/MultipartUploadWrapper.d.ts +2 -1
- package/dist/wrapper/resources/MultipartUploadWrapper.js +3 -1
- package/package.json +1 -1
- package/reference.md +66 -124
- package/serialization/client/requests/index.d.ts +0 -1
- package/serialization/client/requests/index.js +1 -3
- package/serialization/resources/embed/resources/v2/client/requests/CreateEmbeddingsRequest.d.ts +2 -1
- package/serialization/resources/embed/resources/v2/client/requests/CreateEmbeddingsRequest.js +2 -1
- package/serialization/resources/embed/resources/v2/resources/tasks/client/requests/CreateAsyncEmbeddingRequest.d.ts +2 -1
- package/serialization/resources/embed/resources/v2/resources/tasks/client/requests/CreateAsyncEmbeddingRequest.js +2 -1
- package/serialization/resources/embed/resources/v2/resources/tasks/types/CreateAsyncEmbeddingRequestModelName.d.ts +10 -0
- package/serialization/resources/embed/resources/v2/resources/tasks/types/CreateAsyncEmbeddingRequestModelName.js +41 -0
- package/serialization/resources/embed/resources/v2/resources/tasks/types/TasksCreateResponse.d.ts +2 -1
- package/serialization/resources/embed/resources/v2/resources/tasks/types/TasksCreateResponse.js +2 -1
- package/serialization/resources/embed/resources/v2/resources/tasks/types/TasksCreateResponseStatus.d.ts +10 -0
- package/serialization/resources/embed/resources/v2/resources/tasks/types/TasksCreateResponseStatus.js +41 -0
- package/serialization/resources/embed/resources/v2/resources/tasks/types/index.d.ts +2 -0
- package/serialization/resources/embed/resources/v2/resources/tasks/types/index.js +2 -0
- package/serialization/resources/embed/resources/v2/types/CreateEmbeddingsRequestModelName.d.ts +10 -0
- package/serialization/resources/embed/resources/v2/types/CreateEmbeddingsRequestModelName.js +41 -0
- package/serialization/resources/embed/resources/v2/types/index.d.ts +1 -0
- package/serialization/resources/embed/resources/v2/types/index.js +1 -0
- package/serialization/resources/index.d.ts +2 -3
- package/serialization/resources/index.js +3 -4
- package/serialization/resources/multipartUpload/client/requests/CreateAssetUploadRequest.d.ts +2 -0
- package/serialization/resources/multipartUpload/client/requests/CreateAssetUploadRequest.js +2 -0
- package/serialization/resources/multipartUpload/index.d.ts +1 -0
- package/serialization/resources/multipartUpload/index.js +1 -0
- package/serialization/resources/multipartUpload/types/CreateAssetUploadRequestType.d.ts +10 -0
- package/serialization/resources/{manageEntities/types/ListAllEntitiesRequestSortBy.js → multipartUpload/types/CreateAssetUploadRequestType.js} +2 -2
- package/serialization/resources/multipartUpload/types/index.d.ts +1 -0
- package/serialization/resources/{manageEntities → multipartUpload/types}/index.js +1 -1
- package/serialization/resources/search/types/SearchCreateRequestQueryMediaType.d.ts +10 -0
- package/{dist/serialization/resources/manageEntities/types/ListAllEntitiesRequestSortBy.js → serialization/resources/search/types/SearchCreateRequestQueryMediaType.js} +2 -2
- package/serialization/resources/search/types/index.d.ts +1 -0
- package/serialization/resources/search/types/index.js +1 -0
- package/serialization/types/Asset.d.ts +0 -2
- package/serialization/types/Asset.js +0 -2
- package/serialization/types/AssetStatus.d.ts +1 -1
- package/serialization/types/AssetStatus.js +1 -1
- package/serialization/types/AudioSegmentation.d.ts +2 -1
- package/serialization/types/AudioSegmentation.js +2 -1
- package/serialization/types/AudioSegmentationStrategy.d.ts +10 -0
- package/serialization/types/AudioSegmentationStrategy.js +41 -0
- package/serialization/types/CompletedChunk.d.ts +2 -1
- package/serialization/types/CompletedChunk.js +2 -1
- package/serialization/types/CompletedChunkProofType.d.ts +10 -0
- package/serialization/types/CompletedChunkProofType.js +41 -0
- package/serialization/types/ResponseFormat.d.ts +2 -1
- package/serialization/types/ResponseFormat.js +2 -1
- package/serialization/types/ResponseFormatType.d.ts +10 -0
- package/serialization/types/ResponseFormatType.js +41 -0
- package/serialization/types/index.d.ts +3 -1
- package/serialization/types/index.js +3 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/wrapper/TwelveLabs.d.ts +1 -1
- package/wrapper/resources/MultipartUploadWrapper.d.ts +2 -1
- package/wrapper/resources/MultipartUploadWrapper.js +3 -1
- package/api/client/requests/GenerateRequest.d.ts +0 -69
- package/api/resources/manageEntities/client/Client.d.ts +0 -52
- package/api/resources/manageEntities/client/Client.js +0 -169
- package/api/resources/manageEntities/client/index.d.ts +0 -1
- package/api/resources/manageEntities/client/requests/ListAllEntitiesRequest.d.ts +0 -50
- package/api/resources/manageEntities/client/requests/index.d.ts +0 -1
- package/api/resources/manageEntities/client/requests/index.js +0 -2
- package/api/resources/manageEntities/index.d.ts +0 -2
- package/api/resources/manageEntities/index.js +0 -18
- package/api/resources/manageEntities/types/ListAllEntitiesRequestSortBy.d.ts +0 -9
- package/api/resources/manageEntities/types/ListAllEntitiesRequestSortBy.js +0 -11
- package/api/resources/manageEntities/types/ListAllEntitiesRequestStatus.d.ts +0 -8
- package/api/resources/manageEntities/types/ListAllEntitiesResponse.d.ts +0 -9
- package/api/resources/manageEntities/types/index.d.ts +0 -3
- package/api/resources/manageEntities/types/index.js +0 -19
- package/api/types/GenerateResponse.d.ts +0 -5
- package/dist/api/client/requests/GenerateRequest.d.ts +0 -69
- package/dist/api/client/requests/GenerateRequest.js +0 -5
- package/dist/api/resources/manageEntities/client/Client.d.ts +0 -52
- package/dist/api/resources/manageEntities/client/Client.js +0 -169
- package/dist/api/resources/manageEntities/client/index.d.ts +0 -1
- package/dist/api/resources/manageEntities/client/requests/ListAllEntitiesRequest.d.ts +0 -50
- package/dist/api/resources/manageEntities/client/requests/ListAllEntitiesRequest.js +0 -5
- package/dist/api/resources/manageEntities/client/requests/index.d.ts +0 -1
- package/dist/api/resources/manageEntities/client/requests/index.js +0 -2
- package/dist/api/resources/manageEntities/index.d.ts +0 -2
- package/dist/api/resources/manageEntities/index.js +0 -18
- package/dist/api/resources/manageEntities/types/ListAllEntitiesRequestSortBy.d.ts +0 -9
- package/dist/api/resources/manageEntities/types/ListAllEntitiesRequestSortBy.js +0 -11
- package/dist/api/resources/manageEntities/types/ListAllEntitiesRequestStatus.d.ts +0 -8
- package/dist/api/resources/manageEntities/types/ListAllEntitiesResponse.d.ts +0 -9
- package/dist/api/resources/manageEntities/types/ListAllEntitiesResponse.js +0 -5
- package/dist/api/resources/manageEntities/types/index.d.ts +0 -3
- package/dist/api/resources/manageEntities/types/index.js +0 -19
- package/dist/api/types/GenerateResponse.d.ts +0 -5
- package/dist/api/types/GenerateResponse.js +0 -5
- package/dist/serialization/client/requests/GenerateRequest.d.ts +0 -15
- package/dist/serialization/client/requests/GenerateRequest.js +0 -46
- package/dist/serialization/resources/manageEntities/index.d.ts +0 -1
- package/dist/serialization/resources/manageEntities/types/ListAllEntitiesRequestSortBy.d.ts +0 -10
- package/dist/serialization/resources/manageEntities/types/ListAllEntitiesRequestStatus.d.ts +0 -10
- package/dist/serialization/resources/manageEntities/types/ListAllEntitiesResponse.d.ts +0 -15
- package/dist/serialization/resources/manageEntities/types/ListAllEntitiesResponse.js +0 -46
- package/dist/serialization/resources/manageEntities/types/index.d.ts +0 -3
- package/dist/serialization/resources/manageEntities/types/index.js +0 -19
- package/dist/serialization/types/GenerateResponse.d.ts +0 -12
- package/dist/serialization/types/GenerateResponse.js +0 -43
- package/serialization/client/requests/GenerateRequest.d.ts +0 -15
- package/serialization/client/requests/GenerateRequest.js +0 -46
- package/serialization/resources/manageEntities/index.d.ts +0 -1
- package/serialization/resources/manageEntities/types/ListAllEntitiesRequestSortBy.d.ts +0 -10
- package/serialization/resources/manageEntities/types/ListAllEntitiesRequestStatus.d.ts +0 -10
- package/serialization/resources/manageEntities/types/ListAllEntitiesResponse.d.ts +0 -15
- package/serialization/resources/manageEntities/types/ListAllEntitiesResponse.js +0 -46
- package/serialization/resources/manageEntities/types/index.d.ts +0 -3
- package/serialization/resources/manageEntities/types/index.js +0 -19
- package/serialization/types/GenerateResponse.d.ts +0 -12
- package/serialization/types/GenerateResponse.js +0 -43
package/Client.d.ts
CHANGED
|
@@ -9,7 +9,6 @@ import { Indexes } from "./api/resources/indexes/client/Client";
|
|
|
9
9
|
import { Assets } from "./api/resources/assets/client/Client";
|
|
10
10
|
import { MultipartUpload } from "./api/resources/multipartUpload/client/Client";
|
|
11
11
|
import { EntityCollections } from "./api/resources/entityCollections/client/Client";
|
|
12
|
-
import { ManageEntities } from "./api/resources/manageEntities/client/Client";
|
|
13
12
|
import { Embed } from "./api/resources/embed/client/Client";
|
|
14
13
|
import { Search } from "./api/resources/search/client/Client";
|
|
15
14
|
export declare namespace TwelvelabsApiClient {
|
|
@@ -17,7 +16,7 @@ export declare namespace TwelvelabsApiClient {
|
|
|
17
16
|
environment?: core.Supplier<environments.TwelvelabsApiEnvironment | string>;
|
|
18
17
|
/** Specify a custom URL to connect the client to. */
|
|
19
18
|
baseUrl?: core.Supplier<string>;
|
|
20
|
-
apiKey
|
|
19
|
+
apiKey: core.Supplier<string>;
|
|
21
20
|
}
|
|
22
21
|
interface RequestOptions {
|
|
23
22
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -37,19 +36,22 @@ export declare class TwelvelabsApiClient {
|
|
|
37
36
|
protected _assets: Assets | undefined;
|
|
38
37
|
protected _multipartUpload: MultipartUpload | undefined;
|
|
39
38
|
protected _entityCollections: EntityCollections | undefined;
|
|
40
|
-
protected _manageEntities: ManageEntities | undefined;
|
|
41
39
|
protected _embed: Embed | undefined;
|
|
42
40
|
protected _search: Search | undefined;
|
|
43
|
-
constructor(_options
|
|
41
|
+
constructor(_options: TwelvelabsApiClient.Options);
|
|
44
42
|
get tasks(): Tasks;
|
|
45
43
|
get indexes(): Indexes;
|
|
46
44
|
get assets(): Assets;
|
|
47
45
|
get multipartUpload(): MultipartUpload;
|
|
48
46
|
get entityCollections(): EntityCollections;
|
|
49
|
-
get manageEntities(): ManageEntities;
|
|
50
47
|
get embed(): Embed;
|
|
51
48
|
get search(): Search;
|
|
52
49
|
/**
|
|
50
|
+
*
|
|
51
|
+
* <Note title="Deprecation notice">
|
|
52
|
+
* This endpoint will be sunset and removed. Use the [`POST`](/v1.3/api-reference/analyze-videos/analyze) method of the `/analyze` endpoint. Pass the [`response_format`](/v1.3/api-reference/analyze-videos/analyze#request.body.response_format) parameter to specify the format of the response as structured JSON. For migration instructions, see the [Release notes](/v1.3/docs/get-started/release-notes#predefined-formats-for-video-analysis-will-be-sunset-and-removed) page.
|
|
53
|
+
* </Note>
|
|
54
|
+
*
|
|
53
55
|
* This endpoint analyzes videos and generates summaries, chapters, or highlights. Optionally, you can provide a prompt to customize the output.
|
|
54
56
|
*
|
|
55
57
|
* <Note title="Note">
|
|
@@ -73,12 +75,12 @@ export declare class TwelvelabsApiClient {
|
|
|
73
75
|
summarize(request: TwelvelabsApi.SummarizeRequest, requestOptions?: TwelvelabsApiClient.RequestOptions): core.HttpResponsePromise<TwelvelabsApi.SummarizeResponse>;
|
|
74
76
|
private __summarize;
|
|
75
77
|
/**
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
* <Note title="Note">
|
|
79
|
-
* This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page.
|
|
78
|
+
* <Note title="Deprecation notice">
|
|
79
|
+
* This endpoint will be sunset and removed on February 15, 2026. Instead, use the [`POST`](/v1.3/api-reference/analyze-videos/analyze) method of the `/analyze` endpoint, passing the [`response_format`](/v1.3/api-reference/analyze-videos/analyze#request.body.response_format) parameter to specify the format of the response as structured JSON. For migration instructions, see the [Release notes](/v1.3/docs/get-started/release-notes#predefined-formats-for-video-analysis-will-be-sunset-and-removed) page.
|
|
80
80
|
* </Note>
|
|
81
81
|
*
|
|
82
|
+
* This method analyzes videos and generates titles, topics, and hashtags.
|
|
83
|
+
*
|
|
82
84
|
* @param {TwelvelabsApi.GistRequest} request
|
|
83
85
|
* @param {TwelvelabsApiClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
84
86
|
*
|
|
@@ -93,41 +95,12 @@ export declare class TwelvelabsApiClient {
|
|
|
93
95
|
*/
|
|
94
96
|
gist(request: TwelvelabsApi.GistRequest, requestOptions?: TwelvelabsApiClient.RequestOptions): core.HttpResponsePromise<TwelvelabsApi.Gist>;
|
|
95
97
|
private __gist;
|
|
96
|
-
/**
|
|
97
|
-
* <Warning>
|
|
98
|
-
* This endpoint is deprecated. Use the [`/analyze`](/v1.3/api-reference/analyze-videos/analyze) endpoint instead, which provides identical functionality.
|
|
99
|
-
* </Warning>
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
* This endpoint generates open-ended texts based on your videos, including but not limited to tables of content, action items, memos, and detailed analyses.
|
|
103
|
-
*
|
|
104
|
-
* <Note title="Notes">
|
|
105
|
-
* - This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page.
|
|
106
|
-
* - This endpoint supports streaming responses. For details on integrating this feature into your application, refer to the [Open-ended analysis](/v1.3/docs/guides/analyze-videos/open-ended-analysis#streaming-responses) guide.
|
|
107
|
-
* </Note>
|
|
108
|
-
*
|
|
109
|
-
* @param {TwelvelabsApi.GenerateRequest} request
|
|
110
|
-
* @param {TwelvelabsApiClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
111
|
-
*
|
|
112
|
-
* @throws {@link TwelvelabsApi.BadRequestError}
|
|
113
|
-
* @throws {@link TwelvelabsApi.TooManyRequestsError}
|
|
114
|
-
*
|
|
115
|
-
* @example
|
|
116
|
-
* await client.generate({
|
|
117
|
-
* videoId: "6298d673f1090f1100476d4c",
|
|
118
|
-
* prompt: "I want to generate a description for my video with the following format - Title of the video, followed by a summary in 2-3 sentences, highlighting the main topic, key events, and concluding remarks.",
|
|
119
|
-
* temperature: 0.2,
|
|
120
|
-
* stream: true
|
|
121
|
-
* })
|
|
122
|
-
*/
|
|
123
|
-
generate(request: TwelvelabsApi.GenerateRequest, requestOptions?: TwelvelabsApiClient.RequestOptions): core.HttpResponsePromise<TwelvelabsApi.GenerateResponse>;
|
|
124
|
-
private __generate;
|
|
125
98
|
/**
|
|
126
99
|
* This endpoint analyzes your videos and creates fully customizable text based on your prompts, including but not limited to tables of content, action items, memos, and detailed analyses.
|
|
127
100
|
*
|
|
128
101
|
* <Note title="Notes">
|
|
129
102
|
* - This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page.
|
|
130
|
-
* - This endpoint supports streaming responses. For details on integrating this feature into your application, refer to the [
|
|
103
|
+
* - This endpoint supports streaming responses. For details on integrating this feature into your application, refer to the [Analyze videos](/v1.3/docs/guides/analyze-videos) page.
|
|
131
104
|
* </Note>
|
|
132
105
|
*/
|
|
133
106
|
analyzeStream(request: TwelvelabsApi.AnalyzeStreamRequest, requestOptions?: TwelvelabsApiClient.RequestOptions): core.HttpResponsePromise<core.Stream<TwelvelabsApi.StreamAnalyzeResponse>>;
|
|
@@ -137,7 +110,7 @@ export declare class TwelvelabsApiClient {
|
|
|
137
110
|
*
|
|
138
111
|
* <Note title="Notes">
|
|
139
112
|
* - This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page.
|
|
140
|
-
* - This endpoint supports streaming responses. For details on integrating this feature into your application, refer to the [
|
|
113
|
+
* - This endpoint supports streaming responses. For details on integrating this feature into your application, refer to the [Analyze videos](/v1.3/docs/guides/analyze-videos) page.
|
|
141
114
|
* </Note>
|
|
142
115
|
*
|
|
143
116
|
* @param {TwelvelabsApi.AnalyzeRequest} request
|
|
@@ -177,6 +150,6 @@ export declare class TwelvelabsApiClient {
|
|
|
177
150
|
analyze(request: TwelvelabsApi.AnalyzeRequest, requestOptions?: TwelvelabsApiClient.RequestOptions): core.HttpResponsePromise<TwelvelabsApi.NonStreamAnalyzeResponse>;
|
|
178
151
|
private __analyze;
|
|
179
152
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
180
|
-
"x-api-key": string
|
|
153
|
+
"x-api-key": string;
|
|
181
154
|
}>;
|
|
182
155
|
}
|
package/Client.js
CHANGED
|
@@ -60,11 +60,10 @@ const Client_2 = require("./api/resources/indexes/client/Client");
|
|
|
60
60
|
const Client_3 = require("./api/resources/assets/client/Client");
|
|
61
61
|
const Client_4 = require("./api/resources/multipartUpload/client/Client");
|
|
62
62
|
const Client_5 = require("./api/resources/entityCollections/client/Client");
|
|
63
|
-
const Client_6 = require("./api/resources/
|
|
64
|
-
const Client_7 = require("./api/resources/
|
|
65
|
-
const Client_8 = require("./api/resources/search/client/Client");
|
|
63
|
+
const Client_6 = require("./api/resources/embed/client/Client");
|
|
64
|
+
const Client_7 = require("./api/resources/search/client/Client");
|
|
66
65
|
class TwelvelabsApiClient {
|
|
67
|
-
constructor(_options
|
|
66
|
+
constructor(_options) {
|
|
68
67
|
this._options = _options;
|
|
69
68
|
}
|
|
70
69
|
get tasks() {
|
|
@@ -87,19 +86,20 @@ class TwelvelabsApiClient {
|
|
|
87
86
|
var _a;
|
|
88
87
|
return ((_a = this._entityCollections) !== null && _a !== void 0 ? _a : (this._entityCollections = new Client_5.EntityCollections(this._options)));
|
|
89
88
|
}
|
|
90
|
-
get manageEntities() {
|
|
91
|
-
var _a;
|
|
92
|
-
return ((_a = this._manageEntities) !== null && _a !== void 0 ? _a : (this._manageEntities = new Client_6.ManageEntities(this._options)));
|
|
93
|
-
}
|
|
94
89
|
get embed() {
|
|
95
90
|
var _a;
|
|
96
|
-
return ((_a = this._embed) !== null && _a !== void 0 ? _a : (this._embed = new
|
|
91
|
+
return ((_a = this._embed) !== null && _a !== void 0 ? _a : (this._embed = new Client_6.Embed(this._options)));
|
|
97
92
|
}
|
|
98
93
|
get search() {
|
|
99
94
|
var _a;
|
|
100
|
-
return ((_a = this._search) !== null && _a !== void 0 ? _a : (this._search = new
|
|
95
|
+
return ((_a = this._search) !== null && _a !== void 0 ? _a : (this._search = new Client_7.Search(this._options)));
|
|
101
96
|
}
|
|
102
97
|
/**
|
|
98
|
+
*
|
|
99
|
+
* <Note title="Deprecation notice">
|
|
100
|
+
* This endpoint will be sunset and removed. Use the [`POST`](/v1.3/api-reference/analyze-videos/analyze) method of the `/analyze` endpoint. Pass the [`response_format`](/v1.3/api-reference/analyze-videos/analyze#request.body.response_format) parameter to specify the format of the response as structured JSON. For migration instructions, see the [Release notes](/v1.3/docs/get-started/release-notes#predefined-formats-for-video-analysis-will-be-sunset-and-removed) page.
|
|
101
|
+
* </Note>
|
|
102
|
+
*
|
|
103
103
|
* This endpoint analyzes videos and generates summaries, chapters, or highlights. Optionally, you can provide a prompt to customize the output.
|
|
104
104
|
*
|
|
105
105
|
* <Note title="Note">
|
|
@@ -129,7 +129,7 @@ class TwelvelabsApiClient {
|
|
|
129
129
|
const _response = yield core.fetcher({
|
|
130
130
|
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, "summarize"),
|
|
131
131
|
method: "POST",
|
|
132
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.
|
|
132
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.0", "User-Agent": "twelvelabs-js/1.2.0", "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),
|
|
133
133
|
contentType: "application/json",
|
|
134
134
|
requestType: "json",
|
|
135
135
|
body: serializers.SummarizeRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -180,12 +180,12 @@ class TwelvelabsApiClient {
|
|
|
180
180
|
});
|
|
181
181
|
}
|
|
182
182
|
/**
|
|
183
|
-
*
|
|
184
|
-
*
|
|
185
|
-
* <Note title="Note">
|
|
186
|
-
* This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page.
|
|
183
|
+
* <Note title="Deprecation notice">
|
|
184
|
+
* This endpoint will be sunset and removed on February 15, 2026. Instead, use the [`POST`](/v1.3/api-reference/analyze-videos/analyze) method of the `/analyze` endpoint, passing the [`response_format`](/v1.3/api-reference/analyze-videos/analyze#request.body.response_format) parameter to specify the format of the response as structured JSON. For migration instructions, see the [Release notes](/v1.3/docs/get-started/release-notes#predefined-formats-for-video-analysis-will-be-sunset-and-removed) page.
|
|
187
185
|
* </Note>
|
|
188
186
|
*
|
|
187
|
+
* This method analyzes videos and generates titles, topics, and hashtags.
|
|
188
|
+
*
|
|
189
189
|
* @param {TwelvelabsApi.GistRequest} request
|
|
190
190
|
* @param {TwelvelabsApiClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
191
191
|
*
|
|
@@ -207,7 +207,7 @@ class TwelvelabsApiClient {
|
|
|
207
207
|
const _response = yield core.fetcher({
|
|
208
208
|
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, "gist"),
|
|
209
209
|
method: "POST",
|
|
210
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.
|
|
210
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.0", "User-Agent": "twelvelabs-js/1.2.0", "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),
|
|
211
211
|
contentType: "application/json",
|
|
212
212
|
requestType: "json",
|
|
213
213
|
body: serializers.GistRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -257,98 +257,12 @@ class TwelvelabsApiClient {
|
|
|
257
257
|
}
|
|
258
258
|
});
|
|
259
259
|
}
|
|
260
|
-
/**
|
|
261
|
-
* <Warning>
|
|
262
|
-
* This endpoint is deprecated. Use the [`/analyze`](/v1.3/api-reference/analyze-videos/analyze) endpoint instead, which provides identical functionality.
|
|
263
|
-
* </Warning>
|
|
264
|
-
*
|
|
265
|
-
*
|
|
266
|
-
* This endpoint generates open-ended texts based on your videos, including but not limited to tables of content, action items, memos, and detailed analyses.
|
|
267
|
-
*
|
|
268
|
-
* <Note title="Notes">
|
|
269
|
-
* - This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page.
|
|
270
|
-
* - This endpoint supports streaming responses. For details on integrating this feature into your application, refer to the [Open-ended analysis](/v1.3/docs/guides/analyze-videos/open-ended-analysis#streaming-responses) guide.
|
|
271
|
-
* </Note>
|
|
272
|
-
*
|
|
273
|
-
* @param {TwelvelabsApi.GenerateRequest} request
|
|
274
|
-
* @param {TwelvelabsApiClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
275
|
-
*
|
|
276
|
-
* @throws {@link TwelvelabsApi.BadRequestError}
|
|
277
|
-
* @throws {@link TwelvelabsApi.TooManyRequestsError}
|
|
278
|
-
*
|
|
279
|
-
* @example
|
|
280
|
-
* await client.generate({
|
|
281
|
-
* videoId: "6298d673f1090f1100476d4c",
|
|
282
|
-
* prompt: "I want to generate a description for my video with the following format - Title of the video, followed by a summary in 2-3 sentences, highlighting the main topic, key events, and concluding remarks.",
|
|
283
|
-
* temperature: 0.2,
|
|
284
|
-
* stream: true
|
|
285
|
-
* })
|
|
286
|
-
*/
|
|
287
|
-
generate(request, requestOptions) {
|
|
288
|
-
return core.HttpResponsePromise.fromPromise(this.__generate(request, requestOptions));
|
|
289
|
-
}
|
|
290
|
-
__generate(request, requestOptions) {
|
|
291
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
292
|
-
var _a, _b;
|
|
293
|
-
const _response = yield core.fetcher({
|
|
294
|
-
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, "generate"),
|
|
295
|
-
method: "POST",
|
|
296
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.1.0", "User-Agent": "twelvelabs-js/1.1.0", "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),
|
|
297
|
-
contentType: "application/json",
|
|
298
|
-
requestType: "json",
|
|
299
|
-
body: serializers.GenerateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
300
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
301
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
302
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
303
|
-
});
|
|
304
|
-
if (_response.ok) {
|
|
305
|
-
return {
|
|
306
|
-
data: serializers.GenerateResponse.parseOrThrow(_response.body, {
|
|
307
|
-
unrecognizedObjectKeys: "passthrough",
|
|
308
|
-
allowUnrecognizedUnionMembers: true,
|
|
309
|
-
allowUnrecognizedEnumValues: true,
|
|
310
|
-
breadcrumbsPrefix: ["response"],
|
|
311
|
-
}),
|
|
312
|
-
rawResponse: _response.rawResponse,
|
|
313
|
-
};
|
|
314
|
-
}
|
|
315
|
-
if (_response.error.reason === "status-code") {
|
|
316
|
-
switch (_response.error.statusCode) {
|
|
317
|
-
case 400:
|
|
318
|
-
throw new TwelvelabsApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
319
|
-
case 429:
|
|
320
|
-
throw new TwelvelabsApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
321
|
-
default:
|
|
322
|
-
throw new errors.TwelvelabsApiError({
|
|
323
|
-
statusCode: _response.error.statusCode,
|
|
324
|
-
body: _response.error.body,
|
|
325
|
-
rawResponse: _response.rawResponse,
|
|
326
|
-
});
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
switch (_response.error.reason) {
|
|
330
|
-
case "non-json":
|
|
331
|
-
throw new errors.TwelvelabsApiError({
|
|
332
|
-
statusCode: _response.error.statusCode,
|
|
333
|
-
body: _response.error.rawBody,
|
|
334
|
-
rawResponse: _response.rawResponse,
|
|
335
|
-
});
|
|
336
|
-
case "timeout":
|
|
337
|
-
throw new errors.TwelvelabsApiTimeoutError("Timeout exceeded when calling POST /generate.");
|
|
338
|
-
case "unknown":
|
|
339
|
-
throw new errors.TwelvelabsApiError({
|
|
340
|
-
message: _response.error.errorMessage,
|
|
341
|
-
rawResponse: _response.rawResponse,
|
|
342
|
-
});
|
|
343
|
-
}
|
|
344
|
-
});
|
|
345
|
-
}
|
|
346
260
|
/**
|
|
347
261
|
* This endpoint analyzes your videos and creates fully customizable text based on your prompts, including but not limited to tables of content, action items, memos, and detailed analyses.
|
|
348
262
|
*
|
|
349
263
|
* <Note title="Notes">
|
|
350
264
|
* - This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page.
|
|
351
|
-
* - This endpoint supports streaming responses. For details on integrating this feature into your application, refer to the [
|
|
265
|
+
* - This endpoint supports streaming responses. For details on integrating this feature into your application, refer to the [Analyze videos](/v1.3/docs/guides/analyze-videos) page.
|
|
352
266
|
* </Note>
|
|
353
267
|
*/
|
|
354
268
|
analyzeStream(request, requestOptions) {
|
|
@@ -360,7 +274,7 @@ class TwelvelabsApiClient {
|
|
|
360
274
|
const _response = yield core.fetcher({
|
|
361
275
|
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"),
|
|
362
276
|
method: "POST",
|
|
363
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.
|
|
277
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.0", "User-Agent": "twelvelabs-js/1.2.0", "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),
|
|
364
278
|
contentType: "application/json",
|
|
365
279
|
requestType: "json",
|
|
366
280
|
body: Object.assign(Object.assign({}, serializers.AnalyzeStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" })), { stream: true }),
|
|
@@ -426,7 +340,7 @@ class TwelvelabsApiClient {
|
|
|
426
340
|
*
|
|
427
341
|
* <Note title="Notes">
|
|
428
342
|
* - This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page.
|
|
429
|
-
* - This endpoint supports streaming responses. For details on integrating this feature into your application, refer to the [
|
|
343
|
+
* - This endpoint supports streaming responses. For details on integrating this feature into your application, refer to the [Analyze videos](/v1.3/docs/guides/analyze-videos) page.
|
|
430
344
|
* </Note>
|
|
431
345
|
*
|
|
432
346
|
* @param {TwelvelabsApi.AnalyzeRequest} request
|
|
@@ -472,7 +386,7 @@ class TwelvelabsApiClient {
|
|
|
472
386
|
const _response = yield core.fetcher({
|
|
473
387
|
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"),
|
|
474
388
|
method: "POST",
|
|
475
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.
|
|
389
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.0", "User-Agent": "twelvelabs-js/1.2.0", "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),
|
|
476
390
|
contentType: "application/json",
|
|
477
391
|
requestType: "json",
|
|
478
392
|
body: Object.assign(Object.assign({}, serializers.AnalyzeRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" })), { stream: false }),
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { type SummarizeRequest } from "./SummarizeRequest";
|
|
2
2
|
export { type GistRequest } from "./GistRequest";
|
|
3
|
-
export { type GenerateRequest } from "./GenerateRequest";
|
|
4
3
|
export { type AnalyzeStreamRequest } from "./AnalyzeStreamRequest";
|
|
5
4
|
export { type AnalyzeRequest } from "./AnalyzeRequest";
|
|
@@ -9,7 +9,7 @@ export declare namespace Assets {
|
|
|
9
9
|
environment?: core.Supplier<environments.TwelvelabsApiEnvironment | string>;
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
|
-
apiKey
|
|
12
|
+
apiKey: core.Supplier<string>;
|
|
13
13
|
}
|
|
14
14
|
interface RequestOptions {
|
|
15
15
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -24,14 +24,11 @@ export declare namespace Assets {
|
|
|
24
24
|
}
|
|
25
25
|
export declare class Assets {
|
|
26
26
|
protected readonly _options: Assets.Options;
|
|
27
|
-
constructor(_options
|
|
27
|
+
constructor(_options: Assets.Options);
|
|
28
28
|
/**
|
|
29
29
|
* This method returns a list of assets in your account.
|
|
30
30
|
*
|
|
31
|
-
*
|
|
32
|
-
* - The platform returns your assets sorted by creation date, with the newest at the top of the list.
|
|
33
|
-
* - The platform automatically deletes assets that are not associated with any entity after 72 hours.
|
|
34
|
-
* </Note>
|
|
31
|
+
* The platform returns your assets sorted by creation date, with the newest at the top of the list.
|
|
35
32
|
*
|
|
36
33
|
* @param {TwelvelabsApi.AssetsListRequest} request
|
|
37
34
|
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -46,7 +43,7 @@ export declare class Assets {
|
|
|
46
43
|
*/
|
|
47
44
|
list(request?: TwelvelabsApi.AssetsListRequest, requestOptions?: Assets.RequestOptions): Promise<core.Page<TwelvelabsApi.Asset>>;
|
|
48
45
|
/**
|
|
49
|
-
* This method creates an asset by uploading a file to the platform. Assets are files
|
|
46
|
+
* This method creates an asset by uploading a file to the platform. Assets are media files that you can use in downstream workflows, including indexing, analyzing video content, and creating entities.
|
|
50
47
|
*
|
|
51
48
|
* **Supported content**: Video, audio, and images.
|
|
52
49
|
*
|
|
@@ -62,6 +59,10 @@ export declare class Assets {
|
|
|
62
59
|
* - **Entity search**: [Marengo image requirements](/v1.3/docs/concepts/models/marengo#image-file-requirements)
|
|
63
60
|
* - **Create embeddings**: [Marengo requirements](/v1.3/docs/concepts/models/marengo#input-requirements)
|
|
64
61
|
*
|
|
62
|
+
* <Note title="Note">
|
|
63
|
+
* This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page.
|
|
64
|
+
* </Note>
|
|
65
|
+
*
|
|
65
66
|
* @param {TwelvelabsApi.AssetsCreateRequest} request
|
|
66
67
|
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
67
68
|
*
|
|
@@ -101,6 +102,6 @@ export declare class Assets {
|
|
|
101
102
|
delete(assetId: string, requestOptions?: Assets.RequestOptions): core.HttpResponsePromise<void>;
|
|
102
103
|
private __delete;
|
|
103
104
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
104
|
-
"x-api-key": string
|
|
105
|
+
"x-api-key": string;
|
|
105
106
|
}>;
|
|
106
107
|
}
|
|
@@ -56,16 +56,13 @@ const serializers = __importStar(require("../../../../serialization/index"));
|
|
|
56
56
|
const url_join_1 = __importDefault(require("url-join"));
|
|
57
57
|
const errors = __importStar(require("../../../../errors/index"));
|
|
58
58
|
class Assets {
|
|
59
|
-
constructor(_options
|
|
59
|
+
constructor(_options) {
|
|
60
60
|
this._options = _options;
|
|
61
61
|
}
|
|
62
62
|
/**
|
|
63
63
|
* This method returns a list of assets in your account.
|
|
64
64
|
*
|
|
65
|
-
*
|
|
66
|
-
* - The platform returns your assets sorted by creation date, with the newest at the top of the list.
|
|
67
|
-
* - The platform automatically deletes assets that are not associated with any entity after 72 hours.
|
|
68
|
-
* </Note>
|
|
65
|
+
* The platform returns your assets sorted by creation date, with the newest at the top of the list.
|
|
69
66
|
*
|
|
70
67
|
* @param {TwelvelabsApi.AssetsListRequest} request
|
|
71
68
|
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -111,7 +108,7 @@ class Assets {
|
|
|
111
108
|
const _response = yield core.fetcher({
|
|
112
109
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, "assets"),
|
|
113
110
|
method: "GET",
|
|
114
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.
|
|
111
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.0", "User-Agent": "twelvelabs-js/1.2.0", "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),
|
|
115
112
|
contentType: "application/json",
|
|
116
113
|
queryParameters: _queryParams,
|
|
117
114
|
requestType: "json",
|
|
@@ -173,7 +170,7 @@ class Assets {
|
|
|
173
170
|
});
|
|
174
171
|
}
|
|
175
172
|
/**
|
|
176
|
-
* This method creates an asset by uploading a file to the platform. Assets are files
|
|
173
|
+
* This method creates an asset by uploading a file to the platform. Assets are media files that you can use in downstream workflows, including indexing, analyzing video content, and creating entities.
|
|
177
174
|
*
|
|
178
175
|
* **Supported content**: Video, audio, and images.
|
|
179
176
|
*
|
|
@@ -189,6 +186,10 @@ class Assets {
|
|
|
189
186
|
* - **Entity search**: [Marengo image requirements](/v1.3/docs/concepts/models/marengo#image-file-requirements)
|
|
190
187
|
* - **Create embeddings**: [Marengo requirements](/v1.3/docs/concepts/models/marengo#input-requirements)
|
|
191
188
|
*
|
|
189
|
+
* <Note title="Note">
|
|
190
|
+
* This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page.
|
|
191
|
+
* </Note>
|
|
192
|
+
*
|
|
192
193
|
* @param {TwelvelabsApi.AssetsCreateRequest} request
|
|
193
194
|
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
194
195
|
*
|
|
@@ -220,7 +221,7 @@ class Assets {
|
|
|
220
221
|
const _response = yield core.fetcher({
|
|
221
222
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, "assets"),
|
|
222
223
|
method: "POST",
|
|
223
|
-
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.
|
|
224
|
+
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.0", "User-Agent": "twelvelabs-js/1.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
224
225
|
requestType: "file",
|
|
225
226
|
duplex: _maybeEncodedRequest.duplex,
|
|
226
227
|
body: _maybeEncodedRequest.body,
|
|
@@ -288,7 +289,7 @@ class Assets {
|
|
|
288
289
|
const _response = yield core.fetcher({
|
|
289
290
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `assets/${encodeURIComponent(assetId)}`),
|
|
290
291
|
method: "GET",
|
|
291
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.
|
|
292
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.0", "User-Agent": "twelvelabs-js/1.2.0", "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),
|
|
292
293
|
contentType: "application/json",
|
|
293
294
|
requestType: "json",
|
|
294
295
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -355,7 +356,7 @@ class Assets {
|
|
|
355
356
|
const _response = yield core.fetcher({
|
|
356
357
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `assets/${encodeURIComponent(assetId)}`),
|
|
357
358
|
method: "DELETE",
|
|
358
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.
|
|
359
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.0", "User-Agent": "twelvelabs-js/1.2.0", "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),
|
|
359
360
|
contentType: "application/json",
|
|
360
361
|
requestType: "json",
|
|
361
362
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -16,9 +16,7 @@ export interface AssetsCreateRequest {
|
|
|
16
16
|
/**
|
|
17
17
|
* Specify this parameter to upload a file from a publicly accessible URL. This parameter is required when `method` is set to `url`.
|
|
18
18
|
*
|
|
19
|
-
*
|
|
20
|
-
* URL uploads are limited to 4GB.
|
|
21
|
-
* </Note>
|
|
19
|
+
* URL uploads have a maximum limit of 4GB.
|
|
22
20
|
*/
|
|
23
21
|
url?: string;
|
|
24
22
|
/** The optional filename of the asset. If not provided, the platform will determine the filename from the file or URL. */
|
|
@@ -11,7 +11,7 @@ export declare namespace Embed {
|
|
|
11
11
|
environment?: core.Supplier<environments.TwelvelabsApiEnvironment | string>;
|
|
12
12
|
/** Specify a custom URL to connect the client to. */
|
|
13
13
|
baseUrl?: core.Supplier<string>;
|
|
14
|
-
apiKey
|
|
14
|
+
apiKey: core.Supplier<string>;
|
|
15
15
|
}
|
|
16
16
|
interface RequestOptions {
|
|
17
17
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -28,7 +28,7 @@ export declare class Embed {
|
|
|
28
28
|
protected readonly _options: Embed.Options;
|
|
29
29
|
protected _tasks: Tasks | undefined;
|
|
30
30
|
protected _v2: V2 | undefined;
|
|
31
|
-
constructor(_options
|
|
31
|
+
constructor(_options: Embed.Options);
|
|
32
32
|
get tasks(): Tasks;
|
|
33
33
|
get v2(): V2;
|
|
34
34
|
/**
|
|
@@ -59,7 +59,8 @@ export declare class Embed {
|
|
|
59
59
|
* <Note title="Notes">
|
|
60
60
|
* - The Marengo video understanding model generates embeddings for all modalities in the same latent space. This shared space enables any-to-any searches across different types of content.
|
|
61
61
|
* - You can create multiple types of embeddings in a single API call.
|
|
62
|
-
* - Audio embeddings combine generic sound and human speech in a single embedding. For videos with transcriptions, you can retrieve transcriptions and then [create text embeddings](/v1.3/api-reference/create-embeddings-v1/text-image-audio-embeddings/create-text-image-audio-embeddings) from these
|
|
62
|
+
* - Audio embeddings combine generic sound and human speech in a single embedding. For videos with transcriptions, you can retrieve transcriptions and then [create text embeddings](/v1.3/api-reference/create-embeddings-v1/text-image-audio-embeddings/create-text-image-audio-embeddings) from these
|
|
63
|
+
* - This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page.
|
|
63
64
|
* </Note>
|
|
64
65
|
*
|
|
65
66
|
* @param {TwelvelabsApi.EmbedCreateRequest} request
|
|
@@ -75,6 +76,6 @@ export declare class Embed {
|
|
|
75
76
|
create(request: TwelvelabsApi.EmbedCreateRequest, requestOptions?: Embed.RequestOptions): core.HttpResponsePromise<TwelvelabsApi.EmbeddingResponse>;
|
|
76
77
|
private __create;
|
|
77
78
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
78
|
-
"x-api-key": string
|
|
79
|
+
"x-api-key": string;
|
|
79
80
|
}>;
|
|
80
81
|
}
|
|
@@ -58,7 +58,7 @@ const errors = __importStar(require("../../../../errors/index"));
|
|
|
58
58
|
const Client_1 = require("../resources/tasks/client/Client");
|
|
59
59
|
const Client_2 = require("../resources/v2/client/Client");
|
|
60
60
|
class Embed {
|
|
61
|
-
constructor(_options
|
|
61
|
+
constructor(_options) {
|
|
62
62
|
this._options = _options;
|
|
63
63
|
}
|
|
64
64
|
get tasks() {
|
|
@@ -97,7 +97,8 @@ class Embed {
|
|
|
97
97
|
* <Note title="Notes">
|
|
98
98
|
* - The Marengo video understanding model generates embeddings for all modalities in the same latent space. This shared space enables any-to-any searches across different types of content.
|
|
99
99
|
* - You can create multiple types of embeddings in a single API call.
|
|
100
|
-
* - Audio embeddings combine generic sound and human speech in a single embedding. For videos with transcriptions, you can retrieve transcriptions and then [create text embeddings](/v1.3/api-reference/create-embeddings-v1/text-image-audio-embeddings/create-text-image-audio-embeddings) from these
|
|
100
|
+
* - Audio embeddings combine generic sound and human speech in a single embedding. For videos with transcriptions, you can retrieve transcriptions and then [create text embeddings](/v1.3/api-reference/create-embeddings-v1/text-image-audio-embeddings/create-text-image-audio-embeddings) from these
|
|
101
|
+
* - This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page.
|
|
101
102
|
* </Note>
|
|
102
103
|
*
|
|
103
104
|
* @param {TwelvelabsApi.EmbedCreateRequest} request
|
|
@@ -143,7 +144,7 @@ class Embed {
|
|
|
143
144
|
const _response = yield core.fetcher({
|
|
144
145
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, "embed"),
|
|
145
146
|
method: "POST",
|
|
146
|
-
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.
|
|
147
|
+
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.0", "User-Agent": "twelvelabs-js/1.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
147
148
|
requestType: "file",
|
|
148
149
|
duplex: _maybeEncodedRequest.duplex,
|
|
149
150
|
body: _maybeEncodedRequest.body,
|
|
@@ -9,7 +9,7 @@ export declare namespace Tasks {
|
|
|
9
9
|
environment?: core.Supplier<environments.TwelvelabsApiEnvironment | string>;
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
|
-
apiKey
|
|
12
|
+
apiKey: core.Supplier<string>;
|
|
13
13
|
}
|
|
14
14
|
interface RequestOptions {
|
|
15
15
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -24,7 +24,7 @@ export declare namespace Tasks {
|
|
|
24
24
|
}
|
|
25
25
|
export declare class Tasks {
|
|
26
26
|
protected readonly _options: Tasks.Options;
|
|
27
|
-
constructor(_options
|
|
27
|
+
constructor(_options: Tasks.Options);
|
|
28
28
|
/**
|
|
29
29
|
* <Note title="Note">
|
|
30
30
|
* This method will be deprecated in a future version. Migrate to the [Embed API v2](/v1.3/api-reference/create-embeddings-v2) for continued support and access to new features.
|
|
@@ -59,13 +59,17 @@ export declare class Tasks {
|
|
|
59
59
|
*
|
|
60
60
|
* This method creates a new video embedding task that uploads a video to the platform and creates one or multiple video embeddings.
|
|
61
61
|
*
|
|
62
|
+
* <Note title="Note">
|
|
63
|
+
* This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page.
|
|
64
|
+
* </Note>
|
|
65
|
+
*
|
|
62
66
|
* Upload options:
|
|
63
67
|
* - **Local file**: Use the `video_file` parameter
|
|
64
68
|
* - **Publicly accessible URL**: Use the `video_url` parameter.
|
|
65
69
|
*
|
|
66
70
|
* Specify at least one option. If both are provided, `video_url` takes precedence.
|
|
67
71
|
*
|
|
68
|
-
* Your video files must meet the [
|
|
72
|
+
* Your video files must meet the [requirements](/v1.3/docs/concepts/models/marengo#video-file-requirements).
|
|
69
73
|
* This endpoint allows you to upload files up to 2 GB in size. To upload larger files, use the [Multipart Upload API](/v1.3/api-reference/upload-content/multipart-uploads)
|
|
70
74
|
*
|
|
71
75
|
* <Note title="Notes">
|
|
@@ -121,6 +125,6 @@ export declare class Tasks {
|
|
|
121
125
|
retrieve(taskId: string, request?: TwelvelabsApi.embed.TasksRetrieveRequest, requestOptions?: Tasks.RequestOptions): core.HttpResponsePromise<TwelvelabsApi.embed.TasksRetrieveResponse>;
|
|
122
126
|
private __retrieve;
|
|
123
127
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
124
|
-
"x-api-key": string
|
|
128
|
+
"x-api-key": string;
|
|
125
129
|
}>;
|
|
126
130
|
}
|