twelvelabs-js 1.2.5 → 1.2.7

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 (108) hide show
  1. package/.fern/replay.lock +10 -0
  2. package/.gitattributes +1 -0
  3. package/Client.js +2 -2
  4. package/api/client/requests/AnalyzeRequest.d.ts +6 -4
  5. package/api/client/requests/AnalyzeStreamRequest.d.ts +6 -4
  6. package/api/resources/analyzeAsync/resources/tasks/client/Client.js +4 -4
  7. package/api/resources/analyzeAsync/resources/tasks/client/requests/CreateAsyncAnalyzeRequest.d.ts +6 -4
  8. package/api/resources/assets/client/Client.d.ts +29 -2
  9. package/api/resources/assets/client/Client.js +86 -8
  10. package/api/resources/assets/client/requests/AssetsReplaceUserMetadataRequest.d.ts +18 -0
  11. package/api/resources/assets/client/requests/AssetsReplaceUserMetadataRequest.js +5 -0
  12. package/api/resources/assets/client/requests/index.d.ts +1 -0
  13. package/api/resources/embed/client/Client.js +1 -1
  14. package/api/resources/embed/resources/tasks/client/Client.js +4 -4
  15. package/api/resources/embed/resources/v2/client/Client.js +1 -1
  16. package/api/resources/embed/resources/v2/resources/tasks/client/Client.js +3 -3
  17. package/api/resources/entityCollections/client/Client.js +5 -5
  18. package/api/resources/entityCollections/resources/entities/client/Client.js +9 -9
  19. package/api/resources/indexes/client/Client.js +5 -5
  20. package/api/resources/indexes/resources/indexedAssets/client/Client.js +6 -6
  21. package/api/resources/indexes/resources/videos/client/Client.js +4 -4
  22. package/api/resources/indexes/resources/videos/types/VideosRetrieveResponse.d.ts +1 -1
  23. package/api/resources/multipartUpload/client/Client.js +5 -5
  24. package/api/resources/search/client/Client.js +2 -2
  25. package/api/resources/tasks/client/Client.js +4 -4
  26. package/api/types/AnalyzeTimeRange.d.ts +10 -2
  27. package/api/types/AsyncResponseFormat.d.ts +1 -1
  28. package/api/types/EmbeddingTaskResponse.d.ts +2 -0
  29. package/api/types/EmbeddingTaskResponseError.d.ts +15 -0
  30. package/api/types/EmbeddingTaskResponseError.js +5 -0
  31. package/api/types/IndexedAssetDetailed.d.ts +1 -1
  32. package/api/types/SegmentDefinition.d.ts +1 -1
  33. package/api/types/SegmentField.d.ts +1 -1
  34. package/api/types/UserMetadata.d.ts +2 -2
  35. package/api/types/index.d.ts +1 -0
  36. package/api/types/index.js +1 -0
  37. package/dist/Client.js +2 -2
  38. package/dist/api/client/requests/AnalyzeRequest.d.ts +6 -4
  39. package/dist/api/client/requests/AnalyzeStreamRequest.d.ts +6 -4
  40. package/dist/api/resources/analyzeAsync/resources/tasks/client/Client.js +4 -4
  41. package/dist/api/resources/analyzeAsync/resources/tasks/client/requests/CreateAsyncAnalyzeRequest.d.ts +6 -4
  42. package/dist/api/resources/assets/client/Client.d.ts +29 -2
  43. package/dist/api/resources/assets/client/Client.js +86 -8
  44. package/dist/api/resources/assets/client/requests/AssetsReplaceUserMetadataRequest.d.ts +18 -0
  45. package/dist/api/resources/assets/client/requests/AssetsReplaceUserMetadataRequest.js +5 -0
  46. package/dist/api/resources/assets/client/requests/index.d.ts +1 -0
  47. package/dist/api/resources/embed/client/Client.js +1 -1
  48. package/dist/api/resources/embed/resources/tasks/client/Client.js +4 -4
  49. package/dist/api/resources/embed/resources/v2/client/Client.js +1 -1
  50. package/dist/api/resources/embed/resources/v2/resources/tasks/client/Client.js +3 -3
  51. package/dist/api/resources/entityCollections/client/Client.js +5 -5
  52. package/dist/api/resources/entityCollections/resources/entities/client/Client.js +9 -9
  53. package/dist/api/resources/indexes/client/Client.js +5 -5
  54. package/dist/api/resources/indexes/resources/indexedAssets/client/Client.js +6 -6
  55. package/dist/api/resources/indexes/resources/videos/client/Client.js +4 -4
  56. package/dist/api/resources/indexes/resources/videos/types/VideosRetrieveResponse.d.ts +1 -1
  57. package/dist/api/resources/multipartUpload/client/Client.js +5 -5
  58. package/dist/api/resources/search/client/Client.js +2 -2
  59. package/dist/api/resources/tasks/client/Client.js +4 -4
  60. package/dist/api/types/AnalyzeTimeRange.d.ts +10 -2
  61. package/dist/api/types/AsyncResponseFormat.d.ts +1 -1
  62. package/dist/api/types/EmbeddingTaskResponse.d.ts +2 -0
  63. package/dist/api/types/EmbeddingTaskResponseError.d.ts +15 -0
  64. package/dist/api/types/EmbeddingTaskResponseError.js +5 -0
  65. package/dist/api/types/IndexedAssetDetailed.d.ts +1 -1
  66. package/dist/api/types/SegmentDefinition.d.ts +1 -1
  67. package/dist/api/types/SegmentField.d.ts +1 -1
  68. package/dist/api/types/UserMetadata.d.ts +2 -2
  69. package/dist/api/types/index.d.ts +1 -0
  70. package/dist/api/types/index.js +1 -0
  71. package/dist/serialization/resources/assets/client/requests/AssetsReplaceUserMetadataRequest.d.ts +13 -0
  72. package/dist/serialization/resources/assets/client/requests/AssetsReplaceUserMetadataRequest.js +44 -0
  73. package/dist/serialization/resources/assets/client/requests/index.d.ts +1 -0
  74. package/dist/serialization/resources/assets/client/requests/index.js +3 -1
  75. package/dist/serialization/resources/indexes/resources/videos/types/VideosRetrieveResponse.d.ts +2 -1
  76. package/dist/serialization/resources/indexes/resources/videos/types/VideosRetrieveResponse.js +2 -1
  77. package/dist/serialization/types/EmbeddingTaskResponse.d.ts +2 -0
  78. package/dist/serialization/types/EmbeddingTaskResponse.js +2 -0
  79. package/dist/serialization/types/EmbeddingTaskResponseError.d.ts +12 -0
  80. package/dist/serialization/types/EmbeddingTaskResponseError.js +43 -0
  81. package/dist/serialization/types/IndexedAssetDetailed.d.ts +2 -1
  82. package/dist/serialization/types/IndexedAssetDetailed.js +2 -1
  83. package/dist/serialization/types/index.d.ts +1 -0
  84. package/dist/serialization/types/index.js +1 -0
  85. package/dist/version.d.ts +1 -1
  86. package/dist/version.js +1 -1
  87. package/dist/wrapper/resources/EmbedTasksWrapper.js +13 -8
  88. package/dist/wrapper/resources/TasksWrapper.js +13 -8
  89. package/package.json +1 -1
  90. package/reference.md +86 -2
  91. package/serialization/resources/assets/client/requests/AssetsReplaceUserMetadataRequest.d.ts +13 -0
  92. package/serialization/resources/assets/client/requests/AssetsReplaceUserMetadataRequest.js +44 -0
  93. package/serialization/resources/assets/client/requests/index.d.ts +1 -0
  94. package/serialization/resources/assets/client/requests/index.js +3 -1
  95. package/serialization/resources/indexes/resources/videos/types/VideosRetrieveResponse.d.ts +2 -1
  96. package/serialization/resources/indexes/resources/videos/types/VideosRetrieveResponse.js +2 -1
  97. package/serialization/types/EmbeddingTaskResponse.d.ts +2 -0
  98. package/serialization/types/EmbeddingTaskResponse.js +2 -0
  99. package/serialization/types/EmbeddingTaskResponseError.d.ts +12 -0
  100. package/serialization/types/EmbeddingTaskResponseError.js +43 -0
  101. package/serialization/types/IndexedAssetDetailed.d.ts +2 -1
  102. package/serialization/types/IndexedAssetDetailed.js +2 -1
  103. package/serialization/types/index.d.ts +1 -0
  104. package/serialization/types/index.js +1 -0
  105. package/version.d.ts +1 -1
  106. package/version.js +1 -1
  107. package/wrapper/resources/EmbedTasksWrapper.js +13 -8
  108. package/wrapper/resources/TasksWrapper.js +13 -8
