twelvelabs-js 1.2.8 → 1.2.9

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 (109) hide show
  1. package/.fern/replay.lock +7 -1
  2. package/Client.js +2 -2
  3. package/api/resources/analyzeAsync/resources/batches/client/Client.js +6 -6
  4. package/api/resources/analyzeAsync/resources/tasks/client/Client.js +4 -4
  5. package/api/resources/assets/client/Client.d.ts +7 -3
  6. package/api/resources/assets/client/Client.js +14 -10
  7. package/api/resources/assets/client/requests/AssetsCreateRequest.d.ts +1 -1
  8. package/api/resources/embed/client/Client.js +1 -1
  9. package/api/resources/embed/resources/tasks/client/Client.js +4 -4
  10. package/api/resources/embed/resources/v2/client/Client.js +1 -1
  11. package/api/resources/embed/resources/v2/resources/tasks/client/Client.d.ts +2 -6
  12. package/api/resources/embed/resources/v2/resources/tasks/client/Client.js +5 -9
  13. package/api/resources/entityCollections/client/Client.js +5 -5
  14. package/api/resources/entityCollections/resources/entities/client/Client.js +9 -9
  15. package/api/resources/indexes/client/Client.js +5 -5
  16. package/api/resources/indexes/resources/indexedAssets/client/Client.js +6 -6
  17. package/api/resources/indexes/resources/videos/client/Client.js +4 -4
  18. package/api/resources/multipartUpload/client/Client.d.ts +2 -2
  19. package/api/resources/multipartUpload/client/Client.js +7 -7
  20. package/api/resources/search/client/Client.js +2 -2
  21. package/api/resources/tasks/client/Client.js +4 -4
  22. package/api/types/Asset.d.ts +6 -8
  23. package/api/types/AssetDetail.d.ts +7 -0
  24. package/api/types/AssetError.d.ts +10 -0
  25. package/api/types/AssetError.js +5 -0
  26. package/api/types/AssetStatus.d.ts +6 -4
  27. package/api/types/AudioStream.d.ts +28 -0
  28. package/api/types/AudioStream.js +5 -0
  29. package/api/types/EmbeddingTaskResponse.d.ts +1 -1
  30. package/api/types/EmbeddingTaskResponseError.d.ts +1 -1
  31. package/api/types/EmbeddingTaskResponseStatus.d.ts +1 -1
  32. package/api/types/MultipartUploadStatusType.d.ts +3 -3
  33. package/api/types/TechnicalMetadata.d.ts +81 -0
  34. package/api/types/TechnicalMetadata.js +5 -0
  35. package/api/types/VideoStream.d.ts +44 -0
  36. package/api/types/VideoStream.js +5 -0
  37. package/api/types/index.d.ts +4 -0
  38. package/api/types/index.js +4 -0
  39. package/dist/Client.js +2 -2
  40. package/dist/api/resources/analyzeAsync/resources/batches/client/Client.js +6 -6
  41. package/dist/api/resources/analyzeAsync/resources/tasks/client/Client.js +4 -4
  42. package/dist/api/resources/assets/client/Client.d.ts +7 -3
  43. package/dist/api/resources/assets/client/Client.js +14 -10
  44. package/dist/api/resources/assets/client/requests/AssetsCreateRequest.d.ts +1 -1
  45. package/dist/api/resources/embed/client/Client.js +1 -1
  46. package/dist/api/resources/embed/resources/tasks/client/Client.js +4 -4
  47. package/dist/api/resources/embed/resources/v2/client/Client.js +1 -1
  48. package/dist/api/resources/embed/resources/v2/resources/tasks/client/Client.d.ts +2 -6
  49. package/dist/api/resources/embed/resources/v2/resources/tasks/client/Client.js +5 -9
  50. package/dist/api/resources/entityCollections/client/Client.js +5 -5
  51. package/dist/api/resources/entityCollections/resources/entities/client/Client.js +9 -9
  52. package/dist/api/resources/indexes/client/Client.js +5 -5
  53. package/dist/api/resources/indexes/resources/indexedAssets/client/Client.js +6 -6
  54. package/dist/api/resources/indexes/resources/videos/client/Client.js +4 -4
  55. package/dist/api/resources/multipartUpload/client/Client.d.ts +2 -2
  56. package/dist/api/resources/multipartUpload/client/Client.js +7 -7
  57. package/dist/api/resources/search/client/Client.js +2 -2
  58. package/dist/api/resources/tasks/client/Client.js +4 -4
  59. package/dist/api/types/Asset.d.ts +6 -8
  60. package/dist/api/types/AssetDetail.d.ts +7 -0
  61. package/dist/api/types/AssetError.d.ts +10 -0
  62. package/dist/api/types/AssetError.js +5 -0
  63. package/dist/api/types/AssetStatus.d.ts +6 -4
  64. package/dist/api/types/AudioStream.d.ts +28 -0
  65. package/dist/api/types/AudioStream.js +5 -0
  66. package/dist/api/types/EmbeddingTaskResponse.d.ts +1 -1
  67. package/dist/api/types/EmbeddingTaskResponseError.d.ts +1 -1
  68. package/dist/api/types/EmbeddingTaskResponseStatus.d.ts +1 -1
  69. package/dist/api/types/MultipartUploadStatusType.d.ts +3 -3
  70. package/dist/api/types/TechnicalMetadata.d.ts +81 -0
  71. package/dist/api/types/TechnicalMetadata.js +5 -0
  72. package/dist/api/types/VideoStream.d.ts +44 -0
  73. package/dist/api/types/VideoStream.js +5 -0
  74. package/dist/api/types/index.d.ts +4 -0
  75. package/dist/api/types/index.js +4 -0
  76. package/dist/serialization/types/Asset.d.ts +0 -2
  77. package/dist/serialization/types/Asset.js +0 -2
  78. package/dist/serialization/types/AssetDetail.d.ts +6 -0
  79. package/dist/serialization/types/AssetDetail.js +6 -0
  80. package/dist/serialization/types/AssetError.d.ts +12 -0
  81. package/dist/serialization/types/AssetError.js +43 -0
  82. package/dist/serialization/types/AudioStream.d.ts +21 -0
  83. package/dist/serialization/types/AudioStream.js +52 -0
  84. package/dist/serialization/types/TechnicalMetadata.d.ts +48 -0
  85. package/dist/serialization/types/TechnicalMetadata.js +79 -0
  86. package/dist/serialization/types/VideoStream.d.ts +29 -0
  87. package/dist/serialization/types/VideoStream.js +60 -0
  88. package/dist/serialization/types/index.d.ts +4 -0
  89. package/dist/serialization/types/index.js +4 -0
  90. package/dist/version.d.ts +1 -1
  91. package/dist/version.js +1 -1
  92. package/package.json +1 -1
  93. package/reference.md +48 -87
  94. package/serialization/types/Asset.d.ts +0 -2
  95. package/serialization/types/Asset.js +0 -2
  96. package/serialization/types/AssetDetail.d.ts +6 -0
  97. package/serialization/types/AssetDetail.js +6 -0
  98. package/serialization/types/AssetError.d.ts +12 -0
  99. package/serialization/types/AssetError.js +43 -0
  100. package/serialization/types/AudioStream.d.ts +21 -0
  101. package/serialization/types/AudioStream.js +52 -0
  102. package/serialization/types/TechnicalMetadata.d.ts +48 -0
  103. package/serialization/types/TechnicalMetadata.js +79 -0
  104. package/serialization/types/VideoStream.d.ts +29 -0
  105. package/serialization/types/VideoStream.js +60 -0
  106. package/serialization/types/index.d.ts +4 -0
  107. package/serialization/types/index.js +4 -0
  108. package/version.d.ts +1 -1
  109. package/version.js +1 -1
