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.
Files changed (102) hide show
  1. package/0.4/examples/generate.ts +1 -5
  2. package/Client.d.ts +23 -2
  3. package/Client.js +28 -7
  4. package/api/client/requests/AnalyzeRequest.d.ts +26 -1
  5. package/api/client/requests/AnalyzeStreamRequest.d.ts +26 -1
  6. package/api/client/requests/SummarizeRequest.d.ts +9 -0
  7. package/api/resources/embed/client/Client.js +1 -1
  8. package/api/resources/embed/resources/tasks/client/Client.js +4 -4
  9. package/api/resources/indexes/client/Client.js +5 -5
  10. package/api/resources/indexes/resources/videos/client/Client.js +4 -4
  11. package/api/resources/search/client/Client.js +2 -2
  12. package/api/resources/search/client/requests/SearchCreateRequest.d.ts +1 -7
  13. package/api/resources/search/types/SearchCreateRequestOperator.d.ts +1 -7
  14. package/api/resources/tasks/client/Client.js +4 -4
  15. package/api/resources/tasks/resources/transfers/client/Client.js +3 -3
  16. package/api/types/FinishReason.d.ts +13 -0
  17. package/api/types/FinishReason.js +10 -0
  18. package/api/types/NonStreamAnalyzeResponse.d.ts +1 -0
  19. package/api/types/ResponseFormat.d.ts +80 -0
  20. package/api/types/ResponseFormat.js +5 -0
  21. package/api/types/StreamAnalyzeResponse.d.ts +12 -1
  22. package/api/types/StreamEndResponse.d.ts +1 -2
  23. package/api/types/StreamStartResponse.d.ts +0 -2
  24. package/api/types/StreamTextResponse.d.ts +0 -2
  25. package/api/types/index.d.ts +2 -0
  26. package/api/types/index.js +2 -0
  27. package/dist/Client.d.ts +23 -2
  28. package/dist/Client.js +28 -7
  29. package/dist/api/client/requests/AnalyzeRequest.d.ts +26 -1
  30. package/dist/api/client/requests/AnalyzeStreamRequest.d.ts +26 -1
  31. package/dist/api/client/requests/SummarizeRequest.d.ts +9 -0
  32. package/dist/api/resources/embed/client/Client.js +1 -1
  33. package/dist/api/resources/embed/resources/tasks/client/Client.js +4 -4
  34. package/dist/api/resources/indexes/client/Client.js +5 -5
  35. package/dist/api/resources/indexes/resources/videos/client/Client.js +4 -4
  36. package/dist/api/resources/search/client/Client.js +2 -2
  37. package/dist/api/resources/search/client/requests/SearchCreateRequest.d.ts +1 -7
  38. package/dist/api/resources/search/types/SearchCreateRequestOperator.d.ts +1 -7
  39. package/dist/api/resources/tasks/client/Client.js +4 -4
  40. package/dist/api/resources/tasks/resources/transfers/client/Client.js +3 -3
  41. package/dist/api/types/FinishReason.d.ts +13 -0
  42. package/dist/api/types/FinishReason.js +10 -0
  43. package/dist/api/types/NonStreamAnalyzeResponse.d.ts +1 -0
  44. package/dist/api/types/ResponseFormat.d.ts +80 -0
  45. package/dist/api/types/ResponseFormat.js +5 -0
  46. package/dist/api/types/StreamAnalyzeResponse.d.ts +12 -1
  47. package/dist/api/types/StreamEndResponse.d.ts +1 -2
  48. package/dist/api/types/StreamStartResponse.d.ts +0 -2
  49. package/dist/api/types/StreamTextResponse.d.ts +0 -2
  50. package/dist/api/types/index.d.ts +2 -0
  51. package/dist/api/types/index.js +2 -0
  52. package/dist/serialization/client/requests/AnalyzeRequest.d.ts +3 -0
  53. package/dist/serialization/client/requests/AnalyzeRequest.js +3 -0
  54. package/dist/serialization/client/requests/AnalyzeStreamRequest.d.ts +3 -0
  55. package/dist/serialization/client/requests/AnalyzeStreamRequest.js +3 -0
  56. package/dist/serialization/client/requests/SummarizeRequest.d.ts +3 -0
  57. package/dist/serialization/client/requests/SummarizeRequest.js +3 -0
  58. package/dist/serialization/types/FinishReason.d.ts +10 -0
  59. package/dist/serialization/types/FinishReason.js +41 -0
  60. package/dist/serialization/types/NonStreamAnalyzeResponse.d.ts +2 -0
  61. package/dist/serialization/types/NonStreamAnalyzeResponse.js +2 -0
  62. package/dist/serialization/types/ResponseFormat.d.ts +13 -0
  63. package/dist/serialization/types/ResponseFormat.js +44 -0
  64. package/dist/serialization/types/StreamAnalyzeResponse.d.ts +10 -1
  65. package/dist/serialization/types/StreamAnalyzeResponse.js +10 -1
  66. package/dist/serialization/types/StreamEndResponse.d.ts +2 -1
  67. package/dist/serialization/types/StreamEndResponse.js +2 -1
  68. package/dist/serialization/types/StreamStartResponse.d.ts +0 -1
  69. package/dist/serialization/types/StreamStartResponse.js +0 -1
  70. package/dist/serialization/types/StreamTextResponse.d.ts +0 -1
  71. package/dist/serialization/types/StreamTextResponse.js +0 -1
  72. package/dist/serialization/types/index.d.ts +2 -0
  73. package/dist/serialization/types/index.js +2 -0
  74. package/dist/version.d.ts +1 -1
  75. package/dist/version.js +1 -1
  76. package/examples/analyze.ts +100 -37
  77. package/package.json +1 -1
  78. package/reference.md +21 -0
  79. package/serialization/client/requests/AnalyzeRequest.d.ts +3 -0
  80. package/serialization/client/requests/AnalyzeRequest.js +3 -0
  81. package/serialization/client/requests/AnalyzeStreamRequest.d.ts +3 -0
  82. package/serialization/client/requests/AnalyzeStreamRequest.js +3 -0
  83. package/serialization/client/requests/SummarizeRequest.d.ts +3 -0
  84. package/serialization/client/requests/SummarizeRequest.js +3 -0
  85. package/serialization/types/FinishReason.d.ts +10 -0
  86. package/serialization/types/FinishReason.js +41 -0
  87. package/serialization/types/NonStreamAnalyzeResponse.d.ts +2 -0
  88. package/serialization/types/NonStreamAnalyzeResponse.js +2 -0
  89. package/serialization/types/ResponseFormat.d.ts +13 -0
  90. package/serialization/types/ResponseFormat.js +44 -0
  91. package/serialization/types/StreamAnalyzeResponse.d.ts +10 -1
  92. package/serialization/types/StreamAnalyzeResponse.js +10 -1
  93. package/serialization/types/StreamEndResponse.d.ts +2 -1
  94. package/serialization/types/StreamEndResponse.js +2 -1
  95. package/serialization/types/StreamStartResponse.d.ts +0 -1
  96. package/serialization/types/StreamStartResponse.js +0 -1
  97. package/serialization/types/StreamTextResponse.d.ts +0 -1
  98. package/serialization/types/StreamTextResponse.js +0 -1
  99. package/serialization/types/index.d.ts +2 -0
  100. package/serialization/types/index.js +2 -0
  101. package/version.d.ts +1 -1
  102. package/version.js +1 -1
