twelvelabs-js 1.0.1 → 1.0.2
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/0.4/examples/generate.ts +1 -5
- package/Client.d.ts +23 -2
- package/Client.js +28 -7
- package/api/client/requests/AnalyzeRequest.d.ts +26 -1
- package/api/client/requests/AnalyzeStreamRequest.d.ts +26 -1
- package/api/client/requests/SummarizeRequest.d.ts +9 -0
- package/api/resources/embed/client/Client.js +1 -1
- package/api/resources/embed/resources/tasks/client/Client.js +4 -4
- package/api/resources/indexes/client/Client.js +5 -5
- package/api/resources/indexes/resources/videos/client/Client.js +4 -4
- package/api/resources/search/client/Client.js +2 -2
- package/api/resources/search/client/requests/SearchCreateRequest.d.ts +1 -7
- package/api/resources/search/types/SearchCreateRequestOperator.d.ts +1 -7
- package/api/resources/tasks/client/Client.js +4 -4
- package/api/resources/tasks/resources/transfers/client/Client.js +3 -3
- package/api/types/FinishReason.d.ts +13 -0
- package/api/types/FinishReason.js +10 -0
- package/api/types/NonStreamAnalyzeResponse.d.ts +1 -0
- package/api/types/ResponseFormat.d.ts +80 -0
- package/api/types/ResponseFormat.js +5 -0
- package/api/types/StreamAnalyzeResponse.d.ts +12 -1
- package/api/types/StreamEndResponse.d.ts +1 -2
- package/api/types/StreamStartResponse.d.ts +0 -2
- package/api/types/StreamTextResponse.d.ts +0 -2
- package/api/types/index.d.ts +2 -0
- package/api/types/index.js +2 -0
- package/dist/Client.d.ts +23 -2
- package/dist/Client.js +28 -7
- package/dist/api/client/requests/AnalyzeRequest.d.ts +26 -1
- package/dist/api/client/requests/AnalyzeStreamRequest.d.ts +26 -1
- package/dist/api/client/requests/SummarizeRequest.d.ts +9 -0
- 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/indexes/client/Client.js +5 -5
- package/dist/api/resources/indexes/resources/videos/client/Client.js +4 -4
- package/dist/api/resources/search/client/Client.js +2 -2
- package/dist/api/resources/search/client/requests/SearchCreateRequest.d.ts +1 -7
- package/dist/api/resources/search/types/SearchCreateRequestOperator.d.ts +1 -7
- package/dist/api/resources/tasks/client/Client.js +4 -4
- package/dist/api/resources/tasks/resources/transfers/client/Client.js +3 -3
- package/dist/api/types/FinishReason.d.ts +13 -0
- package/dist/api/types/FinishReason.js +10 -0
- package/dist/api/types/NonStreamAnalyzeResponse.d.ts +1 -0
- package/dist/api/types/ResponseFormat.d.ts +80 -0
- package/dist/api/types/ResponseFormat.js +5 -0
- package/dist/api/types/StreamAnalyzeResponse.d.ts +12 -1
- package/dist/api/types/StreamEndResponse.d.ts +1 -2
- package/dist/api/types/StreamStartResponse.d.ts +0 -2
- package/dist/api/types/StreamTextResponse.d.ts +0 -2
- package/dist/api/types/index.d.ts +2 -0
- package/dist/api/types/index.js +2 -0
- package/dist/serialization/client/requests/AnalyzeRequest.d.ts +3 -0
- package/dist/serialization/client/requests/AnalyzeRequest.js +3 -0
- package/dist/serialization/client/requests/AnalyzeStreamRequest.d.ts +3 -0
- package/dist/serialization/client/requests/AnalyzeStreamRequest.js +3 -0
- package/dist/serialization/client/requests/SummarizeRequest.d.ts +3 -0
- package/dist/serialization/client/requests/SummarizeRequest.js +3 -0
- package/dist/serialization/types/FinishReason.d.ts +10 -0
- package/dist/serialization/types/FinishReason.js +41 -0
- package/dist/serialization/types/NonStreamAnalyzeResponse.d.ts +2 -0
- package/dist/serialization/types/NonStreamAnalyzeResponse.js +2 -0
- package/dist/serialization/types/ResponseFormat.d.ts +13 -0
- package/dist/serialization/types/ResponseFormat.js +44 -0
- package/dist/serialization/types/StreamAnalyzeResponse.d.ts +10 -1
- package/dist/serialization/types/StreamAnalyzeResponse.js +10 -1
- package/dist/serialization/types/StreamEndResponse.d.ts +2 -1
- package/dist/serialization/types/StreamEndResponse.js +2 -1
- package/dist/serialization/types/StreamStartResponse.d.ts +0 -1
- package/dist/serialization/types/StreamStartResponse.js +0 -1
- package/dist/serialization/types/StreamTextResponse.d.ts +0 -1
- package/dist/serialization/types/StreamTextResponse.js +0 -1
- package/dist/serialization/types/index.d.ts +2 -0
- package/dist/serialization/types/index.js +2 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/examples/analyze.ts +100 -37
- package/package.json +1 -1
- package/reference.md +21 -0
- package/serialization/client/requests/AnalyzeRequest.d.ts +3 -0
- package/serialization/client/requests/AnalyzeRequest.js +3 -0
- package/serialization/client/requests/AnalyzeStreamRequest.d.ts +3 -0
- package/serialization/client/requests/AnalyzeStreamRequest.js +3 -0
- package/serialization/client/requests/SummarizeRequest.d.ts +3 -0
- package/serialization/client/requests/SummarizeRequest.js +3 -0
- package/serialization/types/FinishReason.d.ts +10 -0
- package/serialization/types/FinishReason.js +41 -0
- package/serialization/types/NonStreamAnalyzeResponse.d.ts +2 -0
- package/serialization/types/NonStreamAnalyzeResponse.js +2 -0
- package/serialization/types/ResponseFormat.d.ts +13 -0
- package/serialization/types/ResponseFormat.js +44 -0
- package/serialization/types/StreamAnalyzeResponse.d.ts +10 -1
- package/serialization/types/StreamAnalyzeResponse.js +10 -1
- package/serialization/types/StreamEndResponse.d.ts +2 -1
- package/serialization/types/StreamEndResponse.js +2 -1
- package/serialization/types/StreamStartResponse.d.ts +0 -1
- package/serialization/types/StreamStartResponse.js +0 -1
- package/serialization/types/StreamTextResponse.d.ts +0 -1
- package/serialization/types/StreamTextResponse.js +0 -1
- package/serialization/types/index.d.ts +2 -0
- package/serialization/types/index.js +2 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/0.4/examples/generate.ts
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { TwelveLabs } from 'twelvelabs';
|
|
2
|
-
|
|
3
2
|
(async () => {
|
|
4
3
|
const client = new TwelveLabs({ apiKey: process.env.API_KEY });
|
|
5
|
-
|
|
6
4
|
const videoId = '<YOUR_VIDEO_ID>';
|
|
7
|
-
|
|
8
5
|
const summary = await client.summarize(videoId, 'summary');
|
|
9
6
|
console.log(`Summary: ${summary.summary}`);
|
|
10
|
-
|
|
11
7
|
const gist = await client.gist(videoId, ['title', 'topic', 'hashtag']);
|
|
12
8
|
console.log(`Gist: title=${gist.title} topics=${gist.topics} hashtags=${gist.hashtags}`);
|
|
13
9
|
|
|
@@ -21,4 +17,4 @@ import { TwelveLabs } from 'twelvelabs';
|
|
|
21
17
|
}
|
|
22
18
|
|
|
23
19
|
console.log(`Aggregated analysis: ${analysisStream.aggregatedText}`);
|
|
24
|
-
})();
|
|
20
|
+
})();
|
package/Client.d.ts
CHANGED
|
@@ -82,7 +82,7 @@ export declare class TwelvelabsApiClient {
|
|
|
82
82
|
gist(request: TwelvelabsApi.GistRequest, requestOptions?: TwelvelabsApiClient.RequestOptions): core.HttpResponsePromise<TwelvelabsApi.Gist>;
|
|
83
83
|
private __gist;
|
|
84
84
|
/**
|
|
85
|
-
* <Warning>This endpoint
|
|
85
|
+
* <Warning>This endpoint is deprecated. Use the [`/analyze`](/v1.3/api-reference/analyze-videos/analyze) endpoint instead, which provides identical functionality.</Warning>
|
|
86
86
|
*
|
|
87
87
|
* This endpoint generates open-ended texts based on your videos, including but not limited to tables of content, action items, memos, and detailed analyses.
|
|
88
88
|
*
|
|
@@ -135,7 +135,28 @@ export declare class TwelvelabsApiClient {
|
|
|
135
135
|
* await client.analyze({
|
|
136
136
|
* videoId: "6298d673f1090f1100476d4c",
|
|
137
137
|
* prompt: "I want to generate a description for my video with the following format - Title of the video, followed by a summary in 2-3 sentences, highlighting the main topic, key events, and concluding remarks.",
|
|
138
|
-
* temperature: 0.2
|
|
138
|
+
* temperature: 0.2,
|
|
139
|
+
* responseFormat: {
|
|
140
|
+
* type: "json_schema",
|
|
141
|
+
* jsonSchema: {
|
|
142
|
+
* "type": "object",
|
|
143
|
+
* "properties": {
|
|
144
|
+
* "title": {
|
|
145
|
+
* "type": "string"
|
|
146
|
+
* },
|
|
147
|
+
* "summary": {
|
|
148
|
+
* "type": "string"
|
|
149
|
+
* },
|
|
150
|
+
* "keywords": {
|
|
151
|
+
* "type": "array",
|
|
152
|
+
* "items": {
|
|
153
|
+
* "type": "string"
|
|
154
|
+
* }
|
|
155
|
+
* }
|
|
156
|
+
* }
|
|
157
|
+
* }
|
|
158
|
+
* },
|
|
159
|
+
* maxTokens: 2000
|
|
139
160
|
* })
|
|
140
161
|
*/
|
|
141
162
|
analyze(request: TwelvelabsApi.AnalyzeRequest, requestOptions?: TwelvelabsApiClient.RequestOptions): core.HttpResponsePromise<TwelvelabsApi.NonStreamAnalyzeResponse>;
|
package/Client.js
CHANGED
|
@@ -109,7 +109,7 @@ class TwelvelabsApiClient {
|
|
|
109
109
|
const _response = yield core.fetcher({
|
|
110
110
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, "summarize"),
|
|
111
111
|
method: "POST",
|
|
112
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.
|
|
112
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.2", "User-Agent": "twelvelabs-js/1.0.2", "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),
|
|
113
113
|
contentType: "application/json",
|
|
114
114
|
requestType: "json",
|
|
115
115
|
body: serializers.SummarizeRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -187,7 +187,7 @@ class TwelvelabsApiClient {
|
|
|
187
187
|
const _response = yield core.fetcher({
|
|
188
188
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, "gist"),
|
|
189
189
|
method: "POST",
|
|
190
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.
|
|
190
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.2", "User-Agent": "twelvelabs-js/1.0.2", "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),
|
|
191
191
|
contentType: "application/json",
|
|
192
192
|
requestType: "json",
|
|
193
193
|
body: serializers.GistRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -238,7 +238,7 @@ class TwelvelabsApiClient {
|
|
|
238
238
|
});
|
|
239
239
|
}
|
|
240
240
|
/**
|
|
241
|
-
* <Warning>This endpoint
|
|
241
|
+
* <Warning>This endpoint is deprecated. Use the [`/analyze`](/v1.3/api-reference/analyze-videos/analyze) endpoint instead, which provides identical functionality.</Warning>
|
|
242
242
|
*
|
|
243
243
|
* This endpoint generates open-ended texts based on your videos, including but not limited to tables of content, action items, memos, and detailed analyses.
|
|
244
244
|
*
|
|
@@ -270,7 +270,7 @@ class TwelvelabsApiClient {
|
|
|
270
270
|
const _response = yield core.fetcher({
|
|
271
271
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, "generate"),
|
|
272
272
|
method: "POST",
|
|
273
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.
|
|
273
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.2", "User-Agent": "twelvelabs-js/1.0.2", "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),
|
|
274
274
|
contentType: "application/json",
|
|
275
275
|
requestType: "json",
|
|
276
276
|
body: serializers.GenerateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -337,7 +337,7 @@ class TwelvelabsApiClient {
|
|
|
337
337
|
const _response = yield core.fetcher({
|
|
338
338
|
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"),
|
|
339
339
|
method: "POST",
|
|
340
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.
|
|
340
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.2", "User-Agent": "twelvelabs-js/1.0.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
341
341
|
contentType: "application/json",
|
|
342
342
|
requestType: "json",
|
|
343
343
|
body: Object.assign(Object.assign({}, serializers.AnalyzeStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" })), { stream: true }),
|
|
@@ -416,7 +416,28 @@ class TwelvelabsApiClient {
|
|
|
416
416
|
* await client.analyze({
|
|
417
417
|
* videoId: "6298d673f1090f1100476d4c",
|
|
418
418
|
* prompt: "I want to generate a description for my video with the following format - Title of the video, followed by a summary in 2-3 sentences, highlighting the main topic, key events, and concluding remarks.",
|
|
419
|
-
* temperature: 0.2
|
|
419
|
+
* temperature: 0.2,
|
|
420
|
+
* responseFormat: {
|
|
421
|
+
* type: "json_schema",
|
|
422
|
+
* jsonSchema: {
|
|
423
|
+
* "type": "object",
|
|
424
|
+
* "properties": {
|
|
425
|
+
* "title": {
|
|
426
|
+
* "type": "string"
|
|
427
|
+
* },
|
|
428
|
+
* "summary": {
|
|
429
|
+
* "type": "string"
|
|
430
|
+
* },
|
|
431
|
+
* "keywords": {
|
|
432
|
+
* "type": "array",
|
|
433
|
+
* "items": {
|
|
434
|
+
* "type": "string"
|
|
435
|
+
* }
|
|
436
|
+
* }
|
|
437
|
+
* }
|
|
438
|
+
* }
|
|
439
|
+
* },
|
|
440
|
+
* maxTokens: 2000
|
|
420
441
|
* })
|
|
421
442
|
*/
|
|
422
443
|
analyze(request, requestOptions) {
|
|
@@ -428,7 +449,7 @@ class TwelvelabsApiClient {
|
|
|
428
449
|
const _response = yield core.fetcher({
|
|
429
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, "analyze"),
|
|
430
451
|
method: "POST",
|
|
431
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.
|
|
452
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.2", "User-Agent": "twelvelabs-js/1.0.2", "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
453
|
contentType: "application/json",
|
|
433
454
|
requestType: "json",
|
|
434
455
|
body: Object.assign(Object.assign({}, serializers.AnalyzeRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" })), { stream: false }),
|
|
@@ -1,12 +1,34 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as TwelvelabsApi from "../../index";
|
|
4
5
|
/**
|
|
5
6
|
* @example
|
|
6
7
|
* {
|
|
7
8
|
* videoId: "6298d673f1090f1100476d4c",
|
|
8
9
|
* prompt: "I want to generate a description for my video with the following format - Title of the video, followed by a summary in 2-3 sentences, highlighting the main topic, key events, and concluding remarks.",
|
|
9
|
-
* temperature: 0.2
|
|
10
|
+
* temperature: 0.2,
|
|
11
|
+
* responseFormat: {
|
|
12
|
+
* type: "json_schema",
|
|
13
|
+
* jsonSchema: {
|
|
14
|
+
* "type": "object",
|
|
15
|
+
* "properties": {
|
|
16
|
+
* "title": {
|
|
17
|
+
* "type": "string"
|
|
18
|
+
* },
|
|
19
|
+
* "summary": {
|
|
20
|
+
* "type": "string"
|
|
21
|
+
* },
|
|
22
|
+
* "keywords": {
|
|
23
|
+
* "type": "array",
|
|
24
|
+
* "items": {
|
|
25
|
+
* "type": "string"
|
|
26
|
+
* }
|
|
27
|
+
* }
|
|
28
|
+
* }
|
|
29
|
+
* }
|
|
30
|
+
* },
|
|
31
|
+
* maxTokens: 2000
|
|
10
32
|
* }
|
|
11
33
|
*/
|
|
12
34
|
export interface AnalyzeRequest {
|
|
@@ -35,4 +57,7 @@ export interface AnalyzeRequest {
|
|
|
35
57
|
* **Max:** 1
|
|
36
58
|
*/
|
|
37
59
|
temperature?: number;
|
|
60
|
+
responseFormat?: TwelvelabsApi.ResponseFormat;
|
|
61
|
+
/** The maximum number of tokens to generate. */
|
|
62
|
+
maxTokens?: number;
|
|
38
63
|
}
|
|
@@ -1,12 +1,34 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as TwelvelabsApi from "../../index";
|
|
4
5
|
/**
|
|
5
6
|
* @example
|
|
6
7
|
* {
|
|
7
8
|
* videoId: "6298d673f1090f1100476d4c",
|
|
8
9
|
* prompt: "I want to generate a description for my video with the following format - Title of the video, followed by a summary in 2-3 sentences, highlighting the main topic, key events, and concluding remarks.",
|
|
9
|
-
* temperature: 0.2
|
|
10
|
+
* temperature: 0.2,
|
|
11
|
+
* responseFormat: {
|
|
12
|
+
* type: "json_schema",
|
|
13
|
+
* jsonSchema: {
|
|
14
|
+
* "type": "object",
|
|
15
|
+
* "properties": {
|
|
16
|
+
* "title": {
|
|
17
|
+
* "type": "string"
|
|
18
|
+
* },
|
|
19
|
+
* "summary": {
|
|
20
|
+
* "type": "string"
|
|
21
|
+
* },
|
|
22
|
+
* "keywords": {
|
|
23
|
+
* "type": "array",
|
|
24
|
+
* "items": {
|
|
25
|
+
* "type": "string"
|
|
26
|
+
* }
|
|
27
|
+
* }
|
|
28
|
+
* }
|
|
29
|
+
* }
|
|
30
|
+
* },
|
|
31
|
+
* maxTokens: 2000
|
|
10
32
|
* }
|
|
11
33
|
*/
|
|
12
34
|
export interface AnalyzeStreamRequest {
|
|
@@ -35,4 +57,7 @@ export interface AnalyzeStreamRequest {
|
|
|
35
57
|
* **Max:** 1
|
|
36
58
|
*/
|
|
37
59
|
temperature?: number;
|
|
60
|
+
responseFormat?: TwelvelabsApi.ResponseFormat;
|
|
61
|
+
/** The maximum number of tokens to generate. */
|
|
62
|
+
maxTokens?: number;
|
|
38
63
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as TwelvelabsApi from "../../index";
|
|
4
5
|
/**
|
|
5
6
|
* @example
|
|
6
7
|
* {
|
|
@@ -39,4 +40,12 @@ export interface SummarizeRequest {
|
|
|
39
40
|
* **Max:** 1
|
|
40
41
|
*/
|
|
41
42
|
temperature?: number;
|
|
43
|
+
/**
|
|
44
|
+
* Use this parameter to specify the format of the response.
|
|
45
|
+
* This parameter is only valid when the `type` parameter is set to `summary`.
|
|
46
|
+
* If you omit this parameter, the platform returns unstructured text.
|
|
47
|
+
*/
|
|
48
|
+
responseFormat?: TwelvelabsApi.ResponseFormat;
|
|
49
|
+
/** The maximum number of tokens to generate. */
|
|
50
|
+
maxTokens?: number;
|
|
42
51
|
}
|
|
@@ -134,7 +134,7 @@ class Embed {
|
|
|
134
134
|
const _response = yield core.fetcher({
|
|
135
135
|
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"),
|
|
136
136
|
method: "POST",
|
|
137
|
-
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.
|
|
137
|
+
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.2", "User-Agent": "twelvelabs-js/1.0.2", "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),
|
|
138
138
|
requestType: "file",
|
|
139
139
|
duplex: _maybeEncodedRequest.duplex,
|
|
140
140
|
body: _maybeEncodedRequest.body,
|
|
@@ -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/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.0.
|
|
108
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.2", "User-Agent": "twelvelabs-js/1.0.2", "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",
|
|
@@ -235,7 +235,7 @@ class Tasks {
|
|
|
235
235
|
const _response = yield core.fetcher({
|
|
236
236
|
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"),
|
|
237
237
|
method: "POST",
|
|
238
|
-
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.
|
|
238
|
+
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.2", "User-Agent": "twelvelabs-js/1.0.2", "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),
|
|
239
239
|
requestType: "file",
|
|
240
240
|
duplex: _maybeEncodedRequest.duplex,
|
|
241
241
|
body: _maybeEncodedRequest.body,
|
|
@@ -308,7 +308,7 @@ class Tasks {
|
|
|
308
308
|
const _response = yield core.fetcher({
|
|
309
309
|
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`),
|
|
310
310
|
method: "GET",
|
|
311
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.
|
|
311
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.2", "User-Agent": "twelvelabs-js/1.0.2", "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),
|
|
312
312
|
contentType: "application/json",
|
|
313
313
|
requestType: "json",
|
|
314
314
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -391,7 +391,7 @@ class Tasks {
|
|
|
391
391
|
const _response = yield core.fetcher({
|
|
392
392
|
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)}`),
|
|
393
393
|
method: "GET",
|
|
394
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.
|
|
394
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.2", "User-Agent": "twelvelabs-js/1.0.2", "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),
|
|
395
395
|
contentType: "application/json",
|
|
396
396
|
queryParameters: _queryParams,
|
|
397
397
|
requestType: "json",
|
|
@@ -121,7 +121,7 @@ class Indexes {
|
|
|
121
121
|
const _response = yield core.fetcher({
|
|
122
122
|
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"),
|
|
123
123
|
method: "GET",
|
|
124
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.
|
|
124
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.2", "User-Agent": "twelvelabs-js/1.0.2", "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),
|
|
125
125
|
contentType: "application/json",
|
|
126
126
|
queryParameters: _queryParams,
|
|
127
127
|
requestType: "json",
|
|
@@ -212,7 +212,7 @@ class Indexes {
|
|
|
212
212
|
const _response = yield core.fetcher({
|
|
213
213
|
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"),
|
|
214
214
|
method: "POST",
|
|
215
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.
|
|
215
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.2", "User-Agent": "twelvelabs-js/1.0.2", "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),
|
|
216
216
|
contentType: "application/json",
|
|
217
217
|
requestType: "json",
|
|
218
218
|
body: serializers.IndexesCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -280,7 +280,7 @@ class Indexes {
|
|
|
280
280
|
const _response = yield core.fetcher({
|
|
281
281
|
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)}`),
|
|
282
282
|
method: "GET",
|
|
283
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.
|
|
283
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.2", "User-Agent": "twelvelabs-js/1.0.2", "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),
|
|
284
284
|
contentType: "application/json",
|
|
285
285
|
requestType: "json",
|
|
286
286
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -350,7 +350,7 @@ class Indexes {
|
|
|
350
350
|
const _response = yield core.fetcher({
|
|
351
351
|
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)}`),
|
|
352
352
|
method: "PUT",
|
|
353
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.
|
|
353
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.2", "User-Agent": "twelvelabs-js/1.0.2", "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),
|
|
354
354
|
contentType: "application/json",
|
|
355
355
|
requestType: "json",
|
|
356
356
|
body: serializers.IndexesUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -410,7 +410,7 @@ class Indexes {
|
|
|
410
410
|
const _response = yield core.fetcher({
|
|
411
411
|
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)}`),
|
|
412
412
|
method: "DELETE",
|
|
413
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.
|
|
413
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.2", "User-Agent": "twelvelabs-js/1.0.2", "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),
|
|
414
414
|
contentType: "application/json",
|
|
415
415
|
requestType: "json",
|
|
416
416
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -128,7 +128,7 @@ class Videos {
|
|
|
128
128
|
const _response = yield core.fetcher({
|
|
129
129
|
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`),
|
|
130
130
|
method: "GET",
|
|
131
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.
|
|
131
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.2", "User-Agent": "twelvelabs-js/1.0.2", "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),
|
|
132
132
|
contentType: "application/json",
|
|
133
133
|
queryParameters: _queryParams,
|
|
134
134
|
requestType: "json",
|
|
@@ -230,7 +230,7 @@ class Videos {
|
|
|
230
230
|
const _response = yield core.fetcher({
|
|
231
231
|
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)}`),
|
|
232
232
|
method: "GET",
|
|
233
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.
|
|
233
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.2", "User-Agent": "twelvelabs-js/1.0.2", "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),
|
|
234
234
|
contentType: "application/json",
|
|
235
235
|
queryParameters: _queryParams,
|
|
236
236
|
requestType: "json",
|
|
@@ -306,7 +306,7 @@ class Videos {
|
|
|
306
306
|
const _response = yield core.fetcher({
|
|
307
307
|
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)}`),
|
|
308
308
|
method: "DELETE",
|
|
309
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.
|
|
309
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.2", "User-Agent": "twelvelabs-js/1.0.2", "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),
|
|
310
310
|
contentType: "application/json",
|
|
311
311
|
requestType: "json",
|
|
312
312
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -374,7 +374,7 @@ class Videos {
|
|
|
374
374
|
const _response = yield core.fetcher({
|
|
375
375
|
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)}`),
|
|
376
376
|
method: "PATCH",
|
|
377
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.
|
|
377
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.2", "User-Agent": "twelvelabs-js/1.0.2", "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),
|
|
378
378
|
contentType: "application/json",
|
|
379
379
|
requestType: "json",
|
|
380
380
|
body: serializers.indexes.VideosUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -153,7 +153,7 @@ class Search {
|
|
|
153
153
|
const _response = yield core.fetcher({
|
|
154
154
|
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"),
|
|
155
155
|
method: "POST",
|
|
156
|
-
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.
|
|
156
|
+
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.2", "User-Agent": "twelvelabs-js/1.0.2", "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),
|
|
157
157
|
requestType: "file",
|
|
158
158
|
duplex: _maybeEncodedRequest.duplex,
|
|
159
159
|
body: _maybeEncodedRequest.body,
|
|
@@ -235,7 +235,7 @@ class Search {
|
|
|
235
235
|
const _response = yield core.fetcher({
|
|
236
236
|
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)}`),
|
|
237
237
|
method: "GET",
|
|
238
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.
|
|
238
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.2", "User-Agent": "twelvelabs-js/1.0.2", "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),
|
|
239
239
|
contentType: "application/json",
|
|
240
240
|
queryParameters: _queryParams,
|
|
241
241
|
requestType: "json",
|
|
@@ -67,13 +67,7 @@ export interface SearchCreateRequest {
|
|
|
67
67
|
*/
|
|
68
68
|
sortOption?: TwelvelabsApi.SearchCreateRequestSortOption;
|
|
69
69
|
/**
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
* The following logical operators are supported:
|
|
73
|
-
*
|
|
74
|
-
* - `or`
|
|
75
|
-
*
|
|
76
|
-
* - `and`
|
|
70
|
+
* Combines multiple search options using `or` or `and`. Use `and` to find segments matching all search options. Use `or` to find segments matching any search option.
|
|
77
71
|
*
|
|
78
72
|
* **Default**: `or`.
|
|
79
73
|
*/
|
|
@@ -2,13 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* The following logical operators are supported:
|
|
8
|
-
*
|
|
9
|
-
* - `or`
|
|
10
|
-
*
|
|
11
|
-
* - `and`
|
|
5
|
+
* Combines multiple search options using `or` or `and`. Use `and` to find segments matching all search options. Use `or` to find segments matching any search option.
|
|
12
6
|
*
|
|
13
7
|
* **Default**: `or`.
|
|
14
8
|
*/
|
|
@@ -141,7 +141,7 @@ class Tasks {
|
|
|
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, "tasks"),
|
|
143
143
|
method: "GET",
|
|
144
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.
|
|
144
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.2", "User-Agent": "twelvelabs-js/1.0.2", "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),
|
|
145
145
|
contentType: "application/json",
|
|
146
146
|
queryParameters: _queryParams,
|
|
147
147
|
requestType: "json",
|
|
@@ -260,7 +260,7 @@ class Tasks {
|
|
|
260
260
|
const _response = yield core.fetcher({
|
|
261
261
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, "tasks"),
|
|
262
262
|
method: "POST",
|
|
263
|
-
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.
|
|
263
|
+
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.2", "User-Agent": "twelvelabs-js/1.0.2", "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),
|
|
264
264
|
requestType: "file",
|
|
265
265
|
duplex: _maybeEncodedRequest.duplex,
|
|
266
266
|
body: _maybeEncodedRequest.body,
|
|
@@ -328,7 +328,7 @@ class Tasks {
|
|
|
328
328
|
const _response = yield core.fetcher({
|
|
329
329
|
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)}`),
|
|
330
330
|
method: "GET",
|
|
331
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.
|
|
331
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.2", "User-Agent": "twelvelabs-js/1.0.2", "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),
|
|
332
332
|
contentType: "application/json",
|
|
333
333
|
requestType: "json",
|
|
334
334
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -398,7 +398,7 @@ class Tasks {
|
|
|
398
398
|
const _response = yield core.fetcher({
|
|
399
399
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `tasks/${encodeURIComponent(taskId)}`),
|
|
400
400
|
method: "DELETE",
|
|
401
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.
|
|
401
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.2", "User-Agent": "twelvelabs-js/1.0.2", "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
|
requestType: "json",
|
|
404
404
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -112,7 +112,7 @@ class Transfers {
|
|
|
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, `tasks/transfers/import/${encodeURIComponent(integrationId)}`),
|
|
114
114
|
method: "POST",
|
|
115
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.
|
|
115
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.2", "User-Agent": "twelvelabs-js/1.0.2", "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
|
requestType: "json",
|
|
118
118
|
body: serializers.tasks.TransfersCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -186,7 +186,7 @@ class Transfers {
|
|
|
186
186
|
const _response = yield core.fetcher({
|
|
187
187
|
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/transfers/import/${encodeURIComponent(integrationId)}/status`),
|
|
188
188
|
method: "GET",
|
|
189
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.
|
|
189
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.2", "User-Agent": "twelvelabs-js/1.0.2", "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),
|
|
190
190
|
contentType: "application/json",
|
|
191
191
|
queryParameters: _queryParams,
|
|
192
192
|
requestType: "json",
|
|
@@ -258,7 +258,7 @@ class Transfers {
|
|
|
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, `tasks/transfers/import/${encodeURIComponent(integrationId)}/logs`),
|
|
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.0.
|
|
261
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.0.2", "User-Agent": "twelvelabs-js/1.0.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
262
262
|
contentType: "application/json",
|
|
263
263
|
requestType: "json",
|
|
264
264
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* The reason for the generation to finish.
|
|
6
|
+
* - `stop`: The generation stopped because the model reached the end of the output text.
|
|
7
|
+
* - `length`: The generation stopped because the model reached the maximum number of tokens. For JSON responses, this may result in truncated, invalid JSON that fails to parse.
|
|
8
|
+
*/
|
|
9
|
+
export type FinishReason = "stop" | "length";
|
|
10
|
+
export declare const FinishReason: {
|
|
11
|
+
readonly Stop: "stop";
|
|
12
|
+
readonly Length: "length";
|
|
13
|
+
};
|