@@ -89,7 +89,7 @@ class Entities {
89
89
  const _response = yield core.fetcher({
90
90
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `assets/${encodeURIComponent(assetId)}/entities`),
91
91
  method: "GET",
92
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.5", "User-Agent": "twelvelabs-js/1.2.5", "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),
92
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.7", "User-Agent": "twelvelabs-js/1.2.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
93
93
  contentType: "application/json",
94
94
  queryParameters: _queryParams,
95
95
  requestType: "json",
@@ -196,7 +196,7 @@ class Entities {
196
196
  const _response = yield core.fetcher({
197
197
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `entity-collections/${encodeURIComponent(entityCollectionId)}/entities`),
198
198
  method: "GET",
199
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.5", "User-Agent": "twelvelabs-js/1.2.5", "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),
199
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.7", "User-Agent": "twelvelabs-js/1.2.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
200
200
  contentType: "application/json",
201
201
  queryParameters: _queryParams,
202
202
  requestType: "json",
@@ -281,7 +281,7 @@ class Entities {
281
281
  const _response = yield core.fetcher({
282
282
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `entity-collections/${encodeURIComponent(entityCollectionId)}/entities`),
283
283
  method: "POST",
284
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.5", "User-Agent": "twelvelabs-js/1.2.5", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.7", "User-Agent": "twelvelabs-js/1.2.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
285
285
  contentType: "application/json",
286
286
  requestType: "json",
287
287
  body: serializers.entityCollections.EntitiesCreateRequest.jsonOrThrow(request, {
@@ -357,7 +357,7 @@ class Entities {
357
357
  const _response = yield core.fetcher({
358
358
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `entity-collections/${encodeURIComponent(entityCollectionId)}/entities/bulk`),
359
359
  method: "POST",
360
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.5", "User-Agent": "twelvelabs-js/1.2.5", "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),
360
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.7", "User-Agent": "twelvelabs-js/1.2.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
361
361
  contentType: "application/json",
362
362
  requestType: "json",
363
363
  body: serializers.entityCollections.EntitiesCreateBulkRequest.jsonOrThrow(request, {
@@ -428,7 +428,7 @@ class Entities {
428
428
  const _response = yield core.fetcher({
429
429
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `entity-collections/${encodeURIComponent(entityCollectionId)}/entities/${encodeURIComponent(entityId)}`),
430
430
  method: "GET",
431
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.5", "User-Agent": "twelvelabs-js/1.2.5", "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),
431
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.7", "User-Agent": "twelvelabs-js/1.2.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
432
432
  contentType: "application/json",
433
433
  requestType: "json",
434
434
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,
@@ -496,7 +496,7 @@ class Entities {
496
496
  const _response = yield core.fetcher({
497
497
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `entity-collections/${encodeURIComponent(entityCollectionId)}/entities/${encodeURIComponent(entityId)}`),
498
498
  method: "DELETE",
499
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.5", "User-Agent": "twelvelabs-js/1.2.5", "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),
499
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.7", "User-Agent": "twelvelabs-js/1.2.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
500
500
  contentType: "application/json",
501
501
  requestType: "json",
502
502
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,
@@ -557,7 +557,7 @@ class Entities {
557
557
  const _response = yield core.fetcher({
558
558
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `entity-collections/${encodeURIComponent(entityCollectionId)}/entities/${encodeURIComponent(entityId)}`),
559
559
  method: "PATCH",
560
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.5", "User-Agent": "twelvelabs-js/1.2.5", "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),
560
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.7", "User-Agent": "twelvelabs-js/1.2.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
561
561
  contentType: "application/json",
562
562
  requestType: "json",
563
563
  body: serializers.entityCollections.EntitiesUpdateRequest.jsonOrThrow(request, {
@@ -633,7 +633,7 @@ class Entities {
633
633
  const _response = yield core.fetcher({
634
634
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `entity-collections/${encodeURIComponent(entityCollectionId)}/entities/${encodeURIComponent(entityId)}/assets`),
635
635
  method: "POST",
636
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.5", "User-Agent": "twelvelabs-js/1.2.5", "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),
636
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.7", "User-Agent": "twelvelabs-js/1.2.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
637
637
  contentType: "application/json",
638
638
  requestType: "json",
639
639
  body: serializers.entityCollections.EntitiesCreateAssetsRequest.jsonOrThrow(request, {
@@ -714,7 +714,7 @@ class Entities {
714
714
  const _response = yield core.fetcher({
715
715
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `entity-collections/${encodeURIComponent(entityCollectionId)}/entities/${encodeURIComponent(entityId)}/assets`),
716
716
  method: "DELETE",
717
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.5", "User-Agent": "twelvelabs-js/1.2.5", "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),
717
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.7", "User-Agent": "twelvelabs-js/1.2.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
718
718
  contentType: "application/json",
719
719
  requestType: "json",
720
720
  body: serializers.entityCollections.EntitiesDeleteAssetsRequest.jsonOrThrow(request, {
@@ -126,7 +126,7 @@ class Indexes {
126
126
  const _response = yield core.fetcher({
127
127
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, "indexes"),
128
128
  method: "GET",
129
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.5", "User-Agent": "twelvelabs-js/1.2.5", "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),
129
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.7", "User-Agent": "twelvelabs-js/1.2.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
130
130
  contentType: "application/json",
131
131
  queryParameters: _queryParams,
132
132
  requestType: "json",
@@ -217,7 +217,7 @@ class Indexes {
217
217
  const _response = yield core.fetcher({
218
218
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, "indexes"),
219
219
  method: "POST",
220
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.5", "User-Agent": "twelvelabs-js/1.2.5", "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),
220
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.7", "User-Agent": "twelvelabs-js/1.2.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
221
221
  contentType: "application/json",
222
222
  requestType: "json",
223
223
  body: serializers.IndexesCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -285,7 +285,7 @@ class Indexes {
285
285
  const _response = yield core.fetcher({
286
286
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `indexes/${encodeURIComponent(indexId)}`),
287
287
  method: "GET",
288
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.5", "User-Agent": "twelvelabs-js/1.2.5", "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.7", "User-Agent": "twelvelabs-js/1.2.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
289
289
  contentType: "application/json",
290
290
  requestType: "json",
291
291
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,
@@ -355,7 +355,7 @@ class Indexes {
355
355
  const _response = yield core.fetcher({
356
356
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `indexes/${encodeURIComponent(indexId)}`),
357
357
  method: "PUT",
358
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.5", "User-Agent": "twelvelabs-js/1.2.5", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.7", "User-Agent": "twelvelabs-js/1.2.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
359
359
  contentType: "application/json",
360
360
  requestType: "json",
361
361
  body: serializers.IndexesUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -415,7 +415,7 @@ class Indexes {
415
415
  const _response = yield core.fetcher({
416
416
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `indexes/${encodeURIComponent(indexId)}`),
417
417
  method: "DELETE",
418
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.5", "User-Agent": "twelvelabs-js/1.2.5", "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),
418
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.7", "User-Agent": "twelvelabs-js/1.2.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
419
419
  contentType: "application/json",
420
420
  requestType: "json",
421
421
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,
@@ -163,7 +163,7 @@ class IndexedAssets {
163
163
  const _response = yield core.fetcher({
164
164
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `indexes/${encodeURIComponent(indexId)}/indexed-assets`),
165
165
  method: "GET",
166
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.5", "User-Agent": "twelvelabs-js/1.2.5", "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),
166
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.7", "User-Agent": "twelvelabs-js/1.2.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
167
167
  contentType: "application/json",
168
168
  queryParameters: _queryParams,
169
169
  requestType: "json",
@@ -261,7 +261,7 @@ class IndexedAssets {
261
261
  const _response = yield core.fetcher({
262
262
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `indexes/${encodeURIComponent(indexId)}/indexed-assets`),
263
263
  method: "POST",
264
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.5", "User-Agent": "twelvelabs-js/1.2.5", "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),
264
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.7", "User-Agent": "twelvelabs-js/1.2.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
265
265
  contentType: "application/json",
266
266
  requestType: "json",
267
267
  body: serializers.indexes.IndexedAssetsCreateRequest.jsonOrThrow(request, {
@@ -376,7 +376,7 @@ class IndexedAssets {
376
376
  const _response = yield core.fetcher({
377
377
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `indexes/${encodeURIComponent(indexId)}/indexed-assets/${encodeURIComponent(indexedAssetId)}`),
378
378
  method: "GET",
379
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.5", "User-Agent": "twelvelabs-js/1.2.5", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.7", "User-Agent": "twelvelabs-js/1.2.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
380
380
  contentType: "application/json",
381
381
  queryParameters: _queryParams,
382
382
  requestType: "json",
@@ -447,7 +447,7 @@ class IndexedAssets {
447
447
  const _response = yield core.fetcher({
448
448
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `indexes/${encodeURIComponent(indexId)}/indexed-assets/${encodeURIComponent(indexedAssetId)}`),
449
449
  method: "DELETE",
450
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.5", "User-Agent": "twelvelabs-js/1.2.5", "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),
450
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.7", "User-Agent": "twelvelabs-js/1.2.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
451
451
  contentType: "application/json",
452
452
  requestType: "json",
453
453
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,
@@ -515,7 +515,7 @@ class IndexedAssets {
515
515
  const _response = yield core.fetcher({
516
516
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `indexes/${encodeURIComponent(indexId)}/indexed-assets/${encodeURIComponent(indexedAssetId)}`),
517
517
  method: "PATCH",
518
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.5", "User-Agent": "twelvelabs-js/1.2.5", "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),
518
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.7", "User-Agent": "twelvelabs-js/1.2.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
519
519
  contentType: "application/json",
520
520
  requestType: "json",
521
521
  body: serializers.indexes.IndexedAssetsUpdateRequest.jsonOrThrow(request, {
@@ -587,7 +587,7 @@ class IndexedAssets {
587
587
  const _response = yield core.fetcher({
588
588
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `assets/${encodeURIComponent(assetId)}/indexed-assets`),
589
589
  method: "GET",
590
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.5", "User-Agent": "twelvelabs-js/1.2.5", "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),
590
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.7", "User-Agent": "twelvelabs-js/1.2.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
591
591
  contentType: "application/json",
592
592
  queryParameters: _queryParams,
593
593
  requestType: "json",
@@ -155,7 +155,7 @@ class Videos {
155
155
  const _response = yield core.fetcher({
156
156
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `indexes/${encodeURIComponent(indexId)}/videos`),
157
157
  method: "GET",
158
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.5", "User-Agent": "twelvelabs-js/1.2.5", "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),
158
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.7", "User-Agent": "twelvelabs-js/1.2.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
159
159
  contentType: "application/json",
160
160
  queryParameters: _queryParams,
161
161
  requestType: "json",
@@ -261,7 +261,7 @@ class Videos {
261
261
  const _response = yield core.fetcher({
262
262
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `indexes/${encodeURIComponent(indexId)}/videos/${encodeURIComponent(videoId)}`),
263
263
  method: "GET",
264
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.5", "User-Agent": "twelvelabs-js/1.2.5", "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),
264
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.7", "User-Agent": "twelvelabs-js/1.2.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
265
265
  contentType: "application/json",
266
266
  queryParameters: _queryParams,
267
267
  requestType: "json",
@@ -334,7 +334,7 @@ class Videos {
334
334
  const _response = yield core.fetcher({
335
335
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `indexes/${encodeURIComponent(indexId)}/videos/${encodeURIComponent(videoId)}`),
336
336
  method: "DELETE",
337
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.5", "User-Agent": "twelvelabs-js/1.2.5", "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),
337
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.7", "User-Agent": "twelvelabs-js/1.2.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
338
338
  contentType: "application/json",
339
339
  requestType: "json",
340
340
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,
@@ -404,7 +404,7 @@ class Videos {
404
404
  const _response = yield core.fetcher({
405
405
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `indexes/${encodeURIComponent(indexId)}/videos/${encodeURIComponent(videoId)}`),
406
406
  method: "PATCH",
407
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.5", "User-Agent": "twelvelabs-js/1.2.5", "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),
407
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.7", "User-Agent": "twelvelabs-js/1.2.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
408
408
  contentType: "application/json",
409
409
  requestType: "json",
410
410
  body: serializers.indexes.VideosUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -16,7 +16,7 @@ export interface VideosRetrieveResponse {
16
16
  /** System-generated metadata about the video. */
17
17
  systemMetadata?: TwelvelabsApi.indexes.VideosRetrieveResponseSystemMetadata;
18
18
  /** User-defined metadata for this video. */
19
- userMetadata?: Record<string, unknown>;
19
+ userMetadata?: TwelvelabsApi.UserMetadata;
20
20
  hls?: TwelvelabsApi.HlsObject;
21
21
  /** Contains the embedding and the associated information. The platform returns this field when the `embedding_option` parameter is specified in the request. */
22
22
  embedding?: TwelvelabsApi.indexes.VideosRetrieveResponseEmbedding;
@@ -90,7 +90,7 @@ class MultipartUpload {
90
90
  const _response = yield core.fetcher({
91
91
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, "assets/multipart-uploads"),
92
92
  method: "GET",
93
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.5", "User-Agent": "twelvelabs-js/1.2.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
93
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.7", "User-Agent": "twelvelabs-js/1.2.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
94
94
  contentType: "application/json",
95
95
  queryParameters: _queryParams,
96
96
  requestType: "json",
@@ -190,7 +190,7 @@ class MultipartUpload {
190
190
  const _response = yield core.fetcher({
191
191
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, "assets/multipart-uploads"),
192
192
  method: "POST",
193
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.5", "User-Agent": "twelvelabs-js/1.2.5", "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),
193
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.7", "User-Agent": "twelvelabs-js/1.2.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
194
194
  contentType: "application/json",
195
195
  requestType: "json",
196
196
  body: serializers.CreateAssetUploadRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -284,7 +284,7 @@ class MultipartUpload {
284
284
  const _response = yield core.fetcher({
285
285
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `assets/multipart-uploads/${encodeURIComponent(uploadId)}`),
286
286
  method: "GET",
287
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.5", "User-Agent": "twelvelabs-js/1.2.5", "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),
287
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.7", "User-Agent": "twelvelabs-js/1.2.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
288
288
  contentType: "application/json",
289
289
  queryParameters: _queryParams,
290
290
  requestType: "json",
@@ -384,7 +384,7 @@ class MultipartUpload {
384
384
  const _response = yield core.fetcher({
385
385
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `assets/multipart-uploads/${encodeURIComponent(uploadId)}`),
386
386
  method: "POST",
387
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.5", "User-Agent": "twelvelabs-js/1.2.5", "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),
387
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.7", "User-Agent": "twelvelabs-js/1.2.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
388
388
  contentType: "application/json",
389
389
  requestType: "json",
390
390
  body: serializers.ReportChunkBatchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -468,7 +468,7 @@ class MultipartUpload {
468
468
  const _response = yield core.fetcher({
469
469
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `assets/multipart-uploads/${encodeURIComponent(uploadId)}/presigned-urls`),
470
470
  method: "POST",
471
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.5", "User-Agent": "twelvelabs-js/1.2.5", "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),
471
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.7", "User-Agent": "twelvelabs-js/1.2.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
472
472
  contentType: "application/json",
473
473
  requestType: "json",
474
474
  body: serializers.RequestAdditionalPresignedUrLsRequest.jsonOrThrow(request, {
@@ -152,7 +152,7 @@ class Search {
152
152
  const _response = yield core.fetcher({
153
153
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, "search"),
154
154
  method: "POST",
155
- headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.5", "User-Agent": "twelvelabs-js/1.2.5", "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),
155
+ headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.7", "User-Agent": "twelvelabs-js/1.2.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
156
156
  requestType: "file",
157
157
  duplex: _maybeEncodedRequest.duplex,
158
158
  body: _maybeEncodedRequest.body,
@@ -234,7 +234,7 @@ class Search {
234
234
  const _response = yield core.fetcher({
235
235
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `search/${encodeURIComponent(pageToken)}`),
236
236
  method: "GET",
237
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.5", "User-Agent": "twelvelabs-js/1.2.5", "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),
237
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.7", "User-Agent": "twelvelabs-js/1.2.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
238
238
  contentType: "application/json",
239
239
  queryParameters: _queryParams,
240
240
  requestType: "json",
@@ -136,7 +136,7 @@ class Tasks {
136
136
  const _response = yield core.fetcher({
137
137
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, "tasks"),
138
138
  method: "GET",
139
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.5", "User-Agent": "twelvelabs-js/1.2.5", "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),
139
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.7", "User-Agent": "twelvelabs-js/1.2.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
140
140
  contentType: "application/json",
141
141
  queryParameters: _queryParams,
142
142
  requestType: "json",
@@ -257,7 +257,7 @@ class Tasks {
257
257
  const _response = yield core.fetcher({
258
258
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, "tasks"),
259
259
  method: "POST",
260
- headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.5", "User-Agent": "twelvelabs-js/1.2.5", "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),
260
+ headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.7", "User-Agent": "twelvelabs-js/1.2.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
261
261
  requestType: "file",
262
262
  duplex: _maybeEncodedRequest.duplex,
263
263
  body: _maybeEncodedRequest.body,
@@ -325,7 +325,7 @@ class Tasks {
325
325
  const _response = yield core.fetcher({
326
326
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `tasks/${encodeURIComponent(taskId)}`),
327
327
  method: "GET",
328
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.5", "User-Agent": "twelvelabs-js/1.2.5", "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),
328
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.7", "User-Agent": "twelvelabs-js/1.2.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
329
329
  contentType: "application/json",
330
330
  requestType: "json",
331
331
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,
@@ -395,7 +395,7 @@ class Tasks {
395
395
  const _response = yield core.fetcher({
396
396
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `tasks/${encodeURIComponent(taskId)}`),
397
397
  method: "DELETE",
398
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.5", "User-Agent": "twelvelabs-js/1.2.5", "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),
398
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.7", "User-Agent": "twelvelabs-js/1.2.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
399
399
  contentType: "application/json",
400
400
  requestType: "json",
401
401
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,
@@ -5,8 +5,16 @@
5
5
  * A time window within the video, expressed in seconds.
6
6
  */
7
7
  export interface AnalyzeTimeRange {
8
- /** The start of the window, in seconds. Must be less than `end_time` and within the video duration. */
8
+ /**
9
+ * The start of the window, as an absolute timestamp in seconds, based on the video's internal metadata. Must be less than `end_time` and within the video duration.
10
+ *
11
+ * Most videos start at 0, but some (for example, from cameras or broadcast recordings) may have a non-zero start time. To find the value, run `ffprobe -v error -show_entries format=start_time,duration -of default=noprint_wrappers=1 your_video.mp4`.
12
+ */
9
13
  startTime: number;
10
- /** The end of the window, in seconds. Must be greater than `start_time` by at least `2` seconds and within the video duration. */
14
+ /**
15
+ * The end of the window, as an absolute timestamp in seconds, based on the video's internal metadata. Must be greater than `start_time` by at least `2` seconds and within the video duration.
16
+ *
17
+ * Most videos start at 0, but some (for example, from cameras or broadcast recordings) may have a non-zero start time. To find the value, run `ffprobe -v error -show_entries format=start_time,duration -of default=noprint_wrappers=1 your_video.mp4`.
18
+ */
11
19
  endTime: number;
12
20
  }
@@ -147,7 +147,7 @@ export interface AsyncResponseFormat {
147
147
  * - When `FinishReason` is `length`, the platform truncates the response at the maximum response length or the context window. This may result in truncated, invalid JSON that fails to parse.
148
148
  */
149
149
  jsonSchema?: Record<string, unknown>;
150
- /** Define the types of segments to extract from your video. Minimum 1, maximum 10 definitions. The number of segment definitions affects billing. For details, see the [Frequently asked questions](/v1.3/docs/resources/frequently-asked-questions#how-is-video-segmentation-priced) page. */
150
+ /** Define the types of segments to extract from your video. Minimum 1, maximum 20 definitions. The number of segment definitions affects billing. For details, see the [Frequently asked questions](/v1.3/docs/resources/frequently-asked-questions#how-is-video-segmentation-priced) page. */
151
151
  segmentDefinitions?: TwelvelabsApi.SegmentDefinition[];
152
152
  /**
153
153
  * Set the output format for the automatic `start_time` and `end_time` keys returned on each segment. Requires the `type` parameter set to `segment_definitions` and the `model_name` parameter set to `pegasus1.5`. Omitting this parameter is equivalent to setting it to `seconds` — both return JSON numbers in seconds.
@@ -23,4 +23,6 @@ export interface EmbeddingTaskResponse {
23
23
  /** An object containing the embedding results, or `null` otherwise. */
24
24
  data?: TwelvelabsApi.EmbeddingData[];
25
25
  metadata?: TwelvelabsApi.EmbeddingTaskMediaMetadata;
26
+ /** An object describing why the embedding task failed. Present only when `status` is `failed`. Omitted otherwise. */
27
+ error?: TwelvelabsApi.EmbeddingTaskResponseError;
26
28
  }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * An object describing why the embedding task failed. Present only when `status` is `failed`. Omitted otherwise.
6
+ */
7
+ export interface EmbeddingTaskResponseError {
8
+ /**
9
+ * A human-readable message that describes why the task failed. Possible values:
10
+ * - "The embedding service is temporarily unstable. Please try again later."
11
+ * - "We could not process your media for embedding. Please verify the input file and try again."
12
+ * - "The embedding task failed. Please try again later."
13
+ */
14
+ message: string;
15
+ }
@@ -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 });
@@ -4,7 +4,7 @@
4
4
  import * as TwelvelabsApi from "../index";
5
5
  export interface IndexedAssetDetailed extends TwelvelabsApi.IndexedAsset {
6
6
  /** User-defined metadata for this indexed asset. */
7
- userMetadata?: Record<string, unknown>;
7
+ userMetadata?: TwelvelabsApi.UserMetadata;
8
8
  hls?: TwelvelabsApi.HlsObject;
9
9
  /** Contains the embedding and the associated information. The platform returns this field when the `embedding_option` parameter is specified in the request. */
10
10
  embedding?: TwelvelabsApi.IndexedAssetDetailedEmbedding;
@@ -10,7 +10,7 @@ export interface SegmentDefinition {
10
10
  id: string;
11
11
  /** Describe what this type of segment looks like in the video. The model uses this text to identify matching segments. */
12
12
  description: string;
13
- /** Custom fields to extract for each segment instance. Maximum 20 fields. */
13
+ /** Custom fields to extract for each segment instance. */
14
14
  fields?: TwelvelabsApi.SegmentField[];
15
15
  /** Reference images that help the model identify segments. Maximum 4 sources. */
16
16
  mediaSources?: TwelvelabsApi.SmeMediaSource[];
@@ -38,7 +38,7 @@ export interface SegmentField {
38
38
  * - `type` is not `timestamp` and `format` is set.
39
39
  */
40
40
  format?: TwelvelabsApi.SegmentFieldFormat;
41
- /** Allowed values for this field. Maximum 50 values. Not supported when `type` is `timestamp`. */
41
+ /** Allowed values for this field. Maximum 100 values. Not supported when `type` is `timestamp`. */
42
42
  enum?: string[];
43
43
  /** Required when `type` is `array`. Specifies the type of array elements. Not supported when `type` is `timestamp`. */
44
44
  items?: TwelvelabsApi.SegmentFieldItems;
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  /**
5
- * Metadata that helps you categorize your assets. You can specify a list of keys and values. Keys must be of type `string`, and values can be of the following types: `string`, `integer`, `float` or `boolean`.
5
+ * Metadata that helps you categorize your assets. The object contains user-defined keys and values, where keys are strings and values are one of `string`, `integer`, `float`, or `boolean`.
6
6
  *
7
7
  * **Example**:
8
8
  * ```JSON
@@ -15,7 +15,7 @@
15
15
  * ```
16
16
  *
17
17
  * <Note title="Note">
18
- * If you want to store other types of data such as objects or arrays, you must convert your data into string values.
18
+ * To store other types of data, such as objects or arrays, convert your data into string values before sending it.
19
19
  * </Note>
20
20
  */
21
21
  export type UserMetadata = Record<string, unknown>;
@@ -53,6 +53,7 @@ export * from "./EmbeddingDataEmbeddingOption";
53
53
  export * from "./EmbeddingDataEmbeddingScope";
54
54
  export * from "./EmbeddingData";
55
55
  export * from "./EmbeddingTaskResponseStatus";
56
+ export * from "./EmbeddingTaskResponseError";
56
57
  export * from "./EmbeddingTaskResponse";
57
58
  export * from "./EmbeddingMediaMetadata";
58
59
  export * from "./EmbeddingTaskMediaMetadata";
@@ -69,6 +69,7 @@ __exportStar(require("./EmbeddingDataEmbeddingOption"), exports);
69
69
  __exportStar(require("./EmbeddingDataEmbeddingScope"), exports);
70
70
  __exportStar(require("./EmbeddingData"), exports);
71
71
  __exportStar(require("./EmbeddingTaskResponseStatus"), exports);
72
+ __exportStar(require("./EmbeddingTaskResponseError"), exports);
72
73
  __exportStar(require("./EmbeddingTaskResponse"), exports);
73
74
  __exportStar(require("./EmbeddingMediaMetadata"), exports);
74
75
  __exportStar(require("./EmbeddingTaskMediaMetadata"), exports);
package/dist/Client.js CHANGED
@@ -132,7 +132,7 @@ class TwelvelabsApiClient {
132
132
  const _response = yield core.fetcher({
133
133
  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"),
134
134
  method: "POST",
135
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.5", "User-Agent": "twelvelabs-js/1.2.5", "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),
135
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.7", "User-Agent": "twelvelabs-js/1.2.7", "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),
136
136
  contentType: "application/json",
137
137
  requestType: "json",
138
138
  body: Object.assign(Object.assign({}, serializers.AnalyzeStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" })), { stream: true }),
@@ -238,7 +238,7 @@ class TwelvelabsApiClient {
238
238
  const _response = yield core.fetcher({
239
239
  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"),
240
240
  method: "POST",
241
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.5", "User-Agent": "twelvelabs-js/1.2.5", "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),
241
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.7", "User-Agent": "twelvelabs-js/1.2.7", "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),
242
242
  contentType: "application/json",
243
243
  requestType: "json",
244
244
  body: Object.assign(Object.assign({}, serializers.AnalyzeRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" })), { stream: false }),
@@ -47,19 +47,21 @@ export interface AnalyzeRequest {
47
47
  */
48
48
  maxTokens?: number;
49
49
  /**
50
- * Start of the analysis window, in seconds. Use with `end_time` to analyze only a portion of the video. Requires `model_name` set to `pegasus1.5`.
50
+ * Start of the analysis window, as an absolute timestamp in seconds, based on the video's internal metadata. Use with `end_time` to analyze only a portion of the video. Requires `model_name` set to `pegasus1.5`.
51
51
  *
52
52
  * <Note title="Notes">
53
- * - If omitted, defaults to `0`.
53
+ * - If omitted, defaults to the video's internal start time.
54
+ * - Most videos start at 0, but some (for example, from cameras or broadcast recordings) may have a non-zero start time. To find the value, run `ffprobe -v error -show_entries format=start_time,duration -of default=noprint_wrappers=1 your_video.mp4`.
54
55
  * - Must be less than `end_time` and less than the video duration. The clip (`end_time - start_time`) must be at least `4` seconds.
55
56
  * </Note>
56
57
  */
57
58
  startTime?: number;
58
59
  /**
59
- * End of the analysis window, in seconds. Use with `start_time` to analyze only a portion of the video. Requires `model_name` set to `pegasus1.5`.
60
+ * End of the analysis window, as an absolute timestamp in seconds, based on the video's internal metadata. Use with `start_time` to analyze only a portion of the video. Requires `model_name` set to `pegasus1.5`.
60
61
  *
61
62
  * <Note title="Notes">
62
- * - If omitted, defaults to the video duration.
63
+ * - If omitted, defaults to the video's internal start time plus its duration.
64
+ * - Most videos start at 0, but some (for example, from cameras or broadcast recordings) may have a non-zero start time. To find the value, run `ffprobe -v error -show_entries format=start_time,duration -of default=noprint_wrappers=1 your_video.mp4`.
63
65
  * - Must be greater than `start_time` and less than or equal to the video duration. The clip (`end_time - start_time`) must be at least `4` seconds.
64
66
  * </Note>
65
67
  */