twelvelabs-js 1.2.6 → 1.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.fern/replay.lock +10 -0
- package/.gitattributes +1 -0
- package/Client.d.ts +4 -0
- package/Client.js +6 -2
- package/api/client/requests/AnalyzeRequest.d.ts +1 -1
- package/api/client/requests/AnalyzeStreamRequest.d.ts +1 -1
- package/api/errors/GatewayTimeoutError.d.ts +9 -0
- package/api/errors/GatewayTimeoutError.js +52 -0
- package/api/errors/ServiceUnavailableError.d.ts +9 -0
- package/api/errors/ServiceUnavailableError.js +52 -0
- package/api/errors/index.d.ts +2 -0
- package/api/errors/index.js +2 -0
- package/api/resources/analyzeAsync/client/Client.d.ts +3 -0
- package/api/resources/analyzeAsync/client/Client.js +5 -0
- package/api/resources/analyzeAsync/resources/batches/client/Client.d.ts +231 -0
- package/api/resources/analyzeAsync/resources/batches/client/Client.js +667 -0
- package/api/resources/analyzeAsync/resources/batches/client/index.d.ts +1 -0
- package/api/resources/analyzeAsync/resources/batches/client/index.js +17 -0
- package/api/resources/analyzeAsync/resources/batches/client/requests/BatchesListRequest.d.ts +42 -0
- package/api/resources/analyzeAsync/resources/batches/client/requests/BatchesListRequest.js +5 -0
- package/api/resources/analyzeAsync/resources/batches/client/requests/CreateAnalyzeBatchRequest.d.ts +101 -0
- package/api/resources/analyzeAsync/resources/batches/client/requests/CreateAnalyzeBatchRequest.js +5 -0
- package/api/resources/analyzeAsync/resources/batches/client/requests/index.d.ts +2 -0
- package/api/resources/analyzeAsync/resources/batches/client/requests/index.js +2 -0
- package/api/resources/analyzeAsync/resources/batches/index.d.ts +2 -0
- package/api/resources/analyzeAsync/resources/batches/index.js +18 -0
- package/api/resources/analyzeAsync/resources/batches/types/BatchesListRequestAnalysisModeItem.d.ts +8 -0
- package/api/resources/analyzeAsync/resources/batches/types/BatchesListRequestAnalysisModeItem.js +10 -0
- package/api/resources/analyzeAsync/resources/batches/types/BatchesListResponse.d.ts +9 -0
- package/api/resources/analyzeAsync/resources/batches/types/BatchesListResponse.js +5 -0
- package/api/resources/analyzeAsync/resources/batches/types/CreateAnalyzeBatchRequestAnalysisMode.d.ts +15 -0
- package/api/resources/analyzeAsync/resources/batches/types/CreateAnalyzeBatchRequestAnalysisMode.js +10 -0
- package/api/resources/analyzeAsync/resources/batches/types/CreateAnalyzeBatchRequestModelName.d.ts +10 -0
- package/api/resources/analyzeAsync/resources/batches/types/CreateAnalyzeBatchRequestModelName.js +9 -0
- package/api/resources/analyzeAsync/resources/batches/types/index.d.ts +4 -0
- package/api/resources/analyzeAsync/resources/batches/types/index.js +20 -0
- package/api/resources/analyzeAsync/resources/index.d.ts +3 -0
- package/api/resources/analyzeAsync/resources/index.js +4 -1
- package/api/resources/analyzeAsync/resources/tasks/client/Client.d.ts +2 -0
- package/api/resources/analyzeAsync/resources/tasks/client/Client.js +6 -4
- package/api/resources/analyzeAsync/resources/tasks/client/requests/CreateAsyncAnalyzeRequest.d.ts +1 -1
- package/api/resources/assets/client/Client.js +7 -7
- package/api/resources/embed/client/Client.js +1 -1
- package/api/resources/embed/resources/tasks/client/Client.js +4 -4
- package/api/resources/embed/resources/v2/client/Client.js +1 -1
- package/api/resources/embed/resources/v2/resources/tasks/client/Client.js +3 -3
- package/api/resources/entityCollections/client/Client.js +5 -5
- package/api/resources/entityCollections/resources/entities/client/Client.js +9 -9
- package/api/resources/indexes/client/Client.js +5 -5
- package/api/resources/indexes/resources/indexedAssets/client/Client.d.ts +2 -0
- package/api/resources/indexes/resources/indexedAssets/client/Client.js +8 -6
- package/api/resources/indexes/resources/videos/client/Client.js +4 -4
- package/api/resources/multipartUpload/client/Client.js +5 -5
- package/api/resources/search/client/Client.js +2 -2
- package/api/resources/tasks/client/Client.d.ts +2 -0
- package/api/resources/tasks/client/Client.js +6 -4
- package/api/types/AnalyzeBatchStatusResponse.d.ts +21 -0
- package/api/types/AnalyzeBatchStatusResponse.js +5 -0
- package/api/types/AnalyzeBatchSummary.d.ts +28 -0
- package/api/types/AnalyzeBatchSummary.js +5 -0
- package/api/types/AnalyzeBatchSummaryAnalysisMode.d.ts +11 -0
- package/api/types/AnalyzeBatchSummaryAnalysisMode.js +10 -0
- package/api/types/AsyncResponseFormat.d.ts +1 -1
- package/api/types/BatchDefaults.d.ts +46 -0
- package/api/types/BatchDefaults.js +5 -0
- package/api/types/BatchItemError.d.ts +12 -0
- package/api/types/BatchItemError.js +5 -0
- package/api/types/BatchItemRequest.d.ts +36 -0
- package/api/types/BatchItemRequest.js +5 -0
- package/api/types/BatchItemStatus.d.ts +14 -0
- package/api/types/BatchItemStatus.js +13 -0
- package/api/types/BatchPrompt.d.ts +13 -0
- package/api/types/BatchPrompt.js +5 -0
- package/api/types/BatchResultItem.d.ts +17 -0
- package/api/types/BatchResultItem.js +5 -0
- package/api/types/BatchStatus.d.ts +15 -0
- package/api/types/BatchStatus.js +14 -0
- package/api/types/BatchVideoContext.d.ts +13 -0
- package/api/types/BatchVideoContext.js +5 -0
- package/api/types/BatchVideoContextType.d.ts +10 -0
- package/api/types/BatchVideoContextType.js +9 -0
- package/api/types/CreateAnalyzeBatchResponse.d.ts +20 -0
- package/api/types/CreateAnalyzeBatchResponse.js +5 -0
- package/api/types/CreatedBatchItem.d.ts +12 -0
- package/api/types/CreatedBatchItem.js +5 -0
- package/api/types/EmbeddingTaskResponse.d.ts +2 -0
- package/api/types/EmbeddingTaskResponseError.d.ts +15 -0
- package/api/types/EmbeddingTaskResponseError.js +5 -0
- package/api/types/SegmentDefinition.d.ts +1 -1
- package/api/types/SegmentField.d.ts +1 -1
- package/api/types/index.d.ts +15 -0
- package/api/types/index.js +15 -0
- package/dist/Client.d.ts +4 -0
- package/dist/Client.js +6 -2
- package/dist/api/client/requests/AnalyzeRequest.d.ts +1 -1
- package/dist/api/client/requests/AnalyzeStreamRequest.d.ts +1 -1
- package/dist/api/errors/GatewayTimeoutError.d.ts +9 -0
- package/dist/api/errors/GatewayTimeoutError.js +52 -0
- package/dist/api/errors/ServiceUnavailableError.d.ts +9 -0
- package/dist/api/errors/ServiceUnavailableError.js +52 -0
- package/dist/api/errors/index.d.ts +2 -0
- package/dist/api/errors/index.js +2 -0
- package/dist/api/resources/analyzeAsync/client/Client.d.ts +3 -0
- package/dist/api/resources/analyzeAsync/client/Client.js +5 -0
- package/dist/api/resources/analyzeAsync/resources/batches/client/Client.d.ts +231 -0
- package/dist/api/resources/analyzeAsync/resources/batches/client/Client.js +667 -0
- package/dist/api/resources/analyzeAsync/resources/batches/client/index.d.ts +1 -0
- package/dist/api/resources/analyzeAsync/resources/batches/client/index.js +17 -0
- package/dist/api/resources/analyzeAsync/resources/batches/client/requests/BatchesListRequest.d.ts +42 -0
- package/dist/api/resources/analyzeAsync/resources/batches/client/requests/BatchesListRequest.js +5 -0
- package/dist/api/resources/analyzeAsync/resources/batches/client/requests/CreateAnalyzeBatchRequest.d.ts +101 -0
- package/dist/api/resources/analyzeAsync/resources/batches/client/requests/CreateAnalyzeBatchRequest.js +5 -0
- package/dist/api/resources/analyzeAsync/resources/batches/client/requests/index.d.ts +2 -0
- package/dist/api/resources/analyzeAsync/resources/batches/client/requests/index.js +2 -0
- package/dist/api/resources/analyzeAsync/resources/batches/index.d.ts +2 -0
- package/dist/api/resources/analyzeAsync/resources/batches/index.js +18 -0
- package/dist/api/resources/analyzeAsync/resources/batches/types/BatchesListRequestAnalysisModeItem.d.ts +8 -0
- package/dist/api/resources/analyzeAsync/resources/batches/types/BatchesListRequestAnalysisModeItem.js +10 -0
- package/dist/api/resources/analyzeAsync/resources/batches/types/BatchesListResponse.d.ts +9 -0
- package/dist/api/resources/analyzeAsync/resources/batches/types/BatchesListResponse.js +5 -0
- package/dist/api/resources/analyzeAsync/resources/batches/types/CreateAnalyzeBatchRequestAnalysisMode.d.ts +15 -0
- package/dist/api/resources/analyzeAsync/resources/batches/types/CreateAnalyzeBatchRequestAnalysisMode.js +10 -0
- package/dist/api/resources/analyzeAsync/resources/batches/types/CreateAnalyzeBatchRequestModelName.d.ts +10 -0
- package/dist/api/resources/analyzeAsync/resources/batches/types/CreateAnalyzeBatchRequestModelName.js +9 -0
- package/dist/api/resources/analyzeAsync/resources/batches/types/index.d.ts +4 -0
- package/dist/api/resources/analyzeAsync/resources/batches/types/index.js +20 -0
- package/dist/api/resources/analyzeAsync/resources/index.d.ts +3 -0
- package/dist/api/resources/analyzeAsync/resources/index.js +4 -1
- package/dist/api/resources/analyzeAsync/resources/tasks/client/Client.d.ts +2 -0
- package/dist/api/resources/analyzeAsync/resources/tasks/client/Client.js +6 -4
- package/dist/api/resources/analyzeAsync/resources/tasks/client/requests/CreateAsyncAnalyzeRequest.d.ts +1 -1
- package/dist/api/resources/assets/client/Client.js +7 -7
- package/dist/api/resources/embed/client/Client.js +1 -1
- package/dist/api/resources/embed/resources/tasks/client/Client.js +4 -4
- package/dist/api/resources/embed/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/embed/resources/v2/resources/tasks/client/Client.js +3 -3
- package/dist/api/resources/entityCollections/client/Client.js +5 -5
- package/dist/api/resources/entityCollections/resources/entities/client/Client.js +9 -9
- package/dist/api/resources/indexes/client/Client.js +5 -5
- package/dist/api/resources/indexes/resources/indexedAssets/client/Client.d.ts +2 -0
- package/dist/api/resources/indexes/resources/indexedAssets/client/Client.js +8 -6
- package/dist/api/resources/indexes/resources/videos/client/Client.js +4 -4
- package/dist/api/resources/multipartUpload/client/Client.js +5 -5
- package/dist/api/resources/search/client/Client.js +2 -2
- package/dist/api/resources/tasks/client/Client.d.ts +2 -0
- package/dist/api/resources/tasks/client/Client.js +6 -4
- package/dist/api/types/AnalyzeBatchStatusResponse.d.ts +21 -0
- package/dist/api/types/AnalyzeBatchStatusResponse.js +5 -0
- package/dist/api/types/AnalyzeBatchSummary.d.ts +28 -0
- package/dist/api/types/AnalyzeBatchSummary.js +5 -0
- package/dist/api/types/AnalyzeBatchSummaryAnalysisMode.d.ts +11 -0
- package/dist/api/types/AnalyzeBatchSummaryAnalysisMode.js +10 -0
- package/dist/api/types/AsyncResponseFormat.d.ts +1 -1
- package/dist/api/types/BatchDefaults.d.ts +46 -0
- package/dist/api/types/BatchDefaults.js +5 -0
- package/dist/api/types/BatchItemError.d.ts +12 -0
- package/dist/api/types/BatchItemError.js +5 -0
- package/dist/api/types/BatchItemRequest.d.ts +36 -0
- package/dist/api/types/BatchItemRequest.js +5 -0
- package/dist/api/types/BatchItemStatus.d.ts +14 -0
- package/dist/api/types/BatchItemStatus.js +13 -0
- package/dist/api/types/BatchPrompt.d.ts +13 -0
- package/dist/api/types/BatchPrompt.js +5 -0
- package/dist/api/types/BatchResultItem.d.ts +17 -0
- package/dist/api/types/BatchResultItem.js +5 -0
- package/dist/api/types/BatchStatus.d.ts +15 -0
- package/dist/api/types/BatchStatus.js +14 -0
- package/dist/api/types/BatchVideoContext.d.ts +13 -0
- package/dist/api/types/BatchVideoContext.js +5 -0
- package/dist/api/types/BatchVideoContextType.d.ts +10 -0
- package/dist/api/types/BatchVideoContextType.js +9 -0
- package/dist/api/types/CreateAnalyzeBatchResponse.d.ts +20 -0
- package/dist/api/types/CreateAnalyzeBatchResponse.js +5 -0
- package/dist/api/types/CreatedBatchItem.d.ts +12 -0
- package/dist/api/types/CreatedBatchItem.js +5 -0
- package/dist/api/types/EmbeddingTaskResponse.d.ts +2 -0
- package/dist/api/types/EmbeddingTaskResponseError.d.ts +15 -0
- package/dist/api/types/EmbeddingTaskResponseError.js +5 -0
- package/dist/api/types/SegmentDefinition.d.ts +1 -1
- package/dist/api/types/SegmentField.d.ts +1 -1
- package/dist/api/types/index.d.ts +15 -0
- package/dist/api/types/index.js +15 -0
- package/dist/serialization/resources/analyzeAsync/resources/batches/client/index.d.ts +1 -0
- package/dist/serialization/resources/analyzeAsync/resources/batches/client/index.js +17 -0
- package/dist/serialization/resources/analyzeAsync/resources/batches/client/requests/CreateAnalyzeBatchRequest.d.ts +19 -0
- package/dist/serialization/resources/analyzeAsync/resources/batches/client/requests/CreateAnalyzeBatchRequest.js +50 -0
- package/dist/serialization/resources/analyzeAsync/resources/batches/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/analyzeAsync/resources/batches/client/requests/index.js +5 -0
- package/dist/serialization/resources/analyzeAsync/resources/batches/index.d.ts +2 -0
- package/dist/serialization/resources/analyzeAsync/resources/batches/index.js +18 -0
- package/dist/serialization/resources/analyzeAsync/resources/batches/types/BatchesListRequestAnalysisModeItem.d.ts +10 -0
- package/dist/serialization/resources/analyzeAsync/resources/batches/types/BatchesListRequestAnalysisModeItem.js +41 -0
- package/dist/serialization/resources/analyzeAsync/resources/batches/types/BatchesListResponse.d.ts +15 -0
- package/dist/serialization/resources/analyzeAsync/resources/batches/types/BatchesListResponse.js +46 -0
- package/dist/serialization/resources/analyzeAsync/resources/batches/types/CreateAnalyzeBatchRequestAnalysisMode.d.ts +10 -0
- package/dist/serialization/resources/analyzeAsync/resources/batches/types/CreateAnalyzeBatchRequestAnalysisMode.js +41 -0
- package/dist/serialization/resources/analyzeAsync/resources/batches/types/CreateAnalyzeBatchRequestModelName.d.ts +10 -0
- package/dist/serialization/resources/analyzeAsync/resources/batches/types/CreateAnalyzeBatchRequestModelName.js +41 -0
- package/dist/serialization/resources/analyzeAsync/resources/batches/types/index.d.ts +4 -0
- package/dist/serialization/resources/analyzeAsync/resources/batches/types/index.js +20 -0
- package/dist/serialization/resources/analyzeAsync/resources/index.d.ts +3 -0
- package/dist/serialization/resources/analyzeAsync/resources/index.js +4 -1
- package/dist/serialization/types/AnalyzeBatchStatusResponse.d.ts +19 -0
- package/dist/serialization/types/AnalyzeBatchStatusResponse.js +52 -0
- package/dist/serialization/types/AnalyzeBatchSummary.d.ts +23 -0
- package/dist/serialization/types/AnalyzeBatchSummary.js +54 -0
- package/dist/serialization/types/AnalyzeBatchSummaryAnalysisMode.d.ts +10 -0
- package/dist/serialization/types/AnalyzeBatchSummaryAnalysisMode.js +41 -0
- package/dist/serialization/types/BatchDefaults.d.ts +22 -0
- package/dist/serialization/types/BatchDefaults.js +53 -0
- package/dist/serialization/types/BatchItemError.d.ts +13 -0
- package/dist/serialization/types/BatchItemError.js +44 -0
- package/dist/serialization/types/BatchItemRequest.d.ts +25 -0
- package/dist/serialization/types/BatchItemRequest.js +56 -0
- package/dist/serialization/types/BatchItemStatus.d.ts +10 -0
- package/dist/serialization/types/BatchItemStatus.js +41 -0
- package/dist/serialization/types/BatchPrompt.d.ts +14 -0
- package/dist/serialization/types/BatchPrompt.js +45 -0
- package/dist/serialization/types/BatchResultItem.d.ts +19 -0
- package/dist/serialization/types/BatchResultItem.js +50 -0
- package/dist/serialization/types/BatchStatus.d.ts +10 -0
- package/dist/serialization/types/BatchStatus.js +41 -0
- package/dist/serialization/types/BatchVideoContext.d.ts +14 -0
- package/dist/serialization/types/BatchVideoContext.js +45 -0
- package/dist/serialization/types/BatchVideoContextType.d.ts +10 -0
- package/dist/serialization/types/BatchVideoContextType.js +41 -0
- package/dist/serialization/types/CreateAnalyzeBatchResponse.d.ts +19 -0
- package/dist/serialization/types/CreateAnalyzeBatchResponse.js +50 -0
- package/dist/serialization/types/CreatedBatchItem.d.ts +13 -0
- package/dist/serialization/types/CreatedBatchItem.js +44 -0
- package/dist/serialization/types/EmbeddingTaskResponse.d.ts +2 -0
- package/dist/serialization/types/EmbeddingTaskResponse.js +2 -0
- package/dist/serialization/types/EmbeddingTaskResponseError.d.ts +12 -0
- package/dist/serialization/types/EmbeddingTaskResponseError.js +43 -0
- package/dist/serialization/types/index.d.ts +15 -0
- package/dist/serialization/types/index.js +15 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +489 -0
- package/serialization/resources/analyzeAsync/resources/batches/client/index.d.ts +1 -0
- package/serialization/resources/analyzeAsync/resources/batches/client/index.js +17 -0
- package/serialization/resources/analyzeAsync/resources/batches/client/requests/CreateAnalyzeBatchRequest.d.ts +19 -0
- package/serialization/resources/analyzeAsync/resources/batches/client/requests/CreateAnalyzeBatchRequest.js +50 -0
- package/serialization/resources/analyzeAsync/resources/batches/client/requests/index.d.ts +1 -0
- package/serialization/resources/analyzeAsync/resources/batches/client/requests/index.js +5 -0
- package/serialization/resources/analyzeAsync/resources/batches/index.d.ts +2 -0
- package/serialization/resources/analyzeAsync/resources/batches/index.js +18 -0
- package/serialization/resources/analyzeAsync/resources/batches/types/BatchesListRequestAnalysisModeItem.d.ts +10 -0
- package/serialization/resources/analyzeAsync/resources/batches/types/BatchesListRequestAnalysisModeItem.js +41 -0
- package/serialization/resources/analyzeAsync/resources/batches/types/BatchesListResponse.d.ts +15 -0
- package/serialization/resources/analyzeAsync/resources/batches/types/BatchesListResponse.js +46 -0
- package/serialization/resources/analyzeAsync/resources/batches/types/CreateAnalyzeBatchRequestAnalysisMode.d.ts +10 -0
- package/serialization/resources/analyzeAsync/resources/batches/types/CreateAnalyzeBatchRequestAnalysisMode.js +41 -0
- package/serialization/resources/analyzeAsync/resources/batches/types/CreateAnalyzeBatchRequestModelName.d.ts +10 -0
- package/serialization/resources/analyzeAsync/resources/batches/types/CreateAnalyzeBatchRequestModelName.js +41 -0
- package/serialization/resources/analyzeAsync/resources/batches/types/index.d.ts +4 -0
- package/serialization/resources/analyzeAsync/resources/batches/types/index.js +20 -0
- package/serialization/resources/analyzeAsync/resources/index.d.ts +3 -0
- package/serialization/resources/analyzeAsync/resources/index.js +4 -1
- package/serialization/types/AnalyzeBatchStatusResponse.d.ts +19 -0
- package/serialization/types/AnalyzeBatchStatusResponse.js +52 -0
- package/serialization/types/AnalyzeBatchSummary.d.ts +23 -0
- package/serialization/types/AnalyzeBatchSummary.js +54 -0
- package/serialization/types/AnalyzeBatchSummaryAnalysisMode.d.ts +10 -0
- package/serialization/types/AnalyzeBatchSummaryAnalysisMode.js +41 -0
- package/serialization/types/BatchDefaults.d.ts +22 -0
- package/serialization/types/BatchDefaults.js +53 -0
- package/serialization/types/BatchItemError.d.ts +13 -0
- package/serialization/types/BatchItemError.js +44 -0
- package/serialization/types/BatchItemRequest.d.ts +25 -0
- package/serialization/types/BatchItemRequest.js +56 -0
- package/serialization/types/BatchItemStatus.d.ts +10 -0
- package/serialization/types/BatchItemStatus.js +41 -0
- package/serialization/types/BatchPrompt.d.ts +14 -0
- package/serialization/types/BatchPrompt.js +45 -0
- package/serialization/types/BatchResultItem.d.ts +19 -0
- package/serialization/types/BatchResultItem.js +50 -0
- package/serialization/types/BatchStatus.d.ts +10 -0
- package/serialization/types/BatchStatus.js +41 -0
- package/serialization/types/BatchVideoContext.d.ts +14 -0
- package/serialization/types/BatchVideoContext.js +45 -0
- package/serialization/types/BatchVideoContextType.d.ts +10 -0
- package/serialization/types/BatchVideoContextType.js +41 -0
- package/serialization/types/CreateAnalyzeBatchResponse.d.ts +19 -0
- package/serialization/types/CreateAnalyzeBatchResponse.js +50 -0
- package/serialization/types/CreatedBatchItem.d.ts +13 -0
- package/serialization/types/CreatedBatchItem.js +44 -0
- package/serialization/types/EmbeddingTaskResponse.d.ts +2 -0
- package/serialization/types/EmbeddingTaskResponse.js +2 -0
- package/serialization/types/EmbeddingTaskResponseError.d.ts +12 -0
- package/serialization/types/EmbeddingTaskResponseError.js +43 -0
- package/serialization/types/index.d.ts +15 -0
- package/serialization/types/index.js +15 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -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.8", "User-Agent": "twelvelabs-js/1.2.8", "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.8", "User-Agent": "twelvelabs-js/1.2.8", "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.8", "User-Agent": "twelvelabs-js/1.2.8", "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 : 600000,
|
|
@@ -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.8", "User-Agent": "twelvelabs-js/1.2.8", "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 : 600000,
|
|
@@ -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.8", "User-Agent": "twelvelabs-js/1.2.8", "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" }),
|
|
@@ -89,7 +89,7 @@ class Entities {
|
|
|
89
89
|
const _response = yield core.fetcher({
|
|
90
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
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.
|
|
92
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "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
93
|
contentType: "application/json",
|
|
94
94
|
queryParameters: _queryParams,
|
|
95
95
|
requestType: "json",
|
|
@@ -196,7 +196,7 @@ class Entities {
|
|
|
196
196
|
const _response = yield core.fetcher({
|
|
197
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`),
|
|
198
198
|
method: "GET",
|
|
199
|
-
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.8", "User-Agent": "twelvelabs-js/1.2.8", "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),
|
|
200
200
|
contentType: "application/json",
|
|
201
201
|
queryParameters: _queryParams,
|
|
202
202
|
requestType: "json",
|
|
@@ -281,7 +281,7 @@ class Entities {
|
|
|
281
281
|
const _response = yield core.fetcher({
|
|
282
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`),
|
|
283
283
|
method: "POST",
|
|
284
|
-
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.8", "User-Agent": "twelvelabs-js/1.2.8", "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),
|
|
285
285
|
contentType: "application/json",
|
|
286
286
|
requestType: "json",
|
|
287
287
|
body: serializers.entityCollections.EntitiesCreateRequest.jsonOrThrow(request, {
|
|
@@ -357,7 +357,7 @@ class Entities {
|
|
|
357
357
|
const _response = yield core.fetcher({
|
|
358
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`),
|
|
359
359
|
method: "POST",
|
|
360
|
-
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.8", "User-Agent": "twelvelabs-js/1.2.8", "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),
|
|
361
361
|
contentType: "application/json",
|
|
362
362
|
requestType: "json",
|
|
363
363
|
body: serializers.entityCollections.EntitiesCreateBulkRequest.jsonOrThrow(request, {
|
|
@@ -428,7 +428,7 @@ class Entities {
|
|
|
428
428
|
const _response = yield core.fetcher({
|
|
429
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)}`),
|
|
430
430
|
method: "GET",
|
|
431
|
-
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.8", "User-Agent": "twelvelabs-js/1.2.8", "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),
|
|
432
432
|
contentType: "application/json",
|
|
433
433
|
requestType: "json",
|
|
434
434
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,
|
|
@@ -496,7 +496,7 @@ class Entities {
|
|
|
496
496
|
const _response = yield core.fetcher({
|
|
497
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)}`),
|
|
498
498
|
method: "DELETE",
|
|
499
|
-
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.8", "User-Agent": "twelvelabs-js/1.2.8", "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),
|
|
500
500
|
contentType: "application/json",
|
|
501
501
|
requestType: "json",
|
|
502
502
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,
|
|
@@ -557,7 +557,7 @@ class Entities {
|
|
|
557
557
|
const _response = yield core.fetcher({
|
|
558
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)}`),
|
|
559
559
|
method: "PATCH",
|
|
560
|
-
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.8", "User-Agent": "twelvelabs-js/1.2.8", "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),
|
|
561
561
|
contentType: "application/json",
|
|
562
562
|
requestType: "json",
|
|
563
563
|
body: serializers.entityCollections.EntitiesUpdateRequest.jsonOrThrow(request, {
|
|
@@ -633,7 +633,7 @@ class Entities {
|
|
|
633
633
|
const _response = yield core.fetcher({
|
|
634
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`),
|
|
635
635
|
method: "POST",
|
|
636
|
-
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.8", "User-Agent": "twelvelabs-js/1.2.8", "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),
|
|
637
637
|
contentType: "application/json",
|
|
638
638
|
requestType: "json",
|
|
639
639
|
body: serializers.entityCollections.EntitiesCreateAssetsRequest.jsonOrThrow(request, {
|
|
@@ -714,7 +714,7 @@ class Entities {
|
|
|
714
714
|
const _response = yield core.fetcher({
|
|
715
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`),
|
|
716
716
|
method: "DELETE",
|
|
717
|
-
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.8", "User-Agent": "twelvelabs-js/1.2.8", "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),
|
|
718
718
|
contentType: "application/json",
|
|
719
719
|
requestType: "json",
|
|
720
720
|
body: serializers.entityCollections.EntitiesDeleteAssetsRequest.jsonOrThrow(request, {
|
|
@@ -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.8", "User-Agent": "twelvelabs-js/1.2.8", "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.8", "User-Agent": "twelvelabs-js/1.2.8", "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.8", "User-Agent": "twelvelabs-js/1.2.8", "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 : 600000,
|
|
@@ -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.8", "User-Agent": "twelvelabs-js/1.2.8", "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.8", "User-Agent": "twelvelabs-js/1.2.8", "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 : 600000,
|
|
@@ -57,6 +57,8 @@ export declare class IndexedAssets {
|
|
|
57
57
|
*
|
|
58
58
|
* If you want to both search and analyze your videos, the most restrictive requirements apply.
|
|
59
59
|
*
|
|
60
|
+
* Indexes have limits on video hours and video count. For details, see the [Video hours and video count limits](/v1.3/docs/concepts/indexes#video-hours-and-video-count-limits) section.
|
|
61
|
+
*
|
|
60
62
|
* <Note title="Note">
|
|
61
63
|
* This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page.
|
|
62
64
|
* </Note>
|
|
@@ -163,7 +163,7 @@ class IndexedAssets {
|
|
|
163
163
|
const _response = yield core.fetcher({
|
|
164
164
|
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)}/indexed-assets`),
|
|
165
165
|
method: "GET",
|
|
166
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
166
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "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),
|
|
167
167
|
contentType: "application/json",
|
|
168
168
|
queryParameters: _queryParams,
|
|
169
169
|
requestType: "json",
|
|
@@ -235,6 +235,8 @@ class IndexedAssets {
|
|
|
235
235
|
*
|
|
236
236
|
* If you want to both search and analyze your videos, the most restrictive requirements apply.
|
|
237
237
|
*
|
|
238
|
+
* Indexes have limits on video hours and video count. For details, see the [Video hours and video count limits](/v1.3/docs/concepts/indexes#video-hours-and-video-count-limits) section.
|
|
239
|
+
*
|
|
238
240
|
* <Note title="Note">
|
|
239
241
|
* This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page.
|
|
240
242
|
* </Note>
|
|
@@ -261,7 +263,7 @@ class IndexedAssets {
|
|
|
261
263
|
const _response = yield core.fetcher({
|
|
262
264
|
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)}/indexed-assets`),
|
|
263
265
|
method: "POST",
|
|
264
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
266
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "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),
|
|
265
267
|
contentType: "application/json",
|
|
266
268
|
requestType: "json",
|
|
267
269
|
body: serializers.indexes.IndexedAssetsCreateRequest.jsonOrThrow(request, {
|
|
@@ -376,7 +378,7 @@ class IndexedAssets {
|
|
|
376
378
|
const _response = yield core.fetcher({
|
|
377
379
|
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)}/indexed-assets/${encodeURIComponent(indexedAssetId)}`),
|
|
378
380
|
method: "GET",
|
|
379
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
381
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "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),
|
|
380
382
|
contentType: "application/json",
|
|
381
383
|
queryParameters: _queryParams,
|
|
382
384
|
requestType: "json",
|
|
@@ -447,7 +449,7 @@ class IndexedAssets {
|
|
|
447
449
|
const _response = yield core.fetcher({
|
|
448
450
|
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)}/indexed-assets/${encodeURIComponent(indexedAssetId)}`),
|
|
449
451
|
method: "DELETE",
|
|
450
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
452
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "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),
|
|
451
453
|
contentType: "application/json",
|
|
452
454
|
requestType: "json",
|
|
453
455
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,
|
|
@@ -515,7 +517,7 @@ class IndexedAssets {
|
|
|
515
517
|
const _response = yield core.fetcher({
|
|
516
518
|
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)}/indexed-assets/${encodeURIComponent(indexedAssetId)}`),
|
|
517
519
|
method: "PATCH",
|
|
518
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
520
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "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),
|
|
519
521
|
contentType: "application/json",
|
|
520
522
|
requestType: "json",
|
|
521
523
|
body: serializers.indexes.IndexedAssetsUpdateRequest.jsonOrThrow(request, {
|
|
@@ -587,7 +589,7 @@ class IndexedAssets {
|
|
|
587
589
|
const _response = yield core.fetcher({
|
|
588
590
|
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)}/indexed-assets`),
|
|
589
591
|
method: "GET",
|
|
590
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
592
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "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),
|
|
591
593
|
contentType: "application/json",
|
|
592
594
|
queryParameters: _queryParams,
|
|
593
595
|
requestType: "json",
|
|
@@ -155,7 +155,7 @@ class Videos {
|
|
|
155
155
|
const _response = yield core.fetcher({
|
|
156
156
|
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)}/videos`),
|
|
157
157
|
method: "GET",
|
|
158
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
158
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "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),
|
|
159
159
|
contentType: "application/json",
|
|
160
160
|
queryParameters: _queryParams,
|
|
161
161
|
requestType: "json",
|
|
@@ -261,7 +261,7 @@ class Videos {
|
|
|
261
261
|
const _response = yield core.fetcher({
|
|
262
262
|
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)}/videos/${encodeURIComponent(videoId)}`),
|
|
263
263
|
method: "GET",
|
|
264
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
264
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "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),
|
|
265
265
|
contentType: "application/json",
|
|
266
266
|
queryParameters: _queryParams,
|
|
267
267
|
requestType: "json",
|
|
@@ -334,7 +334,7 @@ class Videos {
|
|
|
334
334
|
const _response = yield core.fetcher({
|
|
335
335
|
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)}/videos/${encodeURIComponent(videoId)}`),
|
|
336
336
|
method: "DELETE",
|
|
337
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
337
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "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),
|
|
338
338
|
contentType: "application/json",
|
|
339
339
|
requestType: "json",
|
|
340
340
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,
|
|
@@ -404,7 +404,7 @@ class Videos {
|
|
|
404
404
|
const _response = yield core.fetcher({
|
|
405
405
|
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)}/videos/${encodeURIComponent(videoId)}`),
|
|
406
406
|
method: "PATCH",
|
|
407
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
407
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "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),
|
|
408
408
|
contentType: "application/json",
|
|
409
409
|
requestType: "json",
|
|
410
410
|
body: serializers.indexes.VideosUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -90,7 +90,7 @@ class MultipartUpload {
|
|
|
90
90
|
const _response = yield core.fetcher({
|
|
91
91
|
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/multipart-uploads"),
|
|
92
92
|
method: "GET",
|
|
93
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
93
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "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),
|
|
94
94
|
contentType: "application/json",
|
|
95
95
|
queryParameters: _queryParams,
|
|
96
96
|
requestType: "json",
|
|
@@ -190,7 +190,7 @@ class MultipartUpload {
|
|
|
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, "assets/multipart-uploads"),
|
|
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.8", "User-Agent": "twelvelabs-js/1.2.8", "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.CreateAssetUploadRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -284,7 +284,7 @@ class MultipartUpload {
|
|
|
284
284
|
const _response = yield core.fetcher({
|
|
285
285
|
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/multipart-uploads/${encodeURIComponent(uploadId)}`),
|
|
286
286
|
method: "GET",
|
|
287
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
287
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "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),
|
|
288
288
|
contentType: "application/json",
|
|
289
289
|
queryParameters: _queryParams,
|
|
290
290
|
requestType: "json",
|
|
@@ -384,7 +384,7 @@ class MultipartUpload {
|
|
|
384
384
|
const _response = yield core.fetcher({
|
|
385
385
|
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/multipart-uploads/${encodeURIComponent(uploadId)}`),
|
|
386
386
|
method: "POST",
|
|
387
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
387
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "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),
|
|
388
388
|
contentType: "application/json",
|
|
389
389
|
requestType: "json",
|
|
390
390
|
body: serializers.ReportChunkBatchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -468,7 +468,7 @@ class MultipartUpload {
|
|
|
468
468
|
const _response = yield core.fetcher({
|
|
469
469
|
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/multipart-uploads/${encodeURIComponent(uploadId)}/presigned-urls`),
|
|
470
470
|
method: "POST",
|
|
471
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
471
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "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),
|
|
472
472
|
contentType: "application/json",
|
|
473
473
|
requestType: "json",
|
|
474
474
|
body: serializers.RequestAdditionalPresignedUrLsRequest.jsonOrThrow(request, {
|
|
@@ -152,7 +152,7 @@ class Search {
|
|
|
152
152
|
const _response = yield core.fetcher({
|
|
153
153
|
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, "search"),
|
|
154
154
|
method: "POST",
|
|
155
|
-
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
155
|
+
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "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),
|
|
156
156
|
requestType: "file",
|
|
157
157
|
duplex: _maybeEncodedRequest.duplex,
|
|
158
158
|
body: _maybeEncodedRequest.body,
|
|
@@ -234,7 +234,7 @@ class Search {
|
|
|
234
234
|
const _response = yield core.fetcher({
|
|
235
235
|
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, `search/${encodeURIComponent(pageToken)}`),
|
|
236
236
|
method: "GET",
|
|
237
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
237
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "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),
|
|
238
238
|
contentType: "application/json",
|
|
239
239
|
queryParameters: _queryParams,
|
|
240
240
|
requestType: "json",
|
|
@@ -71,6 +71,8 @@ export declare class Tasks {
|
|
|
71
71
|
* - If you want to both search and analyze your videos, the most restrictive requirements apply.
|
|
72
72
|
* - This method 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)
|
|
73
73
|
*
|
|
74
|
+
* Indexes have limits on video hours and video count. For details, see the [Video hours and video count limits](/v1.3/docs/concepts/indexes#video-hours-and-video-count-limits) section.
|
|
75
|
+
*
|
|
74
76
|
* <Note title="Note">
|
|
75
77
|
* This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page.
|
|
76
78
|
* </Note>
|
|
@@ -136,7 +136,7 @@ class Tasks {
|
|
|
136
136
|
const _response = yield core.fetcher({
|
|
137
137
|
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, "tasks"),
|
|
138
138
|
method: "GET",
|
|
139
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
139
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "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),
|
|
140
140
|
contentType: "application/json",
|
|
141
141
|
queryParameters: _queryParams,
|
|
142
142
|
requestType: "json",
|
|
@@ -219,6 +219,8 @@ class Tasks {
|
|
|
219
219
|
* - If you want to both search and analyze your videos, the most restrictive requirements apply.
|
|
220
220
|
* - This method 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)
|
|
221
221
|
*
|
|
222
|
+
* Indexes have limits on video hours and video count. For details, see the [Video hours and video count limits](/v1.3/docs/concepts/indexes#video-hours-and-video-count-limits) section.
|
|
223
|
+
*
|
|
222
224
|
* <Note title="Note">
|
|
223
225
|
* This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page.
|
|
224
226
|
* </Note>
|
|
@@ -257,7 +259,7 @@ class Tasks {
|
|
|
257
259
|
const _response = yield core.fetcher({
|
|
258
260
|
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, "tasks"),
|
|
259
261
|
method: "POST",
|
|
260
|
-
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
262
|
+
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "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),
|
|
261
263
|
requestType: "file",
|
|
262
264
|
duplex: _maybeEncodedRequest.duplex,
|
|
263
265
|
body: _maybeEncodedRequest.body,
|
|
@@ -325,7 +327,7 @@ class Tasks {
|
|
|
325
327
|
const _response = yield core.fetcher({
|
|
326
328
|
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, `tasks/${encodeURIComponent(taskId)}`),
|
|
327
329
|
method: "GET",
|
|
328
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
330
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "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
331
|
contentType: "application/json",
|
|
330
332
|
requestType: "json",
|
|
331
333
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,
|
|
@@ -395,7 +397,7 @@ class Tasks {
|
|
|
395
397
|
const _response = yield core.fetcher({
|
|
396
398
|
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, `tasks/${encodeURIComponent(taskId)}`),
|
|
397
399
|
method: "DELETE",
|
|
398
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
400
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "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),
|
|
399
401
|
contentType: "application/json",
|
|
400
402
|
requestType: "json",
|
|
401
403
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as TwelvelabsApi from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* A batch object that includes item counts for each item status.
|
|
7
|
+
*/
|
|
8
|
+
export interface AnalyzeBatchStatusResponse extends TwelvelabsApi.AnalyzeBatchSummary {
|
|
9
|
+
/** The number of items in the `queued` status. */
|
|
10
|
+
queuedItems: number;
|
|
11
|
+
/** The number of items in the `processing` status. */
|
|
12
|
+
processingItems: number;
|
|
13
|
+
/** The number of items that completed successfully. */
|
|
14
|
+
readyItems: number;
|
|
15
|
+
/** The number of items that failed. */
|
|
16
|
+
failedItems: number;
|
|
17
|
+
/** The number of items that were canceled, either because the batch was canceled while the item was in the `queued` status, or because the batch expired before the item finished processing. */
|
|
18
|
+
canceledItems: number;
|
|
19
|
+
/** The delivery status of each webhook endpoint for the batch completion notification. Present only after the platform sends the webhook notifications. To register webhooks, see the [Webhooks](/v1.3/docs/advanced/webhooks) page. */
|
|
20
|
+
webhooks?: TwelvelabsApi.AnalyzeTaskWebhookInfo[];
|
|
21
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as TwelvelabsApi from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* A batch object that summarizes the batch.
|
|
7
|
+
*/
|
|
8
|
+
export interface AnalyzeBatchSummary {
|
|
9
|
+
/** The unique identifier of the batch. Use this value to retrieve the batch status or results. */
|
|
10
|
+
batchId: string;
|
|
11
|
+
/** The analysis mode applied to every item in this batch. */
|
|
12
|
+
analysisMode: TwelvelabsApi.AnalyzeBatchSummaryAnalysisMode;
|
|
13
|
+
/** The model used for every item in this batch. */
|
|
14
|
+
modelName: string;
|
|
15
|
+
status: TwelvelabsApi.BatchStatus;
|
|
16
|
+
/** The number of items submitted in the batch. */
|
|
17
|
+
totalItems: number;
|
|
18
|
+
/** The date and time, in the RFC 3339 format, when the batch was created. */
|
|
19
|
+
createdAt: Date;
|
|
20
|
+
/** The date and time, in the RFC 3339 format, when the batch expires (the `created_at` field value plus 24 hours). Unfinished items at expiration are canceled. Items that finished before then remain retrievable for 30 days after creation, when the batch and its results are deleted. */
|
|
21
|
+
expiresAt: Date;
|
|
22
|
+
/** The date and time, in the RFC 3339 format, when the batch status became `completed`. Present only when the status is `completed`. */
|
|
23
|
+
completedAt?: Date;
|
|
24
|
+
/** The date and time, in the RFC 3339 format, when the batch status became `canceled`. Present only when the status is `canceled`. */
|
|
25
|
+
canceledAt?: Date;
|
|
26
|
+
/** The date and time, in the RFC 3339 format, when the batch status became `expired`. Present only when the status is `expired`. */
|
|
27
|
+
expiredAt?: Date;
|
|
28
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* The analysis mode applied to every item in this batch.
|
|
6
|
+
*/
|
|
7
|
+
export type AnalyzeBatchSummaryAnalysisMode = "general" | "time_based_metadata";
|
|
8
|
+
export declare const AnalyzeBatchSummaryAnalysisMode: {
|
|
9
|
+
readonly General: "general";
|
|
10
|
+
readonly TimeBasedMetadata: "time_based_metadata";
|
|
11
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.AnalyzeBatchSummaryAnalysisMode = void 0;
|
|
7
|
+
exports.AnalyzeBatchSummaryAnalysisMode = {
|
|
8
|
+
General: "general",
|
|
9
|
+
TimeBasedMetadata: "time_based_metadata",
|
|
10
|
+
};
|
|
@@ -147,7 +147,7 @@ export interface AsyncResponseFormat {
|
|
|
147
147
|
* - When `FinishReason` is `length`, the platform truncates the response at the maximum response length or the context window. This may result in truncated, invalid JSON that fails to parse.
|
|
148
148
|
*/
|
|
149
149
|
jsonSchema?: Record<string, unknown>;
|
|
150
|
-
/** Define the types of segments to extract from your video. Minimum 1, maximum
|
|
150
|
+
/** Define the types of segments to extract from your video. Minimum 1, maximum 20 definitions. The number of segment definitions affects billing. For details, see the [Frequently asked questions](/v1.3/docs/resources/frequently-asked-questions#how-is-video-segmentation-priced) page. */
|
|
151
151
|
segmentDefinitions?: TwelvelabsApi.SegmentDefinition[];
|
|
152
152
|
/**
|
|
153
153
|
* Set the output format for the automatic `start_time` and `end_time` keys returned on each segment. Requires the `type` parameter set to `segment_definitions` and the `model_name` parameter set to `pegasus1.5`. Omitting this parameter is equivalent to setting it to `seconds` — both return JSON numbers in seconds.
|