@@ -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 will be deprecated on **July 30, 2025**. Transition to the [`/analyze`](/v1.3/api-reference/analyze-videos/analyze) endpoint, which provides identical functionality. Ensure you've updated your API calls before the deprecation date to ensure uninterrupted service.</Warning>
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.1", "User-Agent": "twelvelabs-js/1.0.1", "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
+ 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.1", "User-Agent": "twelvelabs-js/1.0.1", "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
+ 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 will be deprecated on **July 30, 2025**. Transition to the [`/analyze`](/v1.3/api-reference/analyze-videos/analyze) endpoint, which provides identical functionality. Ensure you've updated your API calls before the deprecation date to ensure uninterrupted service.</Warning>
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.1", "User-Agent": "twelvelabs-js/1.0.1", "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),
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.1", "User-Agent": "twelvelabs-js/1.0.1", "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),
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.1", "User-Agent": "twelvelabs-js/1.0.1", "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),
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.1", "User-Agent": "twelvelabs-js/1.0.1", "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),
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.1", "User-Agent": "twelvelabs-js/1.0.1", "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),
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.1", "User-Agent": "twelvelabs-js/1.0.1", "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),
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.1", "User-Agent": "twelvelabs-js/1.0.1", "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),
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.1", "User-Agent": "twelvelabs-js/1.0.1", "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),
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.1", "User-Agent": "twelvelabs-js/1.0.1", "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),
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.1", "User-Agent": "twelvelabs-js/1.0.1", "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),
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.1", "User-Agent": "twelvelabs-js/1.0.1", "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),
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.1", "User-Agent": "twelvelabs-js/1.0.1", "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),
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.1", "User-Agent": "twelvelabs-js/1.0.1", "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),
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.1", "User-Agent": "twelvelabs-js/1.0.1", "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),
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.1", "User-Agent": "twelvelabs-js/1.0.1", "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),
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.1", "User-Agent": "twelvelabs-js/1.0.1", "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
+ 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.1", "User-Agent": "twelvelabs-js/1.0.1", "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
+ 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.1", "User-Agent": "twelvelabs-js/1.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
156
+ 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.1", "User-Agent": "twelvelabs-js/1.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
238
+ 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
- * When you perform a search specifying multiple [sources of information](/v1.3/docs/concepts/modalities#search-options), you can use the this parameter to broaden or narrow your search.
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
- * When you perform a search specifying multiple [sources of information](/v1.3/docs/concepts/modalities#search-options), you can use the this parameter to broaden or narrow your search.
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.1", "User-Agent": "twelvelabs-js/1.0.1", "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),
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.1", "User-Agent": "twelvelabs-js/1.0.1", "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),
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.1", "User-Agent": "twelvelabs-js/1.0.1", "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),
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.1", "User-Agent": "twelvelabs-js/1.0.1", "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),
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.1", "User-Agent": "twelvelabs-js/1.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
115
+ 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.1", "User-Agent": "twelvelabs-js/1.0.1", "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),
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.1", "User-Agent": "twelvelabs-js/1.0.1", "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),
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
+ };
@@ -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.FinishReason = void 0;
7
+ exports.FinishReason = {
8
+ Stop: "stop",
9
+ Length: "length",
10
+ };
@@ -10,5 +10,6 @@ export interface NonStreamAnalyzeResponse {
10
10
  id?: string;
11
11
  /** The generated text based on the prompt you provided. */
12
12
  data?: string;
13
+ finishReason?: TwelvelabsApi.FinishReason;
13
14
  usage?: TwelvelabsApi.TokenUsage;
14
15
  }