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
|
@@ -141,7 +141,7 @@ class Embed {
|
|
|
141
141
|
const _response = yield core.fetcher({
|
|
142
142
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, "embed"),
|
|
143
143
|
method: "POST",
|
|
144
|
-
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
144
|
+
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.3", "User-Agent": "twelvelabs-js/1.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
145
145
|
requestType: "file",
|
|
146
146
|
duplex: _maybeEncodedRequest.duplex,
|
|
147
147
|
body: _maybeEncodedRequest.body,
|
|
@@ -32,7 +32,7 @@ export declare class Tasks {
|
|
|
32
32
|
* This method returns a list of the video embedding tasks in your account. The platform returns your video embedding tasks sorted by creation date, with the newest at the top of the list.
|
|
33
33
|
*
|
|
34
34
|
* <Note title="Notes">
|
|
35
|
-
* - Video embeddings are stored for seven days
|
|
35
|
+
* - Video embeddings are stored for seven days.
|
|
36
36
|
* - When you invoke this method without specifying the `started_at` and `ended_at` parameters, the platform returns all the video embedding tasks created within the last seven days.
|
|
37
37
|
* </Note>
|
|
38
38
|
*
|
|
@@ -66,7 +66,7 @@ class Tasks {
|
|
|
66
66
|
* This method returns a list of the video embedding tasks in your account. The platform returns your video embedding tasks sorted by creation date, with the newest at the top of the list.
|
|
67
67
|
*
|
|
68
68
|
* <Note title="Notes">
|
|
69
|
-
* - Video embeddings are stored for seven days
|
|
69
|
+
* - Video embeddings are stored for seven days.
|
|
70
70
|
* - When you invoke this method without specifying the `started_at` and `ended_at` parameters, the platform returns all the video embedding tasks created within the last seven days.
|
|
71
71
|
* </Note>
|
|
72
72
|
*
|
|
@@ -108,7 +108,7 @@ class Tasks {
|
|
|
108
108
|
const _response = yield core.fetcher({
|
|
109
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, "embed/tasks"),
|
|
110
110
|
method: "GET",
|
|
111
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
111
|
+
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),
|
|
112
112
|
contentType: "application/json",
|
|
113
113
|
queryParameters: _queryParams,
|
|
114
114
|
requestType: "json",
|
|
@@ -239,7 +239,7 @@ class Tasks {
|
|
|
239
239
|
const _response = yield core.fetcher({
|
|
240
240
|
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/tasks"),
|
|
241
241
|
method: "POST",
|
|
242
|
-
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
242
|
+
headers: Object.assign(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())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
243
243
|
requestType: "file",
|
|
244
244
|
duplex: _maybeEncodedRequest.duplex,
|
|
245
245
|
body: _maybeEncodedRequest.body,
|
|
@@ -315,7 +315,7 @@ class Tasks {
|
|
|
315
315
|
const _response = yield core.fetcher({
|
|
316
316
|
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/tasks/${encodeURIComponent(taskId)}/status`),
|
|
317
317
|
method: "GET",
|
|
318
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
318
|
+
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),
|
|
319
319
|
contentType: "application/json",
|
|
320
320
|
requestType: "json",
|
|
321
321
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -398,7 +398,7 @@ class Tasks {
|
|
|
398
398
|
const _response = yield core.fetcher({
|
|
399
399
|
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/tasks/${encodeURIComponent(taskId)}`),
|
|
400
400
|
method: "GET",
|
|
401
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
401
|
+
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),
|
|
402
402
|
contentType: "application/json",
|
|
403
403
|
queryParameters: _queryParams,
|
|
404
404
|
requestType: "json",
|
|
@@ -285,7 +285,7 @@ class V2 {
|
|
|
285
285
|
const _response = yield core.fetcher({
|
|
286
286
|
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-v2"),
|
|
287
287
|
method: "POST",
|
|
288
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
288
|
+
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),
|
|
289
289
|
contentType: "application/json",
|
|
290
290
|
requestType: "json",
|
|
291
291
|
body: serializers.embed.CreateEmbeddingsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -28,6 +28,11 @@ export declare class Tasks {
|
|
|
28
28
|
/**
|
|
29
29
|
* This method returns a list of the async embedding tasks in your account. The platform returns your async embedding tasks sorted by creation date, with the newest at the top of the list.
|
|
30
30
|
*
|
|
31
|
+
* <Note title="Notes">
|
|
32
|
+
* - Embeddings are stored for seven days.
|
|
33
|
+
* - When you invoke this method without specifying the `started_at` and `ended_at` parameters, the platform returns all the async embedding tasks created within the last seven days.
|
|
34
|
+
* </Note>
|
|
35
|
+
*
|
|
31
36
|
* @param {TwelvelabsApi.embed.v2.TasksListRequest} request
|
|
32
37
|
* @param {Tasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
33
38
|
*
|
|
@@ -72,8 +77,9 @@ export declare class Tasks {
|
|
|
72
77
|
* 2. Poll for the status of the task using the [`GET`](/v1.3/api-reference/create-embeddings-v2/retrieve-embeddings) method of the `/embed-v2/tasks/{task_id}` endpoint. Wait until the status is `ready`.
|
|
73
78
|
* 3. Retrieve the embeddings from the response when the status is `ready` using the [`GET`](/v1.3/api-reference/create-embeddings-v2/retrieve-embeddings) method of the `/embed-v2/tasks/{task_id}` endpoint.
|
|
74
79
|
*
|
|
75
|
-
* <Note title="
|
|
76
|
-
* This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page.
|
|
80
|
+
* <Note title="Notes">
|
|
81
|
+
* - This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page.
|
|
82
|
+
* - Embeddings are stored for seven days.
|
|
77
83
|
* </Note>
|
|
78
84
|
*
|
|
79
85
|
* @param {TwelvelabsApi.embed.v2.CreateAsyncEmbeddingRequest} request
|
|
@@ -150,6 +156,10 @@ export declare class Tasks {
|
|
|
150
156
|
*
|
|
151
157
|
* Invoke this method repeatedly until the `status` field is `ready`. When `status` is `ready`, use the embeddings from the response.
|
|
152
158
|
*
|
|
159
|
+
* <Note title="Note">
|
|
160
|
+
* Embeddings are stored for seven days.
|
|
161
|
+
* </Note>
|
|
162
|
+
*
|
|
153
163
|
* @param {string} taskId - The unique identifier of the embedding task.
|
|
154
164
|
* @param {Tasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
155
165
|
*
|
|
@@ -62,6 +62,11 @@ class Tasks {
|
|
|
62
62
|
/**
|
|
63
63
|
* This method returns a list of the async embedding tasks in your account. The platform returns your async embedding tasks sorted by creation date, with the newest at the top of the list.
|
|
64
64
|
*
|
|
65
|
+
* <Note title="Notes">
|
|
66
|
+
* - Embeddings are stored for seven days.
|
|
67
|
+
* - When you invoke this method without specifying the `started_at` and `ended_at` parameters, the platform returns all the async embedding tasks created within the last seven days.
|
|
68
|
+
* </Note>
|
|
69
|
+
*
|
|
65
70
|
* @param {TwelvelabsApi.embed.v2.TasksListRequest} request
|
|
66
71
|
* @param {Tasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
67
72
|
*
|
|
@@ -100,7 +105,7 @@ class Tasks {
|
|
|
100
105
|
const _response = yield core.fetcher({
|
|
101
106
|
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-v2/tasks"),
|
|
102
107
|
method: "GET",
|
|
103
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
108
|
+
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),
|
|
104
109
|
contentType: "application/json",
|
|
105
110
|
queryParameters: _queryParams,
|
|
106
111
|
requestType: "json",
|
|
@@ -190,8 +195,9 @@ class Tasks {
|
|
|
190
195
|
* 2. Poll for the status of the task using the [`GET`](/v1.3/api-reference/create-embeddings-v2/retrieve-embeddings) method of the `/embed-v2/tasks/{task_id}` endpoint. Wait until the status is `ready`.
|
|
191
196
|
* 3. Retrieve the embeddings from the response when the status is `ready` using the [`GET`](/v1.3/api-reference/create-embeddings-v2/retrieve-embeddings) method of the `/embed-v2/tasks/{task_id}` endpoint.
|
|
192
197
|
*
|
|
193
|
-
* <Note title="
|
|
194
|
-
* This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page.
|
|
198
|
+
* <Note title="Notes">
|
|
199
|
+
* - This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page.
|
|
200
|
+
* - Embeddings are stored for seven days.
|
|
195
201
|
* </Note>
|
|
196
202
|
*
|
|
197
203
|
* @param {TwelvelabsApi.embed.v2.CreateAsyncEmbeddingRequest} request
|
|
@@ -265,7 +271,7 @@ class Tasks {
|
|
|
265
271
|
const _response = yield core.fetcher({
|
|
266
272
|
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-v2/tasks"),
|
|
267
273
|
method: "POST",
|
|
268
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
274
|
+
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),
|
|
269
275
|
contentType: "application/json",
|
|
270
276
|
requestType: "json",
|
|
271
277
|
body: serializers.embed.v2.CreateAsyncEmbeddingRequest.jsonOrThrow(request, {
|
|
@@ -327,6 +333,10 @@ class Tasks {
|
|
|
327
333
|
*
|
|
328
334
|
* Invoke this method repeatedly until the `status` field is `ready`. When `status` is `ready`, use the embeddings from the response.
|
|
329
335
|
*
|
|
336
|
+
* <Note title="Note">
|
|
337
|
+
* Embeddings are stored for seven days.
|
|
338
|
+
* </Note>
|
|
339
|
+
*
|
|
330
340
|
* @param {string} taskId - The unique identifier of the embedding task.
|
|
331
341
|
* @param {Tasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
332
342
|
*
|
|
@@ -344,7 +354,7 @@ class Tasks {
|
|
|
344
354
|
const _response = yield core.fetcher({
|
|
345
355
|
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-v2/tasks/${encodeURIComponent(taskId)}`),
|
|
346
356
|
method: "GET",
|
|
347
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
357
|
+
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),
|
|
348
358
|
contentType: "application/json",
|
|
349
359
|
requestType: "json",
|
|
350
360
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -107,7 +107,7 @@ class EntityCollections {
|
|
|
107
107
|
const _response = yield core.fetcher({
|
|
108
108
|
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, "entity-collections"),
|
|
109
109
|
method: "GET",
|
|
110
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
110
|
+
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),
|
|
111
111
|
contentType: "application/json",
|
|
112
112
|
queryParameters: _queryParams,
|
|
113
113
|
requestType: "json",
|
|
@@ -190,7 +190,7 @@ class EntityCollections {
|
|
|
190
190
|
const _response = yield core.fetcher({
|
|
191
191
|
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, "entity-collections"),
|
|
192
192
|
method: "POST",
|
|
193
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
193
|
+
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),
|
|
194
194
|
contentType: "application/json",
|
|
195
195
|
requestType: "json",
|
|
196
196
|
body: serializers.EntityCollectionsCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -258,7 +258,7 @@ class EntityCollections {
|
|
|
258
258
|
const _response = yield core.fetcher({
|
|
259
259
|
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, `entity-collections/${encodeURIComponent(entityCollectionId)}`),
|
|
260
260
|
method: "GET",
|
|
261
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
261
|
+
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
262
|
contentType: "application/json",
|
|
263
263
|
requestType: "json",
|
|
264
264
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -325,7 +325,7 @@ class EntityCollections {
|
|
|
325
325
|
const _response = yield core.fetcher({
|
|
326
326
|
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, `entity-collections/${encodeURIComponent(entityCollectionId)}`),
|
|
327
327
|
method: "DELETE",
|
|
328
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
328
|
+
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),
|
|
329
329
|
contentType: "application/json",
|
|
330
330
|
requestType: "json",
|
|
331
331
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -385,7 +385,7 @@ class EntityCollections {
|
|
|
385
385
|
const _response = yield core.fetcher({
|
|
386
386
|
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, `entity-collections/${encodeURIComponent(entityCollectionId)}`),
|
|
387
387
|
method: "PATCH",
|
|
388
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
388
|
+
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),
|
|
389
389
|
contentType: "application/json",
|
|
390
390
|
requestType: "json",
|
|
391
391
|
body: serializers.EntityCollectionsUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -25,6 +25,22 @@ export declare namespace Entities {
|
|
|
25
25
|
export declare class Entities {
|
|
26
26
|
protected readonly _options: Entities.Options;
|
|
27
27
|
constructor(_options: Entities.Options);
|
|
28
|
+
/**
|
|
29
|
+
* This method returns a list of entities whose [`asset_ids`](/v1.3/api-reference/entities/entity-collections/entities/retrieve#response.body.asset_ids) array contains the specified asset.
|
|
30
|
+
*
|
|
31
|
+
* @param {string} assetId - The unique identifier of the asset.
|
|
32
|
+
* @param {TwelvelabsApi.entityCollections.EntitiesListByAssetRequest} request
|
|
33
|
+
* @param {Entities.RequestOptions} requestOptions - Request-specific configuration.
|
|
34
|
+
*
|
|
35
|
+
* @throws {@link TwelvelabsApi.BadRequestError}
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* await client.entityCollections.entities.listByAsset("6298d673f1090f1100476d4c", {
|
|
39
|
+
* page: 1,
|
|
40
|
+
* pageLimit: 10
|
|
41
|
+
* })
|
|
42
|
+
*/
|
|
43
|
+
listByAsset(assetId: string, request?: TwelvelabsApi.entityCollections.EntitiesListByAssetRequest, requestOptions?: Entities.RequestOptions): Promise<core.Page<TwelvelabsApi.Entity>>;
|
|
28
44
|
/**
|
|
29
45
|
* This method returns a list of the entities in the specified entity collection.
|
|
30
46
|
*
|
|
@@ -52,13 +52,104 @@ exports.Entities = void 0;
|
|
|
52
52
|
const environments = __importStar(require("../../../../../../environments"));
|
|
53
53
|
const core = __importStar(require("../../../../../../core"));
|
|
54
54
|
const TwelvelabsApi = __importStar(require("../../../../../index"));
|
|
55
|
-
const serializers = __importStar(require("../../../../../../serialization/index"));
|
|
56
55
|
const url_join_1 = __importDefault(require("url-join"));
|
|
56
|
+
const serializers = __importStar(require("../../../../../../serialization/index"));
|
|
57
57
|
const errors = __importStar(require("../../../../../../errors/index"));
|
|
58
58
|
class Entities {
|
|
59
59
|
constructor(_options) {
|
|
60
60
|
this._options = _options;
|
|
61
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* This method returns a list of entities whose [`asset_ids`](/v1.3/api-reference/entities/entity-collections/entities/retrieve#response.body.asset_ids) array contains the specified asset.
|
|
64
|
+
*
|
|
65
|
+
* @param {string} assetId - The unique identifier of the asset.
|
|
66
|
+
* @param {TwelvelabsApi.entityCollections.EntitiesListByAssetRequest} request
|
|
67
|
+
* @param {Entities.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link TwelvelabsApi.BadRequestError}
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* await client.entityCollections.entities.listByAsset("6298d673f1090f1100476d4c", {
|
|
73
|
+
* page: 1,
|
|
74
|
+
* pageLimit: 10
|
|
75
|
+
* })
|
|
76
|
+
*/
|
|
77
|
+
listByAsset(assetId_1) {
|
|
78
|
+
return __awaiter(this, arguments, void 0, function* (assetId, request = {}, requestOptions) {
|
|
79
|
+
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
80
|
+
var _a, _b;
|
|
81
|
+
const { page, pageLimit } = request;
|
|
82
|
+
const _queryParams = {};
|
|
83
|
+
if (page != null) {
|
|
84
|
+
_queryParams["page"] = page.toString();
|
|
85
|
+
}
|
|
86
|
+
if (pageLimit != null) {
|
|
87
|
+
_queryParams["page_limit"] = pageLimit.toString();
|
|
88
|
+
}
|
|
89
|
+
const _response = yield core.fetcher({
|
|
90
|
+
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)}/entities`),
|
|
91
|
+
method: "GET",
|
|
92
|
+
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),
|
|
93
|
+
contentType: "application/json",
|
|
94
|
+
queryParameters: _queryParams,
|
|
95
|
+
requestType: "json",
|
|
96
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
97
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
98
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
99
|
+
});
|
|
100
|
+
if (_response.ok) {
|
|
101
|
+
return {
|
|
102
|
+
data: serializers.entityCollections.EntitiesListByAssetResponse.parseOrThrow(_response.body, {
|
|
103
|
+
unrecognizedObjectKeys: "passthrough",
|
|
104
|
+
allowUnrecognizedUnionMembers: true,
|
|
105
|
+
allowUnrecognizedEnumValues: true,
|
|
106
|
+
breadcrumbsPrefix: ["response"],
|
|
107
|
+
}),
|
|
108
|
+
rawResponse: _response.rawResponse,
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
if (_response.error.reason === "status-code") {
|
|
112
|
+
switch (_response.error.statusCode) {
|
|
113
|
+
case 400:
|
|
114
|
+
throw new TwelvelabsApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
115
|
+
default:
|
|
116
|
+
throw new errors.TwelvelabsApiError({
|
|
117
|
+
statusCode: _response.error.statusCode,
|
|
118
|
+
body: _response.error.body,
|
|
119
|
+
rawResponse: _response.rawResponse,
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
switch (_response.error.reason) {
|
|
124
|
+
case "non-json":
|
|
125
|
+
throw new errors.TwelvelabsApiError({
|
|
126
|
+
statusCode: _response.error.statusCode,
|
|
127
|
+
body: _response.error.rawBody,
|
|
128
|
+
rawResponse: _response.rawResponse,
|
|
129
|
+
});
|
|
130
|
+
case "timeout":
|
|
131
|
+
throw new errors.TwelvelabsApiTimeoutError("Timeout exceeded when calling GET /assets/{asset_id}/entities.");
|
|
132
|
+
case "unknown":
|
|
133
|
+
throw new errors.TwelvelabsApiError({
|
|
134
|
+
message: _response.error.errorMessage,
|
|
135
|
+
rawResponse: _response.rawResponse,
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
}));
|
|
139
|
+
let _offset = (request === null || request === void 0 ? void 0 : request.page) != null ? request === null || request === void 0 ? void 0 : request.page : 1;
|
|
140
|
+
const dataWithRawResponse = yield list(request).withRawResponse();
|
|
141
|
+
return new core.Pageable({
|
|
142
|
+
response: dataWithRawResponse.data,
|
|
143
|
+
rawResponse: dataWithRawResponse.rawResponse,
|
|
144
|
+
hasNextPage: (response) => { var _a; return ((_a = response === null || response === void 0 ? void 0 : response.data) !== null && _a !== void 0 ? _a : []).length > 0; },
|
|
145
|
+
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.data) !== null && _a !== void 0 ? _a : []; },
|
|
146
|
+
loadPage: (_response) => {
|
|
147
|
+
_offset += 1;
|
|
148
|
+
return list(core.setObjectProperty(request, "page", _offset));
|
|
149
|
+
},
|
|
150
|
+
});
|
|
151
|
+
});
|
|
152
|
+
}
|
|
62
153
|
/**
|
|
63
154
|
* This method returns a list of the entities in the specified entity collection.
|
|
64
155
|
*
|
|
@@ -105,7 +196,7 @@ class Entities {
|
|
|
105
196
|
const _response = yield core.fetcher({
|
|
106
197
|
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, `entity-collections/${encodeURIComponent(entityCollectionId)}/entities`),
|
|
107
198
|
method: "GET",
|
|
108
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
199
|
+
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),
|
|
109
200
|
contentType: "application/json",
|
|
110
201
|
queryParameters: _queryParams,
|
|
111
202
|
requestType: "json",
|
|
@@ -190,7 +281,7 @@ class Entities {
|
|
|
190
281
|
const _response = yield core.fetcher({
|
|
191
282
|
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, `entity-collections/${encodeURIComponent(entityCollectionId)}/entities`),
|
|
192
283
|
method: "POST",
|
|
193
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
284
|
+
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),
|
|
194
285
|
contentType: "application/json",
|
|
195
286
|
requestType: "json",
|
|
196
287
|
body: serializers.entityCollections.EntitiesCreateRequest.jsonOrThrow(request, {
|
|
@@ -266,7 +357,7 @@ class Entities {
|
|
|
266
357
|
const _response = yield core.fetcher({
|
|
267
358
|
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, `entity-collections/${encodeURIComponent(entityCollectionId)}/entities/bulk`),
|
|
268
359
|
method: "POST",
|
|
269
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
360
|
+
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),
|
|
270
361
|
contentType: "application/json",
|
|
271
362
|
requestType: "json",
|
|
272
363
|
body: serializers.entityCollections.EntitiesCreateBulkRequest.jsonOrThrow(request, {
|
|
@@ -337,7 +428,7 @@ class Entities {
|
|
|
337
428
|
const _response = yield core.fetcher({
|
|
338
429
|
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, `entity-collections/${encodeURIComponent(entityCollectionId)}/entities/${encodeURIComponent(entityId)}`),
|
|
339
430
|
method: "GET",
|
|
340
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
431
|
+
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),
|
|
341
432
|
contentType: "application/json",
|
|
342
433
|
requestType: "json",
|
|
343
434
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -405,7 +496,7 @@ class Entities {
|
|
|
405
496
|
const _response = yield core.fetcher({
|
|
406
497
|
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, `entity-collections/${encodeURIComponent(entityCollectionId)}/entities/${encodeURIComponent(entityId)}`),
|
|
407
498
|
method: "DELETE",
|
|
408
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
499
|
+
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),
|
|
409
500
|
contentType: "application/json",
|
|
410
501
|
requestType: "json",
|
|
411
502
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -466,7 +557,7 @@ class Entities {
|
|
|
466
557
|
const _response = yield core.fetcher({
|
|
467
558
|
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, `entity-collections/${encodeURIComponent(entityCollectionId)}/entities/${encodeURIComponent(entityId)}`),
|
|
468
559
|
method: "PATCH",
|
|
469
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
560
|
+
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),
|
|
470
561
|
contentType: "application/json",
|
|
471
562
|
requestType: "json",
|
|
472
563
|
body: serializers.entityCollections.EntitiesUpdateRequest.jsonOrThrow(request, {
|
|
@@ -542,7 +633,7 @@ class Entities {
|
|
|
542
633
|
const _response = yield core.fetcher({
|
|
543
634
|
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, `entity-collections/${encodeURIComponent(entityCollectionId)}/entities/${encodeURIComponent(entityId)}/assets`),
|
|
544
635
|
method: "POST",
|
|
545
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
636
|
+
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),
|
|
546
637
|
contentType: "application/json",
|
|
547
638
|
requestType: "json",
|
|
548
639
|
body: serializers.entityCollections.EntitiesCreateAssetsRequest.jsonOrThrow(request, {
|
|
@@ -623,7 +714,7 @@ class Entities {
|
|
|
623
714
|
const _response = yield core.fetcher({
|
|
624
715
|
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, `entity-collections/${encodeURIComponent(entityCollectionId)}/entities/${encodeURIComponent(entityId)}/assets`),
|
|
625
716
|
method: "DELETE",
|
|
626
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
717
|
+
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),
|
|
627
718
|
contentType: "application/json",
|
|
628
719
|
requestType: "json",
|
|
629
720
|
body: serializers.entityCollections.EntitiesDeleteAssetsRequest.jsonOrThrow(request, {
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* page: 1,
|
|
8
|
+
* pageLimit: 10
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface EntitiesListByAssetRequest {
|
|
12
|
+
/**
|
|
13
|
+
* A number that identifies the page to retrieve.
|
|
14
|
+
*
|
|
15
|
+
* **Default**: `1`.
|
|
16
|
+
*/
|
|
17
|
+
page?: number;
|
|
18
|
+
/**
|
|
19
|
+
* The number of items to return on each page.
|
|
20
|
+
*
|
|
21
|
+
* **Default**: `10`.
|
|
22
|
+
* **Max**: `50`.
|
|
23
|
+
*/
|
|
24
|
+
pageLimit?: number;
|
|
25
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { type EntitiesListByAssetRequest } from "./EntitiesListByAssetRequest";
|
|
1
2
|
export { type EntitiesListRequest } from "./EntitiesListRequest";
|
|
2
3
|
export { type EntitiesCreateRequest } from "./EntitiesCreateRequest";
|
|
3
4
|
export { type EntitiesCreateBulkRequest } from "./EntitiesCreateBulkRequest";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as TwelvelabsApi from "../../../../../index";
|
|
5
|
+
export interface EntitiesListByAssetResponse {
|
|
6
|
+
/** A list of entities that reference the specified asset. */
|
|
7
|
+
data?: TwelvelabsApi.Entity[];
|
|
8
|
+
pageInfo?: TwelvelabsApi.PageInfo;
|
|
9
|
+
}
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./EntitiesListByAssetResponse"), exports);
|
|
17
18
|
__exportStar(require("./EntitiesListRequestStatus"), exports);
|
|
18
19
|
__exportStar(require("./EntitiesListRequestSortBy"), exports);
|
|
19
20
|
__exportStar(require("./EntitiesListResponse"), exports);
|
|
@@ -126,7 +126,7 @@ class Indexes {
|
|
|
126
126
|
const _response = yield core.fetcher({
|
|
127
127
|
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, "indexes"),
|
|
128
128
|
method: "GET",
|
|
129
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
129
|
+
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),
|
|
130
130
|
contentType: "application/json",
|
|
131
131
|
queryParameters: _queryParams,
|
|
132
132
|
requestType: "json",
|
|
@@ -217,7 +217,7 @@ class Indexes {
|
|
|
217
217
|
const _response = yield core.fetcher({
|
|
218
218
|
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, "indexes"),
|
|
219
219
|
method: "POST",
|
|
220
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
220
|
+
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),
|
|
221
221
|
contentType: "application/json",
|
|
222
222
|
requestType: "json",
|
|
223
223
|
body: serializers.IndexesCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -285,7 +285,7 @@ class Indexes {
|
|
|
285
285
|
const _response = yield core.fetcher({
|
|
286
286
|
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, `indexes/${encodeURIComponent(indexId)}`),
|
|
287
287
|
method: "GET",
|
|
288
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
288
|
+
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),
|
|
289
289
|
contentType: "application/json",
|
|
290
290
|
requestType: "json",
|
|
291
291
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -355,7 +355,7 @@ class Indexes {
|
|
|
355
355
|
const _response = yield core.fetcher({
|
|
356
356
|
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, `indexes/${encodeURIComponent(indexId)}`),
|
|
357
357
|
method: "PUT",
|
|
358
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
358
|
+
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),
|
|
359
359
|
contentType: "application/json",
|
|
360
360
|
requestType: "json",
|
|
361
361
|
body: serializers.IndexesUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -415,7 +415,7 @@ class Indexes {
|
|
|
415
415
|
const _response = yield core.fetcher({
|
|
416
416
|
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, `indexes/${encodeURIComponent(indexId)}`),
|
|
417
417
|
method: "DELETE",
|
|
418
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
418
|
+
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),
|
|
419
419
|
contentType: "application/json",
|
|
420
420
|
requestType: "json",
|
|
421
421
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|