@@ -0,0 +1,81 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TwelvelabsApi from "../index";
5
+ /**
6
+ * Technical metadata read from the media file of the asset, covering the container, the individual video and audio streams, image properties, and derived attributes.
7
+ *
8
+ * The platform populates this object asynchronously after the upload completes. It is omitted from the response while the status of the asset is `processing`, and it may be partially populated when the status is `failed`. A field is absent when it does not apply to the media type of the asset, or when the source file did not carry the corresponding information.
9
+ */
10
+ export interface TechnicalMetadata {
11
+ /** The size of the source media file in bytes. */
12
+ fileSizeBytes?: number;
13
+ /** The MIME type detected for the source media file. */
14
+ fileMimeType?: string;
15
+ /** The container format of the source media file. When a container maps to several format names, the platform reports them as a comma-separated list. */
16
+ fileContainerFormat?: string;
17
+ /** The creation time recorded in the media container, in RFC 3339 format ("YYYY-MM-DDTHH:mm:ssZ"), when present. */
18
+ containerCreationTime?: Date;
19
+ /** The video streams contained in the media file. */
20
+ videoStreams?: TwelvelabsApi.VideoStream[];
21
+ /** The codec of the primary video stream. */
22
+ videoCodec?: string;
23
+ /** The pixel width of the primary video stream. */
24
+ videoWidth?: number;
25
+ /** The pixel height of the primary video stream. */
26
+ videoHeight?: number;
27
+ /** The frame rate of the primary video stream, in frames per second. */
28
+ videoFps?: number;
29
+ /** The duration of the primary video stream, in seconds. */
30
+ videoDurationSeconds?: number;
31
+ /** The bit rate of the primary video stream, in bits per second. */
32
+ videoBitrateBps?: number;
33
+ /** The audio streams contained in the media file. */
34
+ audioStreams?: TwelvelabsApi.AudioStream[];
35
+ /** The codec of the primary audio stream. */
36
+ audioCodec?: string;
37
+ /** The sample rate of the primary audio stream, in hertz. */
38
+ audioSampleRate?: number;
39
+ /** The number of channels in the primary audio stream. */
40
+ audioChannels?: number;
41
+ /** The duration of the primary audio stream, in seconds. */
42
+ audioDurationSeconds?: number;
43
+ /** The starting SMPTE timecode of the media, when present. */
44
+ startTimecode?: string;
45
+ /** The source from which the starting timecode was derived. */
46
+ timecodeSource?: string;
47
+ /** Whether the timecode uses drop-frame numbering. */
48
+ dropFrame?: boolean;
49
+ /** The pixel width of the image. */
50
+ imageWidth?: number;
51
+ /** The pixel height of the image. */
52
+ imageHeight?: number;
53
+ /** The format of the image. */
54
+ imageFormat?: string;
55
+ /** The EXIF orientation value of the image. */
56
+ imageOrientation?: number;
57
+ /** The color space of the image. */
58
+ imageColorSpace?: string;
59
+ /** The bit depth per channel of the image. */
60
+ imageBitDepth?: number;
61
+ /** Whether the media is high dynamic range (HDR). */
62
+ isHdr?: boolean;
63
+ /** Whether the media contains at least one audio stream. */
64
+ hasAudio?: boolean;
65
+ /** Whether the image contains an alpha (transparency) channel. */
66
+ hasAlpha?: boolean;
67
+ /** Whether the image is animated (for example, an animated GIF or WebP). */
68
+ isAnimated?: boolean;
69
+ /** The total number of video streams in the media file. */
70
+ totalVideoStreams?: number;
71
+ /** The total number of audio streams in the media file. */
72
+ totalAudioStreams?: number;
73
+ /** The storage aspect ratio of the video (pixel width divided by pixel height). */
74
+ storageAspectRatio?: number;
75
+ /** The GPS latitude embedded in the source media, in decimal degrees. Present only when the source media carries location metadata. */
76
+ geospatialLatitude?: number;
77
+ /** The GPS longitude embedded in the source media, in decimal degrees. Present only when the source media carries location metadata. */
78
+ geospatialLongitude?: number;
79
+ /** The GPS altitude embedded in the source media, in meters. Present only when the source media carries location metadata. */
80
+ geospatialAltitudeMeters?: number;
81
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,44 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * The technical properties of a single video stream within the media file.
6
+ */
7
+ export interface VideoStream {
8
+ /** The zero-based index of the stream within the media file. */
9
+ index?: number;
10
+ /** The codec of the video stream. */
11
+ codec?: string;
12
+ /** The pixel width of the video stream. */
13
+ width?: number;
14
+ /** The pixel height of the video stream. */
15
+ height?: number;
16
+ /** The nominal frame rate of the video stream, in frames per second. */
17
+ fps?: number;
18
+ /** The average frame rate of the video stream, in frames per second. */
19
+ avgFps?: number;
20
+ /** The duration of the video stream, in seconds. */
21
+ durationSeconds?: number;
22
+ /** The bit rate of the video stream, in bits per second. */
23
+ bitrateBps?: number;
24
+ /** The rotation applied to the video stream, in degrees. */
25
+ rotation?: number;
26
+ /** The pixel (sample) aspect ratio of the video stream. */
27
+ pixelAspectRatio?: string;
28
+ /** The display aspect ratio of the video stream. */
29
+ displayAspectRatio?: string;
30
+ /** The scan type of the video stream (for example, progressive or interlaced). */
31
+ scanType?: string;
32
+ /** The pixel format of the video stream. */
33
+ pixelFormat?: string;
34
+ /** The bit depth per color component of the video stream. */
35
+ bitDepth?: number;
36
+ /** The color range of the video stream. */
37
+ colorRange?: string;
38
+ /** The color transfer characteristics of the video stream. */
39
+ colorTransfer?: string;
40
+ /** The color space of the video stream. */
41
+ colorSpace?: string;
42
+ /** The color primaries of the video stream. */
43
+ colorPrimaries?: string;
44
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -179,10 +179,14 @@ export * from "./AssetMethod";
179
179
  export * from "./AssetStatus";
180
180
  export * from "./Asset";
181
181
  export * from "./AssetDetail";
182
+ export * from "./AssetError";
182
183
  export * from "./AssetHlsStatus";
183
184
  export * from "./AssetHls";
184
185
  export * from "./AssetThumbnailStatus";
185
186
  export * from "./AssetThumbnail";
187
+ export * from "./TechnicalMetadata";
188
+ export * from "./VideoStream";
189
+ export * from "./AudioStream";
186
190
  export * from "./IndexedAssetSummaryIndex";
187
191
  export * from "./IndexedAssetSummary";
188
192
  export * from "./CreateAssetUploadResponse";
@@ -195,10 +195,14 @@ __exportStar(require("./AssetMethod"), exports);
195
195
  __exportStar(require("./AssetStatus"), exports);
196
196
  __exportStar(require("./Asset"), exports);
197
197
  __exportStar(require("./AssetDetail"), exports);
198
+ __exportStar(require("./AssetError"), exports);
198
199
  __exportStar(require("./AssetHlsStatus"), exports);
199
200
  __exportStar(require("./AssetHls"), exports);
200
201
  __exportStar(require("./AssetThumbnailStatus"), exports);
201
202
  __exportStar(require("./AssetThumbnail"), exports);
203
+ __exportStar(require("./TechnicalMetadata"), exports);
204
+ __exportStar(require("./VideoStream"), exports);
205
+ __exportStar(require("./AudioStream"), exports);
202
206
  __exportStar(require("./IndexedAssetSummaryIndex"), exports);
203
207
  __exportStar(require("./IndexedAssetSummary"), exports);
204
208
  __exportStar(require("./CreateAssetUploadResponse"), exports);
package/dist/Client.js CHANGED
@@ -134,7 +134,7 @@ class TwelvelabsApiClient {
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, "analyze"),
136
136
  method: "POST",
137
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
137
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.9", "User-Agent": "twelvelabs-js/1.2.9", "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),
138
138
  contentType: "application/json",
139
139
  requestType: "json",
140
140
  body: Object.assign(Object.assign({}, serializers.AnalyzeStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" })), { stream: true }),
@@ -242,7 +242,7 @@ class TwelvelabsApiClient {
242
242
  const _response = yield core.fetcher({
243
243
  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"),
244
244
  method: "POST",
245
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
245
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.9", "User-Agent": "twelvelabs-js/1.2.9", "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),
246
246
  contentType: "application/json",
247
247
  requestType: "json",
248
248
  body: Object.assign(Object.assign({}, serializers.AnalyzeRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" })), { stream: false }),
@@ -111,7 +111,7 @@ class Batches {
111
111
  const _response = yield core.fetcher({
112
112
  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/batches"),
113
113
  method: "GET",
114
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
114
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.9", "User-Agent": "twelvelabs-js/1.2.9", "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
115
  contentType: "application/json",
116
116
  queryParameters: _queryParams,
117
117
  requestType: "json",
@@ -296,7 +296,7 @@ class Batches {
296
296
  const _response = yield core.fetcher({
297
297
  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/batches"),
298
298
  method: "POST",
299
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
299
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.9", "User-Agent": "twelvelabs-js/1.2.9", "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),
300
300
  contentType: "application/json",
301
301
  requestType: "json",
302
302
  body: serializers.analyzeAsync.CreateAnalyzeBatchRequest.jsonOrThrow(request, {
@@ -390,7 +390,7 @@ class Batches {
390
390
  const _response = yield core.fetcher({
391
391
  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/batches/${encodeURIComponent(batchId)}`),
392
392
  method: "GET",
393
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
393
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.9", "User-Agent": "twelvelabs-js/1.2.9", "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
394
  contentType: "application/json",
395
395
  requestType: "json",
396
396
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,
@@ -464,7 +464,7 @@ class Batches {
464
464
  const _response = yield core.fetcher({
465
465
  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/batches/${encodeURIComponent(batchId)}`),
466
466
  method: "DELETE",
467
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
467
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.9", "User-Agent": "twelvelabs-js/1.2.9", "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),
468
468
  contentType: "application/json",
469
469
  requestType: "json",
470
470
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,
@@ -523,7 +523,7 @@ class Batches {
523
523
  const _response = yield core.fetcher({
524
524
  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/batches/${encodeURIComponent(batchId)}/results`),
525
525
  method: "GET",
526
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
526
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.9", "User-Agent": "twelvelabs-js/1.2.9", "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),
527
527
  contentType: "application/json",
528
528
  requestType: "json",
529
529
  responseType: "sse",
@@ -608,7 +608,7 @@ class Batches {
608
608
  const _response = yield core.fetcher({
609
609
  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/batches/${encodeURIComponent(batchId)}/cancel`),
610
610
  method: "POST",
611
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
611
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.9", "User-Agent": "twelvelabs-js/1.2.9", "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),
612
612
  contentType: "application/json",
613
613
  requestType: "json",
614
614
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,
@@ -112,7 +112,7 @@ class Tasks {
112
112
  const _response = yield core.fetcher({
113
113
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, "analyze/tasks"),
114
114
  method: "GET",
115
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
115
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.9", "User-Agent": "twelvelabs-js/1.2.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
116
116
  contentType: "application/json",
117
117
  queryParameters: _queryParams,
118
118
  requestType: "json",
@@ -375,7 +375,7 @@ class Tasks {
375
375
  const _response = yield core.fetcher({
376
376
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, "analyze/tasks"),
377
377
  method: "POST",
378
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
378
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.9", "User-Agent": "twelvelabs-js/1.2.9", "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),
379
379
  contentType: "application/json",
380
380
  requestType: "json",
381
381
  body: serializers.analyzeAsync.CreateAsyncAnalyzeRequest.jsonOrThrow(request, {
@@ -456,7 +456,7 @@ class Tasks {
456
456
  const _response = yield core.fetcher({
457
457
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `analyze/tasks/${encodeURIComponent(taskId)}`),
458
458
  method: "GET",
459
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
459
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.9", "User-Agent": "twelvelabs-js/1.2.9", "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),
460
460
  contentType: "application/json",
461
461
  requestType: "json",
462
462
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,
@@ -524,7 +524,7 @@ class Tasks {
524
524
  const _response = yield core.fetcher({
525
525
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `analyze/tasks/${encodeURIComponent(taskId)}`),
526
526
  method: "DELETE",
527
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
527
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.9", "User-Agent": "twelvelabs-js/1.2.9", "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),
528
528
  contentType: "application/json",
529
529
  requestType: "json",
530
530
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,
@@ -46,6 +46,8 @@ export declare class Assets {
46
46
  /**
47
47
  * This method creates an asset by uploading a file to the platform. Assets are media files that you can use in downstream workflows, including indexing, analyzing video content, and creating entities.
48
48
  *
49
+ * The platform processes uploads asynchronously. This method returns immediately with the asset in the `processing` status, which then transitions to `ready` on success or to `failed` when the file is invalid or corrupt, typically within a few seconds to a few minutes. Poll the [Retrieve an asset](/v1.3/api-reference/upload-content/direct-uploads/retrieve) endpoint until the status of the asset is `ready` before you use it. This applies to every upload, including small files.
50
+ *
49
51
  * **Supported content**: Video, audio, and images.
50
52
  *
51
53
  * **Upload methods**:
@@ -55,7 +57,9 @@ export declare class Assets {
55
57
  * **Upload limits**:
56
58
  * - **Video and audio, local files**: Up to 200 MB
57
59
  * - **Video and audio, public URLs**: Up to 4 GB
58
- * - **Images**: Up to 5 MB
60
+ * - **Images**: Up to 32 MB
61
+ *
62
+ * Asset creation does not enforce a maximum duration. Each model applies its own file size and duration limits when you index or analyze the asset. For details, see the requirements below.
59
63
  *
60
64
  * **Additional requirements** depend on your workflow:
61
65
  * - **Search**: [Marengo requirements](/v1.3/docs/concepts/models/marengo#video-file-requirements)
@@ -143,7 +147,7 @@ export declare class Assets {
143
147
  replaceUserMetadata(assetId: string, request: TwelvelabsApi.AssetsReplaceUserMetadataRequest, requestOptions?: Assets.RequestOptions): core.HttpResponsePromise<void>;
144
148
  private __replaceUserMetadata;
145
149
  /**
146
- * This method deletes the user-defined metadata of the specified asset. To achieve the same result, you can also send an empty object (`{}`) in the `user_metadata` field of the [`PUT`](/v1.3/api-reference/upload-content/direct-uploads/replace-asset-user-metadata) method.
150
+ * This method deletes the user-defined metadata of the specified asset. To achieve the same result, you can also send an empty object (`{}`) in the `user_metadata` field of the [`PUT`](/v1.3/api-reference/upload-content/direct-uploads/replace-user-metadata) method.
147
151
  *
148
152
  * This action cannot be undone.
149
153
  *
@@ -165,7 +169,7 @@ export declare class Assets {
165
169
  * - A key set to an empty string (`""`) is ignored.
166
170
  * - A key you omit from the request keeps its current value.
167
171
  *
168
- * To replace all metadata in a single call, use the [`PUT`](/v1.3/api-reference/upload-content/direct-uploads/replace-asset-user-metadata) method of the `/assets/{asset_id}/user-metadata` endpoint instead.
172
+ * To replace all metadata in a single call, use the [`PUT`](/v1.3/api-reference/upload-content/direct-uploads/replace-user-metadata) method of the `/assets/{asset_id}/user-metadata` endpoint instead.
169
173
  *
170
174
  * @param {string} assetId - The unique identifier of the asset whose user-defined metadata to update.
171
175
  * @param {TwelvelabsApi.AssetsUpdateUserMetadataRequest} request
@@ -112,7 +112,7 @@ class Assets {
112
112
  const _response = yield core.fetcher({
113
113
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, "assets"),
114
114
  method: "GET",
115
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
115
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.9", "User-Agent": "twelvelabs-js/1.2.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
116
116
  contentType: "application/json",
117
117
  queryParameters: _queryParams,
118
118
  requestType: "json",
@@ -176,6 +176,8 @@ class Assets {
176
176
  /**
177
177
  * This method creates an asset by uploading a file to the platform. Assets are media files that you can use in downstream workflows, including indexing, analyzing video content, and creating entities.
178
178
  *
179
+ * The platform processes uploads asynchronously. This method returns immediately with the asset in the `processing` status, which then transitions to `ready` on success or to `failed` when the file is invalid or corrupt, typically within a few seconds to a few minutes. Poll the [Retrieve an asset](/v1.3/api-reference/upload-content/direct-uploads/retrieve) endpoint until the status of the asset is `ready` before you use it. This applies to every upload, including small files.
180
+ *
179
181
  * **Supported content**: Video, audio, and images.
180
182
  *
181
183
  * **Upload methods**:
@@ -185,7 +187,9 @@ class Assets {
185
187
  * **Upload limits**:
186
188
  * - **Video and audio, local files**: Up to 200 MB
187
189
  * - **Video and audio, public URLs**: Up to 4 GB
188
- * - **Images**: Up to 5 MB
190
+ * - **Images**: Up to 32 MB
191
+ *
192
+ * Asset creation does not enforce a maximum duration. Each model applies its own file size and duration limits when you index or analyze the asset. For details, see the requirements below.
189
193
  *
190
194
  * **Additional requirements** depend on your workflow:
191
195
  * - **Search**: [Marengo requirements](/v1.3/docs/concepts/models/marengo#video-file-requirements)
@@ -237,7 +241,7 @@ class Assets {
237
241
  const _response = yield core.fetcher({
238
242
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, "assets"),
239
243
  method: "POST",
240
- headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
244
+ headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.9", "User-Agent": "twelvelabs-js/1.2.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
241
245
  requestType: "file",
242
246
  duplex: _maybeEncodedRequest.duplex,
243
247
  body: _maybeEncodedRequest.body,
@@ -305,7 +309,7 @@ class Assets {
305
309
  const _response = yield core.fetcher({
306
310
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `assets/${encodeURIComponent(assetId)}`),
307
311
  method: "GET",
308
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
312
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.9", "User-Agent": "twelvelabs-js/1.2.9", "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
313
  contentType: "application/json",
310
314
  requestType: "json",
311
315
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,
@@ -387,7 +391,7 @@ class Assets {
387
391
  const _response = yield core.fetcher({
388
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, `assets/${encodeURIComponent(assetId)}`),
389
393
  method: "DELETE",
390
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
394
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.9", "User-Agent": "twelvelabs-js/1.2.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
391
395
  contentType: "application/json",
392
396
  queryParameters: _queryParams,
393
397
  requestType: "json",
@@ -463,7 +467,7 @@ class Assets {
463
467
  const _response = yield core.fetcher({
464
468
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `assets/${encodeURIComponent(assetId)}/user-metadata`),
465
469
  method: "PUT",
466
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
470
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.9", "User-Agent": "twelvelabs-js/1.2.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
467
471
  contentType: "application/json",
468
472
  requestType: "json",
469
473
  body: serializers.AssetsReplaceUserMetadataRequest.jsonOrThrow(request, {
@@ -508,7 +512,7 @@ class Assets {
508
512
  });
509
513
  }
510
514
  /**
511
- * This method deletes the user-defined metadata of the specified asset. To achieve the same result, you can also send an empty object (`{}`) in the `user_metadata` field of the [`PUT`](/v1.3/api-reference/upload-content/direct-uploads/replace-asset-user-metadata) method.
515
+ * This method deletes the user-defined metadata of the specified asset. To achieve the same result, you can also send an empty object (`{}`) in the `user_metadata` field of the [`PUT`](/v1.3/api-reference/upload-content/direct-uploads/replace-user-metadata) method.
512
516
  *
513
517
  * This action cannot be undone.
514
518
  *
@@ -530,7 +534,7 @@ class Assets {
530
534
  const _response = yield core.fetcher({
531
535
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `assets/${encodeURIComponent(assetId)}/user-metadata`),
532
536
  method: "DELETE",
533
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
537
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.9", "User-Agent": "twelvelabs-js/1.2.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
534
538
  contentType: "application/json",
535
539
  requestType: "json",
536
540
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,
@@ -578,7 +582,7 @@ class Assets {
578
582
  * - A key set to an empty string (`""`) is ignored.
579
583
  * - A key you omit from the request keeps its current value.
580
584
  *
581
- * To replace all metadata in a single call, use the [`PUT`](/v1.3/api-reference/upload-content/direct-uploads/replace-asset-user-metadata) method of the `/assets/{asset_id}/user-metadata` endpoint instead.
585
+ * To replace all metadata in a single call, use the [`PUT`](/v1.3/api-reference/upload-content/direct-uploads/replace-user-metadata) method of the `/assets/{asset_id}/user-metadata` endpoint instead.
582
586
  *
583
587
  * @param {string} assetId - The unique identifier of the asset whose user-defined metadata to update.
584
588
  * @param {TwelvelabsApi.AssetsUpdateUserMetadataRequest} request
@@ -606,7 +610,7 @@ class Assets {
606
610
  const _response = yield core.fetcher({
607
611
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `assets/${encodeURIComponent(assetId)}/user-metadata`),
608
612
  method: "PATCH",
609
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
613
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.9", "User-Agent": "twelvelabs-js/1.2.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
610
614
  contentType: "application/json",
611
615
  requestType: "json",
612
616
  body: serializers.AssetsUpdateUserMetadataRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -16,7 +16,7 @@ export interface AssetsCreateRequest {
16
16
  /**
17
17
  * Specify this parameter to upload a file from a publicly accessible URL. This parameter is required when `method` is set to `url`.
18
18
  *
19
- * Public video and audio URLs support up to 4 GB. Image URLs support up to 5 MB.
19
+ * Public video and audio URLs support up to 4 GB. Image URLs support up to 32 MB.
20
20
  */
21
21
  url?: string;
22
22
  /** The optional filename of the asset. If not provided, the platform will determine the filename from the file or URL. */
@@ -141,7 +141,7 @@ class Embed {
141
141
  const _response = yield core.fetcher({
142
142
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, "embed"),
143
143
  method: "POST",
144
- headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
144
+ headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.9", "User-Agent": "twelvelabs-js/1.2.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
145
145
  requestType: "file",
146
146
  duplex: _maybeEncodedRequest.duplex,
147
147
  body: _maybeEncodedRequest.body,
@@ -108,7 +108,7 @@ class Tasks {
108
108
  const _response = yield core.fetcher({
109
109
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, "embed/tasks"),
110
110
  method: "GET",
111
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
111
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.9", "User-Agent": "twelvelabs-js/1.2.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
112
112
  contentType: "application/json",
113
113
  queryParameters: _queryParams,
114
114
  requestType: "json",
@@ -239,7 +239,7 @@ class Tasks {
239
239
  const _response = yield core.fetcher({
240
240
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, "embed/tasks"),
241
241
  method: "POST",
242
- headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
242
+ headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.9", "User-Agent": "twelvelabs-js/1.2.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
243
243
  requestType: "file",
244
244
  duplex: _maybeEncodedRequest.duplex,
245
245
  body: _maybeEncodedRequest.body,
@@ -315,7 +315,7 @@ class Tasks {
315
315
  const _response = yield core.fetcher({
316
316
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `embed/tasks/${encodeURIComponent(taskId)}/status`),
317
317
  method: "GET",
318
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
318
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.9", "User-Agent": "twelvelabs-js/1.2.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
319
319
  contentType: "application/json",
320
320
  requestType: "json",
321
321
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,
@@ -398,7 +398,7 @@ class Tasks {
398
398
  const _response = yield core.fetcher({
399
399
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `embed/tasks/${encodeURIComponent(taskId)}`),
400
400
  method: "GET",
401
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
401
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.9", "User-Agent": "twelvelabs-js/1.2.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
402
402
  contentType: "application/json",
403
403
  queryParameters: _queryParams,
404
404
  requestType: "json",
@@ -285,7 +285,7 @@ class V2 {
285
285
  const _response = yield core.fetcher({
286
286
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, "embed-v2"),
287
287
  method: "POST",
288
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
288
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.9", "User-Agent": "twelvelabs-js/1.2.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
289
289
  contentType: "application/json",
290
290
  requestType: "json",
291
291
  body: serializers.embed.CreateEmbeddingsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -78,6 +78,7 @@ export declare class Tasks {
78
78
  * 3. Retrieve the embeddings from the response when the status is `ready` using the [`GET`](/v1.3/api-reference/create-embeddings-v2/retrieve-embeddings) method of the `/embed-v2/tasks/{task_id}` endpoint.
79
79
  *
80
80
  * <Note title="Notes">
81
+ * - Creating a task validates only basic metadata and playability, not the full file. A file can pass this check but still fail later during embedding. When you retrieve the results, check the [`status`](/v1.3/api-reference/create-embeddings-v2/retrieve-embeddings#response.body.status) field. If it is `failed`, the [`error.message`](/v1.3/api-reference/create-embeddings-v2/retrieve-embeddings#response.body.error.message) field contains the reason.
81
82
  * - This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page.
82
83
  * - Embeddings are stored for seven days.
83
84
  * </Note>
@@ -149,12 +150,7 @@ export declare class Tasks {
149
150
  /**
150
151
  * This method retrieves the status and the results of an async embedding task.
151
152
  *
152
- * **Task statuses**:
153
- * - `processing`: The platform is creating the embeddings.
154
- * - `ready`: Processing is complete. Embeddings are available in the response.
155
- * - `failed`: The task failed. Embeddings were not created.
156
- *
157
- * Invoke this method repeatedly until the `status` field is `ready`. When `status` is `ready`, use the embeddings from the response.
153
+ * Invoke this method repeatedly until the `status` field is `ready` or `failed`. When the status is `ready`, use the embeddings from the response. When the status is `failed`, the `error.message` field contains the reason.
158
154
  *
159
155
  * <Note title="Note">
160
156
  * Embeddings are stored for seven days.
@@ -105,7 +105,7 @@ class Tasks {
105
105
  const _response = yield core.fetcher({
106
106
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, "embed-v2/tasks"),
107
107
  method: "GET",
108
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
108
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.9", "User-Agent": "twelvelabs-js/1.2.9", "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",
@@ -196,6 +196,7 @@ class Tasks {
196
196
  * 3. Retrieve the embeddings from the response when the status is `ready` using the [`GET`](/v1.3/api-reference/create-embeddings-v2/retrieve-embeddings) method of the `/embed-v2/tasks/{task_id}` endpoint.
197
197
  *
198
198
  * <Note title="Notes">
199
+ * - Creating a task validates only basic metadata and playability, not the full file. A file can pass this check but still fail later during embedding. When you retrieve the results, check the [`status`](/v1.3/api-reference/create-embeddings-v2/retrieve-embeddings#response.body.status) field. If it is `failed`, the [`error.message`](/v1.3/api-reference/create-embeddings-v2/retrieve-embeddings#response.body.error.message) field contains the reason.
199
200
  * - This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page.
200
201
  * - Embeddings are stored for seven days.
201
202
  * </Note>
@@ -271,7 +272,7 @@ class Tasks {
271
272
  const _response = yield core.fetcher({
272
273
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, "embed-v2/tasks"),
273
274
  method: "POST",
274
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
275
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.9", "User-Agent": "twelvelabs-js/1.2.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
275
276
  contentType: "application/json",
276
277
  requestType: "json",
277
278
  body: serializers.embed.v2.CreateAsyncEmbeddingRequest.jsonOrThrow(request, {
@@ -326,12 +327,7 @@ class Tasks {
326
327
  /**
327
328
  * This method retrieves the status and the results of an async embedding task.
328
329
  *
329
- * **Task statuses**:
330
- * - `processing`: The platform is creating the embeddings.
331
- * - `ready`: Processing is complete. Embeddings are available in the response.
332
- * - `failed`: The task failed. Embeddings were not created.
333
- *
334
- * Invoke this method repeatedly until the `status` field is `ready`. When `status` is `ready`, use the embeddings from the response.
330
+ * Invoke this method repeatedly until the `status` field is `ready` or `failed`. When the status is `ready`, use the embeddings from the response. When the status is `failed`, the `error.message` field contains the reason.
335
331
  *
336
332
  * <Note title="Note">
337
333
  * Embeddings are stored for seven days.
@@ -354,7 +350,7 @@ class Tasks {
354
350
  const _response = yield core.fetcher({
355
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, `embed-v2/tasks/${encodeURIComponent(taskId)}`),
356
352
  method: "GET",
357
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.8", "User-Agent": "twelvelabs-js/1.2.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
353
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.9", "User-Agent": "twelvelabs-js/1.2.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
358
354
  contentType: "application/json",
359
355
  requestType: "json",
360
356
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,