twelvelabs-js 1.2.7 → 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/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/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/index.d.ts +14 -0
- package/api/types/index.js +14 -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/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/index.d.ts +14 -0
- package/dist/api/types/index.js +14 -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/index.d.ts +14 -0
- package/dist/serialization/types/index.js +14 -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/index.d.ts +14 -0
- package/serialization/types/index.js +14 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as TwelvelabsApi from "../../../../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* page: 1,
|
|
9
|
+
* pageLimit: 10
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface BatchesListRequest {
|
|
13
|
+
/**
|
|
14
|
+
* A number that identifies the page to retrieve.
|
|
15
|
+
*
|
|
16
|
+
* **Default**: `1`.
|
|
17
|
+
*/
|
|
18
|
+
page?: number;
|
|
19
|
+
/**
|
|
20
|
+
* The number of items to return on each page.
|
|
21
|
+
*
|
|
22
|
+
* **Default**: `10`.
|
|
23
|
+
* **Max**: `50`.
|
|
24
|
+
*/
|
|
25
|
+
pageLimit?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Filter batches by status. Provide one or more values to include batches matching any of them. To send multiple values, repeat the `status` parameter:
|
|
28
|
+
* ```
|
|
29
|
+
* status=processing&status=canceling
|
|
30
|
+
* ```
|
|
31
|
+
* If you omit this parameter, the response includes batches in all statuses.
|
|
32
|
+
*/
|
|
33
|
+
status?: TwelvelabsApi.BatchStatus | TwelvelabsApi.BatchStatus[];
|
|
34
|
+
/**
|
|
35
|
+
* Filter batches by analysis mode. Provide one or more values to include batches matching any of them. To send multiple values, repeat the `analysis_mode` parameter:
|
|
36
|
+
* ```
|
|
37
|
+
* analysis_mode=general&analysis_mode=time_based_metadata
|
|
38
|
+
* ```
|
|
39
|
+
* If you omit this parameter, the response includes batches in all analysis modes.
|
|
40
|
+
*/
|
|
41
|
+
analysisMode?: TwelvelabsApi.analyzeAsync.BatchesListRequestAnalysisModeItem | TwelvelabsApi.analyzeAsync.BatchesListRequestAnalysisModeItem[];
|
|
42
|
+
}
|
package/api/resources/analyzeAsync/resources/batches/client/requests/CreateAnalyzeBatchRequest.d.ts
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as TwelvelabsApi from "../../../../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* modelName: "pegasus1.5",
|
|
9
|
+
* analysisMode: "general",
|
|
10
|
+
* defaults: {
|
|
11
|
+
* prompt: {
|
|
12
|
+
* inputText: "Generate a 3-sentence executive summary of this video."
|
|
13
|
+
* },
|
|
14
|
+
* temperature: 0.2,
|
|
15
|
+
* maxTokens: 4096
|
|
16
|
+
* },
|
|
17
|
+
* requests: [{
|
|
18
|
+
* video: {
|
|
19
|
+
* type: "asset_id",
|
|
20
|
+
* assetId: "6298d673f1090f1100476d4c"
|
|
21
|
+
* },
|
|
22
|
+
* customId: "summary-001"
|
|
23
|
+
* }, {
|
|
24
|
+
* video: {
|
|
25
|
+
* type: "asset_id",
|
|
26
|
+
* assetId: "6298d673f1090f1100476d4d"
|
|
27
|
+
* },
|
|
28
|
+
* customId: "summary-002"
|
|
29
|
+
* }, {
|
|
30
|
+
* video: {
|
|
31
|
+
* type: "asset_id",
|
|
32
|
+
* assetId: "6298d673f1090f1100476d4e"
|
|
33
|
+
* },
|
|
34
|
+
* customId: "action-003",
|
|
35
|
+
* prompt: {
|
|
36
|
+
* inputText: "List all action items discussed."
|
|
37
|
+
* }
|
|
38
|
+
* }]
|
|
39
|
+
* }
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* {
|
|
43
|
+
* modelName: "pegasus1.5",
|
|
44
|
+
* analysisMode: "time_based_metadata",
|
|
45
|
+
* defaults: {
|
|
46
|
+
* responseFormat: {
|
|
47
|
+
* type: "segment_definitions",
|
|
48
|
+
* segmentDefinitions: [{
|
|
49
|
+
* id: "product_moments",
|
|
50
|
+
* description: "Moments where a person holds <@product> while speaking to the camera.",
|
|
51
|
+
* fields: [{
|
|
52
|
+
* name: "segment_title",
|
|
53
|
+
* type: "string",
|
|
54
|
+
* description: "A short headline for this moment"
|
|
55
|
+
* }, {
|
|
56
|
+
* name: "product_visibility",
|
|
57
|
+
* type: "string",
|
|
58
|
+
* description: "How prominently the product appears in this segment",
|
|
59
|
+
* enum: ["FULL", "PARTIAL", "BACKGROUND"]
|
|
60
|
+
* }],
|
|
61
|
+
* mediaSources: [{
|
|
62
|
+
* name: "product",
|
|
63
|
+
* mediaType: "image",
|
|
64
|
+
* url: "https://example.com/product.jpg"
|
|
65
|
+
* }]
|
|
66
|
+
* }]
|
|
67
|
+
* },
|
|
68
|
+
* temperature: 0,
|
|
69
|
+
* maxTokens: 4096,
|
|
70
|
+
* minSegmentDuration: 2
|
|
71
|
+
* },
|
|
72
|
+
* requests: [{
|
|
73
|
+
* video: {
|
|
74
|
+
* type: "asset_id",
|
|
75
|
+
* assetId: "6298d673f1090f1100476d4c"
|
|
76
|
+
* },
|
|
77
|
+
* customId: "ep-001"
|
|
78
|
+
* }, {
|
|
79
|
+
* video: {
|
|
80
|
+
* type: "asset_id",
|
|
81
|
+
* assetId: "6298d673f1090f1100476d4d"
|
|
82
|
+
* },
|
|
83
|
+
* customId: "ep-002"
|
|
84
|
+
* }]
|
|
85
|
+
* }
|
|
86
|
+
*/
|
|
87
|
+
export interface CreateAnalyzeBatchRequest {
|
|
88
|
+
/** The video understanding model to use for every item in this batch. Batch analysis requires Pegasus 1.5. */
|
|
89
|
+
modelName: TwelvelabsApi.analyzeAsync.CreateAnalyzeBatchRequestModelName;
|
|
90
|
+
/**
|
|
91
|
+
* The analysis approach for every item in this batch.
|
|
92
|
+
* - `general`: Generate text from each video based on the prompt (the item's `prompt` field if set, otherwise `defaults.prompt`). Supports structured JSON output by using `json_schema` in the `response_format.type` field.
|
|
93
|
+
* - `time_based_metadata`: Extract timestamped metadata by using `segment_definitions` in the `response_format.type` field.
|
|
94
|
+
*
|
|
95
|
+
* Batches with mixed modes are not supported.
|
|
96
|
+
*/
|
|
97
|
+
analysisMode: TwelvelabsApi.analyzeAsync.CreateAnalyzeBatchRequestAnalysisMode;
|
|
98
|
+
defaults?: TwelvelabsApi.BatchDefaults;
|
|
99
|
+
/** The analysis requests in the batch. Provide 1 to 1,000 requests, with a combined video duration of up to 2,000 hours. */
|
|
100
|
+
requests: TwelvelabsApi.BatchItemRequest[];
|
|
101
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
18
|
+
__exportStar(require("./client"), exports);
|
package/api/resources/analyzeAsync/resources/batches/types/BatchesListRequestAnalysisModeItem.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type BatchesListRequestAnalysisModeItem = "general" | "time_based_metadata";
|
|
5
|
+
export declare const BatchesListRequestAnalysisModeItem: {
|
|
6
|
+
readonly General: "general";
|
|
7
|
+
readonly TimeBasedMetadata: "time_based_metadata";
|
|
8
|
+
};
|
package/api/resources/analyzeAsync/resources/batches/types/BatchesListRequestAnalysisModeItem.js
ADDED
|
@@ -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.BatchesListRequestAnalysisModeItem = void 0;
|
|
7
|
+
exports.BatchesListRequestAnalysisModeItem = {
|
|
8
|
+
General: "general",
|
|
9
|
+
TimeBasedMetadata: "time_based_metadata",
|
|
10
|
+
};
|
|
@@ -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 BatchesListResponse {
|
|
6
|
+
/** An array of batch objects. Each object includes item counts for each item status. */
|
|
7
|
+
data: TwelvelabsApi.AnalyzeBatchStatusResponse[];
|
|
8
|
+
pageInfo: TwelvelabsApi.PageInfo;
|
|
9
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* The analysis approach for every item in this batch.
|
|
6
|
+
* - `general`: Generate text from each video based on the prompt (the item's `prompt` field if set, otherwise `defaults.prompt`). Supports structured JSON output by using `json_schema` in the `response_format.type` field.
|
|
7
|
+
* - `time_based_metadata`: Extract timestamped metadata by using `segment_definitions` in the `response_format.type` field.
|
|
8
|
+
*
|
|
9
|
+
* Batches with mixed modes are not supported.
|
|
10
|
+
*/
|
|
11
|
+
export type CreateAnalyzeBatchRequestAnalysisMode = "general" | "time_based_metadata";
|
|
12
|
+
export declare const CreateAnalyzeBatchRequestAnalysisMode: {
|
|
13
|
+
readonly General: "general";
|
|
14
|
+
readonly TimeBasedMetadata: "time_based_metadata";
|
|
15
|
+
};
|
package/api/resources/analyzeAsync/resources/batches/types/CreateAnalyzeBatchRequestAnalysisMode.js
ADDED
|
@@ -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.CreateAnalyzeBatchRequestAnalysisMode = void 0;
|
|
7
|
+
exports.CreateAnalyzeBatchRequestAnalysisMode = {
|
|
8
|
+
General: "general",
|
|
9
|
+
TimeBasedMetadata: "time_based_metadata",
|
|
10
|
+
};
|
package/api/resources/analyzeAsync/resources/batches/types/CreateAnalyzeBatchRequestModelName.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* The video understanding model to use for every item in this batch. Batch analysis requires Pegasus 1.5.
|
|
6
|
+
*/
|
|
7
|
+
export type CreateAnalyzeBatchRequestModelName = "pegasus1.5";
|
|
8
|
+
export declare const CreateAnalyzeBatchRequestModelName: {
|
|
9
|
+
readonly Pegasus15: "pegasus1.5";
|
|
10
|
+
};
|
package/api/resources/analyzeAsync/resources/batches/types/CreateAnalyzeBatchRequestModelName.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
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.CreateAnalyzeBatchRequestModelName = void 0;
|
|
7
|
+
exports.CreateAnalyzeBatchRequestModelName = {
|
|
8
|
+
Pegasus15: "pegasus1.5",
|
|
9
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./BatchesListRequestAnalysisModeItem"), exports);
|
|
18
|
+
__exportStar(require("./BatchesListResponse"), exports);
|
|
19
|
+
__exportStar(require("./CreateAnalyzeBatchRequestModelName"), exports);
|
|
20
|
+
__exportStar(require("./CreateAnalyzeBatchRequestAnalysisMode"), exports);
|
|
@@ -36,7 +36,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.tasks = void 0;
|
|
39
|
+
exports.batches = exports.tasks = void 0;
|
|
40
40
|
exports.tasks = __importStar(require("./tasks"));
|
|
41
41
|
__exportStar(require("./tasks/types"), exports);
|
|
42
|
+
exports.batches = __importStar(require("./batches"));
|
|
43
|
+
__exportStar(require("./batches/types"), exports);
|
|
42
44
|
__exportStar(require("./tasks/client/requests"), exports);
|
|
45
|
+
__exportStar(require("./batches/client/requests"), exports);
|
|
@@ -72,6 +72,8 @@ export declare class Tasks {
|
|
|
72
72
|
* 2. Poll the status of the task using the [`GET`](/v1.3/api-reference/analyze-videos/retrieve-analysis-task-status-results) method of the `/analyze/tasks/{task_id}` endpoint. Wait until the status is `ready`.
|
|
73
73
|
* 3. Retrieve the results from the response when the status is `ready` using the [`GET`](/v1.3/api-reference/analyze-videos/retrieve-analysis-task-status-results) method of the `/analyze/tasks/{task_id}` endpoint.
|
|
74
74
|
*
|
|
75
|
+
* On the Free plan, you have a total of 600 minutes (10 hours) shared across indexing, analysis, and segmentation. For details, see the [Video hours and video count limits](/v1.3/docs/concepts/indexes#video-hours-and-video-count-limits) section.
|
|
76
|
+
*
|
|
75
77
|
* <Note title="Note">
|
|
76
78
|
* This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page.
|
|
77
79
|
* </Note>
|
|
@@ -112,7 +112,7 @@ class Tasks {
|
|
|
112
112
|
const _response = yield core.fetcher({
|
|
113
113
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, "analyze/tasks"),
|
|
114
114
|
method: "GET",
|
|
115
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
115
|
+
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),
|
|
116
116
|
contentType: "application/json",
|
|
117
117
|
queryParameters: _queryParams,
|
|
118
118
|
requestType: "json",
|
|
@@ -186,6 +186,8 @@ class Tasks {
|
|
|
186
186
|
* 2. Poll the status of the task using the [`GET`](/v1.3/api-reference/analyze-videos/retrieve-analysis-task-status-results) method of the `/analyze/tasks/{task_id}` endpoint. Wait until the status is `ready`.
|
|
187
187
|
* 3. Retrieve the results from the response when the status is `ready` using the [`GET`](/v1.3/api-reference/analyze-videos/retrieve-analysis-task-status-results) method of the `/analyze/tasks/{task_id}` endpoint.
|
|
188
188
|
*
|
|
189
|
+
* On the Free plan, you have a total of 600 minutes (10 hours) shared across indexing, analysis, and segmentation. For details, see the [Video hours and video count limits](/v1.3/docs/concepts/indexes#video-hours-and-video-count-limits) section.
|
|
190
|
+
*
|
|
189
191
|
* <Note title="Note">
|
|
190
192
|
* This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page.
|
|
191
193
|
* </Note>
|
|
@@ -373,7 +375,7 @@ class Tasks {
|
|
|
373
375
|
const _response = yield core.fetcher({
|
|
374
376
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, "analyze/tasks"),
|
|
375
377
|
method: "POST",
|
|
376
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
378
|
+
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),
|
|
377
379
|
contentType: "application/json",
|
|
378
380
|
requestType: "json",
|
|
379
381
|
body: serializers.analyzeAsync.CreateAsyncAnalyzeRequest.jsonOrThrow(request, {
|
|
@@ -454,7 +456,7 @@ class Tasks {
|
|
|
454
456
|
const _response = yield core.fetcher({
|
|
455
457
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `analyze/tasks/${encodeURIComponent(taskId)}`),
|
|
456
458
|
method: "GET",
|
|
457
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
459
|
+
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),
|
|
458
460
|
contentType: "application/json",
|
|
459
461
|
requestType: "json",
|
|
460
462
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,
|
|
@@ -522,7 +524,7 @@ class Tasks {
|
|
|
522
524
|
const _response = yield core.fetcher({
|
|
523
525
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `analyze/tasks/${encodeURIComponent(taskId)}`),
|
|
524
526
|
method: "DELETE",
|
|
525
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
527
|
+
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),
|
|
526
528
|
contentType: "application/json",
|
|
527
529
|
requestType: "json",
|
|
528
530
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,
|
package/api/resources/analyzeAsync/resources/tasks/client/requests/CreateAsyncAnalyzeRequest.d.ts
CHANGED
|
@@ -225,7 +225,7 @@ export interface CreateAsyncAnalyzeRequest {
|
|
|
225
225
|
*
|
|
226
226
|
* | Model | Mode | Min | Max | Default |
|
|
227
227
|
* |-------|------|-----|-----|---------|
|
|
228
|
-
* | Pegasus 1.2 | — |
|
|
228
|
+
* | Pegasus 1.2 | — | 2 | 4,096 | 4096 |
|
|
229
229
|
* | Pegasus 1.5 | `general` | 512 | 98,304 | 4,096 |
|
|
230
230
|
* | Pegasus 1.5 | `time_based_metadata` | 2,048 | 98,304 | 32,768 |
|
|
231
231
|
*/
|
|
@@ -112,7 +112,7 @@ class Assets {
|
|
|
112
112
|
const _response = yield core.fetcher({
|
|
113
113
|
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"),
|
|
114
114
|
method: "GET",
|
|
115
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
115
|
+
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),
|
|
116
116
|
contentType: "application/json",
|
|
117
117
|
queryParameters: _queryParams,
|
|
118
118
|
requestType: "json",
|
|
@@ -237,7 +237,7 @@ class Assets {
|
|
|
237
237
|
const _response = yield core.fetcher({
|
|
238
238
|
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"),
|
|
239
239
|
method: "POST",
|
|
240
|
-
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
240
|
+
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),
|
|
241
241
|
requestType: "file",
|
|
242
242
|
duplex: _maybeEncodedRequest.duplex,
|
|
243
243
|
body: _maybeEncodedRequest.body,
|
|
@@ -305,7 +305,7 @@ class Assets {
|
|
|
305
305
|
const _response = yield core.fetcher({
|
|
306
306
|
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)}`),
|
|
307
307
|
method: "GET",
|
|
308
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
308
|
+
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),
|
|
309
309
|
contentType: "application/json",
|
|
310
310
|
requestType: "json",
|
|
311
311
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,
|
|
@@ -387,7 +387,7 @@ class Assets {
|
|
|
387
387
|
const _response = yield core.fetcher({
|
|
388
388
|
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)}`),
|
|
389
389
|
method: "DELETE",
|
|
390
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
390
|
+
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),
|
|
391
391
|
contentType: "application/json",
|
|
392
392
|
queryParameters: _queryParams,
|
|
393
393
|
requestType: "json",
|
|
@@ -463,7 +463,7 @@ class Assets {
|
|
|
463
463
|
const _response = yield core.fetcher({
|
|
464
464
|
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)}/user-metadata`),
|
|
465
465
|
method: "PUT",
|
|
466
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
466
|
+
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),
|
|
467
467
|
contentType: "application/json",
|
|
468
468
|
requestType: "json",
|
|
469
469
|
body: serializers.AssetsReplaceUserMetadataRequest.jsonOrThrow(request, {
|
|
@@ -530,7 +530,7 @@ class Assets {
|
|
|
530
530
|
const _response = yield core.fetcher({
|
|
531
531
|
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)}/user-metadata`),
|
|
532
532
|
method: "DELETE",
|
|
533
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
533
|
+
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),
|
|
534
534
|
contentType: "application/json",
|
|
535
535
|
requestType: "json",
|
|
536
536
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,
|
|
@@ -606,7 +606,7 @@ class Assets {
|
|
|
606
606
|
const _response = yield core.fetcher({
|
|
607
607
|
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)}/user-metadata`),
|
|
608
608
|
method: "PATCH",
|
|
609
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.
|
|
609
|
+
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),
|
|
610
610
|
contentType: "application/json",
|
|
611
611
|
requestType: "json",
|
|
612
612
|
body: serializers.AssetsUpdateUserMetadataRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -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.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),
|
|
145
145
|
requestType: "file",
|
|
146
146
|
duplex: _maybeEncodedRequest.duplex,
|
|
147
147
|
body: _maybeEncodedRequest.body,
|
|
@@ -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.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),
|
|
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.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),
|
|
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.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),
|
|
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 : 600000,
|
|
@@ -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.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),
|
|
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.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
|
body: serializers.embed.CreateEmbeddingsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -105,7 +105,7 @@ class Tasks {
|
|
|
105
105
|
const _response = yield core.fetcher({
|
|
106
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"),
|
|
107
107
|
method: "GET",
|
|
108
|
-
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.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),
|
|
109
109
|
contentType: "application/json",
|
|
110
110
|
queryParameters: _queryParams,
|
|
111
111
|
requestType: "json",
|
|
@@ -271,7 +271,7 @@ class Tasks {
|
|
|
271
271
|
const _response = yield core.fetcher({
|
|
272
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"),
|
|
273
273
|
method: "POST",
|
|
274
|
-
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.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),
|
|
275
275
|
contentType: "application/json",
|
|
276
276
|
requestType: "json",
|
|
277
277
|
body: serializers.embed.v2.CreateAsyncEmbeddingRequest.jsonOrThrow(request, {
|
|
@@ -354,7 +354,7 @@ class Tasks {
|
|
|
354
354
|
const _response = yield core.fetcher({
|
|
355
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)}`),
|
|
356
356
|
method: "GET",
|
|
357
|
-
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.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),
|
|
358
358
|
contentType: "application/json",
|
|
359
359
|
requestType: "json",
|
|
360
360
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,
|