twelvelabs-js 1.2.4 → 1.2.6

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 (265) hide show
  1. package/Client.js +2 -2
  2. package/api/client/requests/AnalyzeRequest.d.ts +19 -9
  3. package/api/client/requests/AnalyzeStreamRequest.d.ts +19 -9
  4. package/api/resources/analyzeAsync/resources/tasks/client/Client.d.ts +69 -0
  5. package/api/resources/analyzeAsync/resources/tasks/client/Client.js +73 -4
  6. package/api/resources/analyzeAsync/resources/tasks/client/requests/CreateAsyncAnalyzeRequest.d.ts +87 -13
  7. package/api/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestModelName.d.ts +1 -1
  8. package/api/resources/assets/client/Client.d.ts +71 -0
  9. package/api/resources/assets/client/Client.js +226 -4
  10. package/api/resources/assets/client/requests/AssetsCreateRequest.d.ts +2 -0
  11. package/api/resources/assets/client/requests/AssetsReplaceUserMetadataRequest.d.ts +18 -0
  12. package/api/resources/assets/client/requests/AssetsUpdateUserMetadataRequest.d.ts +18 -0
  13. package/api/resources/assets/client/requests/index.d.ts +2 -0
  14. package/api/resources/embed/client/Client.js +1 -1
  15. package/api/resources/embed/resources/tasks/client/Client.js +4 -4
  16. package/api/resources/embed/resources/v2/client/Client.js +1 -1
  17. package/api/resources/embed/resources/v2/resources/tasks/client/Client.js +3 -3
  18. package/api/resources/entityCollections/client/Client.js +5 -5
  19. package/api/resources/entityCollections/resources/entities/client/Client.js +9 -9
  20. package/api/resources/indexes/client/Client.js +5 -5
  21. package/api/resources/indexes/resources/indexedAssets/client/Client.js +6 -6
  22. package/api/resources/indexes/resources/indexedAssets/client/requests/IndexedAssetsCreateRequest.d.ts +3 -0
  23. package/api/resources/indexes/resources/videos/client/Client.js +4 -4
  24. package/api/resources/indexes/resources/videos/types/VideosRetrieveResponse.d.ts +4 -2
  25. package/api/resources/multipartUpload/client/Client.js +5 -5
  26. package/api/resources/multipartUpload/client/requests/CreateAssetUploadRequest.d.ts +2 -0
  27. package/api/resources/search/client/Client.js +2 -2
  28. package/api/resources/tasks/client/Client.d.ts +0 -3
  29. package/api/resources/tasks/client/Client.js +4 -9
  30. package/api/resources/tasks/client/requests/TasksCreateRequest.d.ts +1 -1
  31. package/api/resources/tasks/index.d.ts +0 -1
  32. package/api/resources/tasks/index.js +0 -1
  33. package/api/types/AnalyzeMaxTokens.d.ts +1 -1
  34. package/api/types/AnalyzePromptV2.d.ts +1 -1
  35. package/api/types/AnalyzeRequestModelName.d.ts +1 -1
  36. package/api/types/AnalyzeStreamRequestModelName.d.ts +1 -1
  37. package/api/types/AnalyzeTaskError.d.ts +16 -2
  38. package/api/types/AnalyzeTaskResponse.d.ts +8 -1
  39. package/api/types/AnalyzeTaskResponseRequestParams.d.ts +1 -1
  40. package/api/types/AnalyzeTaskResultUsage.d.ts +1 -1
  41. package/api/types/AnalyzeTextPrompt.d.ts +1 -5
  42. package/api/types/AnalyzeTimeRange.d.ts +10 -2
  43. package/api/types/Asset.d.ts +2 -0
  44. package/api/types/AsyncResponseFormat.d.ts +53 -6
  45. package/api/types/AsyncResponseFormatSegmentTimeFormat.d.ts +20 -0
  46. package/api/types/AsyncResponseFormatSegmentTimeFormat.js +11 -0
  47. package/api/types/FinishReason.d.ts +3 -3
  48. package/api/types/IndexedAssetDetailed.d.ts +2 -2
  49. package/api/types/NonStreamAnalyzeResponse.d.ts +2 -0
  50. package/api/types/SegmentDefinition.d.ts +1 -0
  51. package/api/types/SegmentField.d.ts +29 -3
  52. package/api/types/SegmentFieldFormat.d.ts +24 -0
  53. package/api/types/SegmentFieldFormat.js +11 -0
  54. package/api/types/SegmentFieldItems.d.ts +1 -1
  55. package/api/types/SegmentFieldType.d.ts +4 -1
  56. package/api/types/SegmentFieldType.js +1 -0
  57. package/api/types/StreamEndResponse.d.ts +2 -0
  58. package/api/types/SyncResponseFormat.d.ts +48 -4
  59. package/api/types/TokenUsage.d.ts +1 -1
  60. package/api/types/UserMetadata.d.ts +3 -12
  61. package/api/types/VideoVector.d.ts +2 -0
  62. package/api/types/index.d.ts +2 -5
  63. package/api/types/index.js +2 -5
  64. package/dist/Client.js +2 -2
  65. package/dist/api/client/requests/AnalyzeRequest.d.ts +19 -9
  66. package/dist/api/client/requests/AnalyzeStreamRequest.d.ts +19 -9
  67. package/dist/api/resources/analyzeAsync/resources/tasks/client/Client.d.ts +69 -0
  68. package/dist/api/resources/analyzeAsync/resources/tasks/client/Client.js +73 -4
  69. package/dist/api/resources/analyzeAsync/resources/tasks/client/requests/CreateAsyncAnalyzeRequest.d.ts +87 -13
  70. package/dist/api/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestModelName.d.ts +1 -1
  71. package/dist/api/resources/assets/client/Client.d.ts +71 -0
  72. package/dist/api/resources/assets/client/Client.js +226 -4
  73. package/dist/api/resources/assets/client/requests/AssetsCreateRequest.d.ts +2 -0
  74. package/dist/api/resources/assets/client/requests/AssetsReplaceUserMetadataRequest.d.ts +18 -0
  75. package/dist/api/resources/assets/client/requests/AssetsUpdateUserMetadataRequest.d.ts +18 -0
  76. package/dist/api/resources/assets/client/requests/index.d.ts +2 -0
  77. package/dist/api/resources/embed/client/Client.js +1 -1
  78. package/dist/api/resources/embed/resources/tasks/client/Client.js +4 -4
  79. package/dist/api/resources/embed/resources/v2/client/Client.js +1 -1
  80. package/dist/api/resources/embed/resources/v2/resources/tasks/client/Client.js +3 -3
  81. package/dist/api/resources/entityCollections/client/Client.js +5 -5
  82. package/dist/api/resources/entityCollections/resources/entities/client/Client.js +9 -9
  83. package/dist/api/resources/indexes/client/Client.js +5 -5
  84. package/dist/api/resources/indexes/resources/indexedAssets/client/Client.js +6 -6
  85. package/dist/api/resources/indexes/resources/indexedAssets/client/requests/IndexedAssetsCreateRequest.d.ts +3 -0
  86. package/dist/api/resources/indexes/resources/videos/client/Client.js +4 -4
  87. package/dist/api/resources/indexes/resources/videos/types/VideosRetrieveResponse.d.ts +4 -2
  88. package/dist/api/resources/multipartUpload/client/Client.js +5 -5
  89. package/dist/api/resources/multipartUpload/client/requests/CreateAssetUploadRequest.d.ts +2 -0
  90. package/dist/api/resources/search/client/Client.js +2 -2
  91. package/dist/api/resources/tasks/client/Client.d.ts +0 -3
  92. package/dist/api/resources/tasks/client/Client.js +4 -9
  93. package/dist/api/resources/tasks/client/requests/TasksCreateRequest.d.ts +1 -1
  94. package/dist/api/resources/tasks/index.d.ts +0 -1
  95. package/dist/api/resources/tasks/index.js +0 -1
  96. package/dist/api/types/AnalyzeMaxTokens.d.ts +1 -1
  97. package/dist/api/types/AnalyzePromptV2.d.ts +1 -1
  98. package/dist/api/types/AnalyzeRequestModelName.d.ts +1 -1
  99. package/dist/api/types/AnalyzeStreamRequestModelName.d.ts +1 -1
  100. package/dist/api/types/AnalyzeTaskError.d.ts +16 -2
  101. package/dist/api/types/AnalyzeTaskResponse.d.ts +8 -1
  102. package/dist/api/types/AnalyzeTaskResponseRequestParams.d.ts +1 -1
  103. package/dist/api/types/AnalyzeTaskResultUsage.d.ts +1 -1
  104. package/dist/api/types/AnalyzeTextPrompt.d.ts +1 -5
  105. package/dist/api/types/AnalyzeTimeRange.d.ts +10 -2
  106. package/dist/api/types/Asset.d.ts +2 -0
  107. package/dist/api/types/AsyncResponseFormat.d.ts +53 -6
  108. package/dist/api/types/AsyncResponseFormatSegmentTimeFormat.d.ts +20 -0
  109. package/dist/api/types/AsyncResponseFormatSegmentTimeFormat.js +11 -0
  110. package/dist/api/types/FinishReason.d.ts +3 -3
  111. package/dist/api/types/IndexedAssetDetailed.d.ts +2 -2
  112. package/dist/api/types/NonStreamAnalyzeResponse.d.ts +2 -0
  113. package/dist/api/types/SegmentDefinition.d.ts +1 -0
  114. package/dist/api/types/SegmentField.d.ts +29 -3
  115. package/dist/api/types/SegmentFieldFormat.d.ts +24 -0
  116. package/dist/api/types/SegmentFieldFormat.js +11 -0
  117. package/dist/api/types/SegmentFieldItems.d.ts +1 -1
  118. package/dist/api/types/SegmentFieldType.d.ts +4 -1
  119. package/dist/api/types/SegmentFieldType.js +1 -0
  120. package/dist/api/types/StreamEndResponse.d.ts +2 -0
  121. package/dist/api/types/SyncResponseFormat.d.ts +48 -4
  122. package/dist/api/types/TokenUsage.d.ts +1 -1
  123. package/dist/api/types/UserMetadata.d.ts +3 -12
  124. package/dist/api/types/VideoVector.d.ts +2 -0
  125. package/dist/api/types/index.d.ts +2 -5
  126. package/dist/api/types/index.js +2 -5
  127. package/dist/serialization/resources/assets/client/index.d.ts +1 -0
  128. package/dist/{api/resources/tasks/resources/transfers → serialization/resources/assets/client}/index.js +1 -1
  129. package/dist/serialization/resources/assets/client/requests/AssetsReplaceUserMetadataRequest.d.ts +13 -0
  130. package/dist/serialization/resources/assets/client/requests/AssetsReplaceUserMetadataRequest.js +44 -0
  131. package/dist/serialization/resources/assets/client/requests/AssetsUpdateUserMetadataRequest.d.ts +13 -0
  132. package/{serialization/types/VideoItem.js → dist/serialization/resources/assets/client/requests/AssetsUpdateUserMetadataRequest.js} +5 -6
  133. package/dist/serialization/resources/assets/client/requests/index.d.ts +2 -0
  134. package/dist/serialization/resources/assets/client/requests/index.js +7 -0
  135. package/dist/serialization/resources/assets/index.d.ts +1 -0
  136. package/dist/serialization/resources/assets/index.js +1 -0
  137. package/dist/serialization/resources/index.d.ts +1 -0
  138. package/dist/serialization/resources/index.js +1 -0
  139. package/dist/serialization/resources/indexes/resources/indexedAssets/client/requests/IndexedAssetsCreateRequest.d.ts +2 -0
  140. package/dist/serialization/resources/indexes/resources/indexedAssets/client/requests/IndexedAssetsCreateRequest.js +2 -0
  141. package/dist/serialization/resources/indexes/resources/videos/types/VideosRetrieveResponse.d.ts +3 -1
  142. package/dist/serialization/resources/indexes/resources/videos/types/VideosRetrieveResponse.js +3 -1
  143. package/dist/serialization/resources/multipartUpload/client/requests/CreateAssetUploadRequest.d.ts +2 -0
  144. package/dist/serialization/resources/multipartUpload/client/requests/CreateAssetUploadRequest.js +2 -0
  145. package/dist/serialization/types/Asset.d.ts +2 -0
  146. package/dist/serialization/types/Asset.js +2 -0
  147. package/dist/serialization/types/AsyncResponseFormat.d.ts +2 -0
  148. package/dist/serialization/types/AsyncResponseFormat.js +2 -0
  149. package/dist/serialization/types/AsyncResponseFormatSegmentTimeFormat.d.ts +10 -0
  150. package/dist/serialization/types/{ImportLogFailedFilesItem.js → AsyncResponseFormatSegmentTimeFormat.js} +2 -5
  151. package/dist/serialization/types/IndexedAssetDetailed.d.ts +2 -1
  152. package/dist/serialization/types/IndexedAssetDetailed.js +2 -1
  153. package/dist/serialization/types/NonStreamAnalyzeResponse.d.ts +2 -0
  154. package/dist/serialization/types/NonStreamAnalyzeResponse.js +2 -0
  155. package/dist/serialization/types/SegmentField.d.ts +2 -0
  156. package/dist/serialization/types/SegmentField.js +2 -0
  157. package/dist/serialization/types/SegmentFieldFormat.d.ts +10 -0
  158. package/{serialization/types/ImportLogFailedFilesItem.js → dist/serialization/types/SegmentFieldFormat.js} +2 -5
  159. package/dist/serialization/types/SegmentFieldType.d.ts +1 -1
  160. package/dist/serialization/types/SegmentFieldType.js +1 -1
  161. package/dist/serialization/types/StreamEndResponse.d.ts +2 -0
  162. package/dist/serialization/types/StreamEndResponse.js +2 -0
  163. package/dist/serialization/types/VideoVector.d.ts +1 -0
  164. package/dist/serialization/types/VideoVector.js +1 -0
  165. package/dist/serialization/types/index.d.ts +2 -5
  166. package/dist/serialization/types/index.js +2 -5
  167. package/dist/version.d.ts +1 -1
  168. package/dist/version.js +1 -1
  169. package/dist/wrapper/resources/EmbedTasksWrapper.js +13 -8
  170. package/dist/wrapper/resources/TasksWrapper.js +13 -8
  171. package/package.json +1 -1
  172. package/reference.md +234 -146
  173. package/serialization/resources/assets/client/index.d.ts +1 -0
  174. package/{api/resources/tasks/resources/transfers → serialization/resources/assets/client}/index.js +1 -1
  175. package/serialization/resources/assets/client/requests/AssetsReplaceUserMetadataRequest.d.ts +13 -0
  176. package/serialization/resources/assets/client/requests/AssetsReplaceUserMetadataRequest.js +44 -0
  177. package/serialization/resources/assets/client/requests/AssetsUpdateUserMetadataRequest.d.ts +13 -0
  178. package/serialization/resources/assets/client/requests/AssetsUpdateUserMetadataRequest.js +44 -0
  179. package/serialization/resources/assets/client/requests/index.d.ts +2 -0
  180. package/serialization/resources/assets/client/requests/index.js +7 -0
  181. package/serialization/resources/assets/index.d.ts +1 -0
  182. package/serialization/resources/assets/index.js +1 -0
  183. package/serialization/resources/index.d.ts +1 -0
  184. package/serialization/resources/index.js +1 -0
  185. package/serialization/resources/indexes/resources/indexedAssets/client/requests/IndexedAssetsCreateRequest.d.ts +2 -0
  186. package/serialization/resources/indexes/resources/indexedAssets/client/requests/IndexedAssetsCreateRequest.js +2 -0
  187. package/serialization/resources/indexes/resources/videos/types/VideosRetrieveResponse.d.ts +3 -1
  188. package/serialization/resources/indexes/resources/videos/types/VideosRetrieveResponse.js +3 -1
  189. package/serialization/resources/multipartUpload/client/requests/CreateAssetUploadRequest.d.ts +2 -0
  190. package/serialization/resources/multipartUpload/client/requests/CreateAssetUploadRequest.js +2 -0
  191. package/serialization/types/Asset.d.ts +2 -0
  192. package/serialization/types/Asset.js +2 -0
  193. package/serialization/types/AsyncResponseFormat.d.ts +2 -0
  194. package/serialization/types/AsyncResponseFormat.js +2 -0
  195. package/serialization/types/AsyncResponseFormatSegmentTimeFormat.d.ts +10 -0
  196. package/{dist/serialization/types/VideoItem.js → serialization/types/AsyncResponseFormatSegmentTimeFormat.js} +2 -6
  197. package/serialization/types/IndexedAssetDetailed.d.ts +2 -1
  198. package/serialization/types/IndexedAssetDetailed.js +2 -1
  199. package/serialization/types/NonStreamAnalyzeResponse.d.ts +2 -0
  200. package/serialization/types/NonStreamAnalyzeResponse.js +2 -0
  201. package/serialization/types/SegmentField.d.ts +2 -0
  202. package/serialization/types/SegmentField.js +2 -0
  203. package/serialization/types/SegmentFieldFormat.d.ts +10 -0
  204. package/{api/resources/tasks/resources/index.js → serialization/types/SegmentFieldFormat.js} +6 -2
  205. package/serialization/types/SegmentFieldType.d.ts +1 -1
  206. package/serialization/types/SegmentFieldType.js +1 -1
  207. package/serialization/types/StreamEndResponse.d.ts +2 -0
  208. package/serialization/types/StreamEndResponse.js +2 -0
  209. package/serialization/types/VideoVector.d.ts +1 -0
  210. package/serialization/types/VideoVector.js +1 -0
  211. package/serialization/types/index.d.ts +2 -5
  212. package/serialization/types/index.js +2 -5
  213. package/version.d.ts +1 -1
  214. package/version.js +1 -1
  215. package/wrapper/resources/EmbedTasksWrapper.js +13 -8
  216. package/wrapper/resources/TasksWrapper.js +13 -8
  217. package/api/resources/tasks/resources/index.d.ts +0 -1
  218. package/api/resources/tasks/resources/transfers/client/Client.d.ts +0 -57
  219. package/api/resources/tasks/resources/transfers/client/Client.js +0 -217
  220. package/api/resources/tasks/resources/transfers/client/index.d.ts +0 -1
  221. package/api/resources/tasks/resources/transfers/client/index.js +0 -2
  222. package/api/resources/tasks/resources/transfers/index.d.ts +0 -1
  223. package/api/types/ImportLog.d.ts +0 -21
  224. package/api/types/ImportLogFailedFilesItem.d.ts +0 -9
  225. package/api/types/ImportLogVideoStatus.d.ts +0 -14
  226. package/api/types/VideoItem.d.ts +0 -14
  227. package/api/types/VideoItemFailed.d.ts +0 -14
  228. package/api/types/VideoItemFailed.js +0 -5
  229. package/dist/api/resources/tasks/resources/index.d.ts +0 -1
  230. package/dist/api/resources/tasks/resources/index.js +0 -37
  231. package/dist/api/resources/tasks/resources/transfers/client/Client.d.ts +0 -57
  232. package/dist/api/resources/tasks/resources/transfers/client/Client.js +0 -217
  233. package/dist/api/resources/tasks/resources/transfers/client/index.d.ts +0 -1
  234. package/dist/api/resources/tasks/resources/transfers/client/index.js +0 -2
  235. package/dist/api/resources/tasks/resources/transfers/index.d.ts +0 -1
  236. package/dist/api/types/ImportLog.d.ts +0 -21
  237. package/dist/api/types/ImportLog.js +0 -5
  238. package/dist/api/types/ImportLogFailedFilesItem.d.ts +0 -9
  239. package/dist/api/types/ImportLogFailedFilesItem.js +0 -5
  240. package/dist/api/types/ImportLogVideoStatus.d.ts +0 -14
  241. package/dist/api/types/ImportLogVideoStatus.js +0 -5
  242. package/dist/api/types/VideoItem.d.ts +0 -14
  243. package/dist/api/types/VideoItem.js +0 -5
  244. package/dist/api/types/VideoItemFailed.d.ts +0 -14
  245. package/dist/api/types/VideoItemFailed.js +0 -5
  246. package/dist/serialization/types/ImportLog.d.ts +0 -19
  247. package/dist/serialization/types/ImportLog.js +0 -50
  248. package/dist/serialization/types/ImportLogFailedFilesItem.d.ts +0 -13
  249. package/dist/serialization/types/ImportLogVideoStatus.d.ts +0 -17
  250. package/dist/serialization/types/ImportLogVideoStatus.js +0 -48
  251. package/dist/serialization/types/VideoItem.d.ts +0 -14
  252. package/dist/serialization/types/VideoItemFailed.d.ts +0 -14
  253. package/dist/serialization/types/VideoItemFailed.js +0 -45
  254. package/serialization/types/ImportLog.d.ts +0 -19
  255. package/serialization/types/ImportLog.js +0 -50
  256. package/serialization/types/ImportLogFailedFilesItem.d.ts +0 -13
  257. package/serialization/types/ImportLogVideoStatus.d.ts +0 -17
  258. package/serialization/types/ImportLogVideoStatus.js +0 -48
  259. package/serialization/types/VideoItem.d.ts +0 -14
  260. package/serialization/types/VideoItemFailed.d.ts +0 -14
  261. package/serialization/types/VideoItemFailed.js +0 -45
  262. /package/api/{types/ImportLog.js → resources/assets/client/requests/AssetsReplaceUserMetadataRequest.js} +0 -0
  263. /package/api/{types/ImportLogFailedFilesItem.js → resources/assets/client/requests/AssetsUpdateUserMetadataRequest.js} +0 -0
  264. /package/{api/types/ImportLogVideoStatus.js → dist/api/resources/assets/client/requests/AssetsReplaceUserMetadataRequest.js} +0 -0
  265. /package/{api/types/VideoItem.js → dist/api/resources/assets/client/requests/AssetsUpdateUserMetadataRequest.js} +0 -0
@@ -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.4", "User-Agent": "twelvelabs-js/1.2.4", "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.6", "User-Agent": "twelvelabs-js/1.2.6", "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",
@@ -230,11 +230,14 @@ class Assets {
230
230
  if (request.enableThumbnail != null) {
231
231
  _request.append("enable_thumbnail", request.enableThumbnail.toString());
232
232
  }
233
+ if (request.userMetadata != null) {
234
+ _request.append("user_metadata", request.userMetadata);
235
+ }
233
236
  const _maybeEncodedRequest = yield _request.getRequest();
234
237
  const _response = yield core.fetcher({
235
238
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, "assets"),
236
239
  method: "POST",
237
- headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.4", "User-Agent": "twelvelabs-js/1.2.4", "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),
240
+ headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.6", "User-Agent": "twelvelabs-js/1.2.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
238
241
  requestType: "file",
239
242
  duplex: _maybeEncodedRequest.duplex,
240
243
  body: _maybeEncodedRequest.body,
@@ -302,7 +305,7 @@ class Assets {
302
305
  const _response = yield core.fetcher({
303
306
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `assets/${encodeURIComponent(assetId)}`),
304
307
  method: "GET",
305
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.4", "User-Agent": "twelvelabs-js/1.2.4", "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),
308
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.6", "User-Agent": "twelvelabs-js/1.2.6", "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),
306
309
  contentType: "application/json",
307
310
  requestType: "json",
308
311
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,
@@ -384,7 +387,7 @@ class Assets {
384
387
  const _response = yield core.fetcher({
385
388
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `assets/${encodeURIComponent(assetId)}`),
386
389
  method: "DELETE",
387
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.4", "User-Agent": "twelvelabs-js/1.2.4", "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),
390
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.6", "User-Agent": "twelvelabs-js/1.2.6", "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
391
  contentType: "application/json",
389
392
  queryParameters: _queryParams,
390
393
  requestType: "json",
@@ -426,6 +429,225 @@ class Assets {
426
429
  }
427
430
  });
428
431
  }
432
+ /**
433
+ * This method replaces the entire user-defined metadata of the specified asset. Unlike the [`PATCH`](/v1.3/api-reference/upload-content/direct-uploads/update-user-metadata) method, which merges your changes with the existing metadata, this method overwrites the stored value in full:
434
+ * - A key with a value creates or replaces that key.
435
+ * - A key set to an empty string (`""`) or `null` is ignored.
436
+ * - A key you omit from the request body is removed.
437
+ *
438
+ * To clear all metadata, send an empty object (`{}`) in the `user_metadata` field. This produces the same result as the [`DELETE`](/v1.3/api-reference/upload-content/direct-uploads/delete-user-metadata) method.
439
+ *
440
+ * @param {string} assetId - The unique identifier of the asset whose user-defined metadata to replace.
441
+ * @param {TwelvelabsApi.AssetsReplaceUserMetadataRequest} request
442
+ * @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
443
+ *
444
+ * @throws {@link TwelvelabsApi.BadRequestError}
445
+ * @throws {@link TwelvelabsApi.NotFoundError}
446
+ *
447
+ * @example
448
+ * await client.assets.replaceUserMetadata("6298d673f1090f1100476d4c", {
449
+ * userMetadata: {
450
+ * "category": "recentlyAdded",
451
+ * "batchNumber": 5,
452
+ * "rating": 9.3,
453
+ * "needsReview": true
454
+ * }
455
+ * })
456
+ */
457
+ replaceUserMetadata(assetId, request, requestOptions) {
458
+ return core.HttpResponsePromise.fromPromise(this.__replaceUserMetadata(assetId, request, requestOptions));
459
+ }
460
+ __replaceUserMetadata(assetId, request, requestOptions) {
461
+ return __awaiter(this, void 0, void 0, function* () {
462
+ var _a, _b;
463
+ const _response = yield core.fetcher({
464
+ url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `assets/${encodeURIComponent(assetId)}/user-metadata`),
465
+ method: "PUT",
466
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.6", "User-Agent": "twelvelabs-js/1.2.6", "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
+ contentType: "application/json",
468
+ requestType: "json",
469
+ body: serializers.AssetsReplaceUserMetadataRequest.jsonOrThrow(request, {
470
+ unrecognizedObjectKeys: "strip",
471
+ }),
472
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,
473
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
474
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
475
+ });
476
+ if (_response.ok) {
477
+ return { data: undefined, rawResponse: _response.rawResponse };
478
+ }
479
+ if (_response.error.reason === "status-code") {
480
+ switch (_response.error.statusCode) {
481
+ case 400:
482
+ throw new TwelvelabsApi.BadRequestError(_response.error.body, _response.rawResponse);
483
+ case 404:
484
+ throw new TwelvelabsApi.NotFoundError(_response.error.body, _response.rawResponse);
485
+ default:
486
+ throw new errors.TwelvelabsApiError({
487
+ statusCode: _response.error.statusCode,
488
+ body: _response.error.body,
489
+ rawResponse: _response.rawResponse,
490
+ });
491
+ }
492
+ }
493
+ switch (_response.error.reason) {
494
+ case "non-json":
495
+ throw new errors.TwelvelabsApiError({
496
+ statusCode: _response.error.statusCode,
497
+ body: _response.error.rawBody,
498
+ rawResponse: _response.rawResponse,
499
+ });
500
+ case "timeout":
501
+ throw new errors.TwelvelabsApiTimeoutError("Timeout exceeded when calling PUT /assets/{asset_id}/user-metadata.");
502
+ case "unknown":
503
+ throw new errors.TwelvelabsApiError({
504
+ message: _response.error.errorMessage,
505
+ rawResponse: _response.rawResponse,
506
+ });
507
+ }
508
+ });
509
+ }
510
+ /**
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.
512
+ *
513
+ * This action cannot be undone.
514
+ *
515
+ * @param {string} assetId - The unique identifier of the asset whose user-defined metadata to delete.
516
+ * @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
517
+ *
518
+ * @throws {@link TwelvelabsApi.BadRequestError}
519
+ * @throws {@link TwelvelabsApi.NotFoundError}
520
+ *
521
+ * @example
522
+ * await client.assets.deleteUserMetadata("6298d673f1090f1100476d4c")
523
+ */
524
+ deleteUserMetadata(assetId, requestOptions) {
525
+ return core.HttpResponsePromise.fromPromise(this.__deleteUserMetadata(assetId, requestOptions));
526
+ }
527
+ __deleteUserMetadata(assetId, requestOptions) {
528
+ return __awaiter(this, void 0, void 0, function* () {
529
+ var _a, _b;
530
+ const _response = yield core.fetcher({
531
+ url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `assets/${encodeURIComponent(assetId)}/user-metadata`),
532
+ method: "DELETE",
533
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.6", "User-Agent": "twelvelabs-js/1.2.6", "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
+ contentType: "application/json",
535
+ requestType: "json",
536
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,
537
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
538
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
539
+ });
540
+ if (_response.ok) {
541
+ return { data: undefined, rawResponse: _response.rawResponse };
542
+ }
543
+ if (_response.error.reason === "status-code") {
544
+ switch (_response.error.statusCode) {
545
+ case 400:
546
+ throw new TwelvelabsApi.BadRequestError(_response.error.body, _response.rawResponse);
547
+ case 404:
548
+ throw new TwelvelabsApi.NotFoundError(_response.error.body, _response.rawResponse);
549
+ default:
550
+ throw new errors.TwelvelabsApiError({
551
+ statusCode: _response.error.statusCode,
552
+ body: _response.error.body,
553
+ rawResponse: _response.rawResponse,
554
+ });
555
+ }
556
+ }
557
+ switch (_response.error.reason) {
558
+ case "non-json":
559
+ throw new errors.TwelvelabsApiError({
560
+ statusCode: _response.error.statusCode,
561
+ body: _response.error.rawBody,
562
+ rawResponse: _response.rawResponse,
563
+ });
564
+ case "timeout":
565
+ throw new errors.TwelvelabsApiTimeoutError("Timeout exceeded when calling DELETE /assets/{asset_id}/user-metadata.");
566
+ case "unknown":
567
+ throw new errors.TwelvelabsApiError({
568
+ message: _response.error.errorMessage,
569
+ rawResponse: _response.rawResponse,
570
+ });
571
+ }
572
+ });
573
+ }
574
+ /**
575
+ * This method updates the user-defined metadata of the specified asset. The platform merges your changes with the existing metadata:
576
+ * - A key with a value creates or replaces that key.
577
+ * - A key set to `null` deletes that key.
578
+ * - A key set to an empty string (`""`) is ignored.
579
+ * - A key you omit from the request keeps its current value.
580
+ *
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.
582
+ *
583
+ * @param {string} assetId - The unique identifier of the asset whose user-defined metadata to update.
584
+ * @param {TwelvelabsApi.AssetsUpdateUserMetadataRequest} request
585
+ * @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
586
+ *
587
+ * @throws {@link TwelvelabsApi.BadRequestError}
588
+ * @throws {@link TwelvelabsApi.NotFoundError}
589
+ *
590
+ * @example
591
+ * await client.assets.updateUserMetadata("6298d673f1090f1100476d4c", {
592
+ * userMetadata: {
593
+ * "category": "recentlyAdded",
594
+ * "batchNumber": 5,
595
+ * "rating": 9.3,
596
+ * "needsReview": true
597
+ * }
598
+ * })
599
+ */
600
+ updateUserMetadata(assetId, request, requestOptions) {
601
+ return core.HttpResponsePromise.fromPromise(this.__updateUserMetadata(assetId, request, requestOptions));
602
+ }
603
+ __updateUserMetadata(assetId, request, requestOptions) {
604
+ return __awaiter(this, void 0, void 0, function* () {
605
+ var _a, _b;
606
+ const _response = yield core.fetcher({
607
+ url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `assets/${encodeURIComponent(assetId)}/user-metadata`),
608
+ method: "PATCH",
609
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.6", "User-Agent": "twelvelabs-js/1.2.6", "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
+ contentType: "application/json",
611
+ requestType: "json",
612
+ body: serializers.AssetsUpdateUserMetadataRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
613
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,
614
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
615
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
616
+ });
617
+ if (_response.ok) {
618
+ return { data: undefined, rawResponse: _response.rawResponse };
619
+ }
620
+ if (_response.error.reason === "status-code") {
621
+ switch (_response.error.statusCode) {
622
+ case 400:
623
+ throw new TwelvelabsApi.BadRequestError(_response.error.body, _response.rawResponse);
624
+ case 404:
625
+ throw new TwelvelabsApi.NotFoundError(_response.error.body, _response.rawResponse);
626
+ default:
627
+ throw new errors.TwelvelabsApiError({
628
+ statusCode: _response.error.statusCode,
629
+ body: _response.error.body,
630
+ rawResponse: _response.rawResponse,
631
+ });
632
+ }
633
+ }
634
+ switch (_response.error.reason) {
635
+ case "non-json":
636
+ throw new errors.TwelvelabsApiError({
637
+ statusCode: _response.error.statusCode,
638
+ body: _response.error.rawBody,
639
+ rawResponse: _response.rawResponse,
640
+ });
641
+ case "timeout":
642
+ throw new errors.TwelvelabsApiTimeoutError("Timeout exceeded when calling PATCH /assets/{asset_id}/user-metadata.");
643
+ case "unknown":
644
+ throw new errors.TwelvelabsApiError({
645
+ message: _response.error.errorMessage,
646
+ rawResponse: _response.rawResponse,
647
+ });
648
+ }
649
+ });
650
+ }
429
651
  _getCustomAuthorizationHeaders() {
430
652
  return __awaiter(this, void 0, void 0, function* () {
431
653
  const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
@@ -33,4 +33,6 @@ export interface AssetsCreateRequest {
33
33
  * **Default**: `false`.
34
34
  */
35
35
  enableThumbnail?: boolean;
36
+ /** 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`. Send this value as a JSON-encoded string. */
37
+ userMetadata?: string;
36
38
  }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TwelvelabsApi from "../../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * userMetadata: {
9
+ * "category": "recentlyAdded",
10
+ * "batchNumber": 5,
11
+ * "rating": 9.3,
12
+ * "needsReview": true
13
+ * }
14
+ * }
15
+ */
16
+ export interface AssetsReplaceUserMetadataRequest {
17
+ userMetadata: TwelvelabsApi.UserMetadata;
18
+ }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TwelvelabsApi from "../../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * userMetadata: {
9
+ * "category": "recentlyAdded",
10
+ * "batchNumber": 5,
11
+ * "rating": 9.3,
12
+ * "needsReview": true
13
+ * }
14
+ * }
15
+ */
16
+ export interface AssetsUpdateUserMetadataRequest {
17
+ userMetadata: TwelvelabsApi.UserMetadata;
18
+ }
@@ -1,3 +1,5 @@
1
1
  export { type AssetsListRequest } from "./AssetsListRequest";
2
2
  export { type AssetsCreateRequest } from "./AssetsCreateRequest";
3
3
  export { type AssetsDeleteRequest } from "./AssetsDeleteRequest";
4
+ export { type AssetsReplaceUserMetadataRequest } from "./AssetsReplaceUserMetadataRequest";
5
+ export { type AssetsUpdateUserMetadataRequest } from "./AssetsUpdateUserMetadataRequest";
@@ -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.4", "User-Agent": "twelvelabs-js/1.2.4", "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.6", "User-Agent": "twelvelabs-js/1.2.6", "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.4", "User-Agent": "twelvelabs-js/1.2.4", "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.6", "User-Agent": "twelvelabs-js/1.2.6", "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.4", "User-Agent": "twelvelabs-js/1.2.4", "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.6", "User-Agent": "twelvelabs-js/1.2.6", "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.4", "User-Agent": "twelvelabs-js/1.2.4", "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.6", "User-Agent": "twelvelabs-js/1.2.6", "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.4", "User-Agent": "twelvelabs-js/1.2.4", "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.6", "User-Agent": "twelvelabs-js/1.2.6", "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.4", "User-Agent": "twelvelabs-js/1.2.4", "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.6", "User-Agent": "twelvelabs-js/1.2.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
289
289
  contentType: "application/json",
290
290
  requestType: "json",
291
291
  body: serializers.embed.CreateEmbeddingsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -105,7 +105,7 @@ class Tasks {
105
105
  const _response = yield core.fetcher({
106
106
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, "embed-v2/tasks"),
107
107
  method: "GET",
108
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.4", "User-Agent": "twelvelabs-js/1.2.4", "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.6", "User-Agent": "twelvelabs-js/1.2.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
109
109
  contentType: "application/json",
110
110
  queryParameters: _queryParams,
111
111
  requestType: "json",
@@ -271,7 +271,7 @@ class Tasks {
271
271
  const _response = yield core.fetcher({
272
272
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, "embed-v2/tasks"),
273
273
  method: "POST",
274
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.4", "User-Agent": "twelvelabs-js/1.2.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
274
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.6", "User-Agent": "twelvelabs-js/1.2.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
275
275
  contentType: "application/json",
276
276
  requestType: "json",
277
277
  body: serializers.embed.v2.CreateAsyncEmbeddingRequest.jsonOrThrow(request, {
@@ -354,7 +354,7 @@ class Tasks {
354
354
  const _response = yield core.fetcher({
355
355
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `embed-v2/tasks/${encodeURIComponent(taskId)}`),
356
356
  method: "GET",
357
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.4", "User-Agent": "twelvelabs-js/1.2.4", "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),
357
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.6", "User-Agent": "twelvelabs-js/1.2.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
358
358
  contentType: "application/json",
359
359
  requestType: "json",
360
360
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,
@@ -107,7 +107,7 @@ class EntityCollections {
107
107
  const _response = yield core.fetcher({
108
108
  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"),
109
109
  method: "GET",
110
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.4", "User-Agent": "twelvelabs-js/1.2.4", "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),
110
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.6", "User-Agent": "twelvelabs-js/1.2.6", "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
111
  contentType: "application/json",
112
112
  queryParameters: _queryParams,
113
113
  requestType: "json",
@@ -190,7 +190,7 @@ class EntityCollections {
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, "entity-collections"),
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.4", "User-Agent": "twelvelabs-js/1.2.4", "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.6", "User-Agent": "twelvelabs-js/1.2.6", "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.EntityCollectionsCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -258,7 +258,7 @@ class EntityCollections {
258
258
  const _response = yield core.fetcher({
259
259
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TwelvelabsApiEnvironment.Default, `entity-collections/${encodeURIComponent(entityCollectionId)}`),
260
260
  method: "GET",
261
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.4", "User-Agent": "twelvelabs-js/1.2.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
261
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.6", "User-Agent": "twelvelabs-js/1.2.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
262
262
  contentType: "application/json",
263
263
  requestType: "json",
264
264
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,
@@ -325,7 +325,7 @@ class EntityCollections {
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, `entity-collections/${encodeURIComponent(entityCollectionId)}`),
327
327
  method: "DELETE",
328
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.4", "User-Agent": "twelvelabs-js/1.2.4", "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.6", "User-Agent": "twelvelabs-js/1.2.6", "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,
@@ -385,7 +385,7 @@ class EntityCollections {
385
385
  const _response = yield core.fetcher({
386
386
  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)}`),
387
387
  method: "PATCH",
388
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.4", "User-Agent": "twelvelabs-js/1.2.4", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "twelvelabs-js", "X-Fern-SDK-Version": "1.2.6", "User-Agent": "twelvelabs-js/1.2.6", "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),
389
389
  contentType: "application/json",
390
390
  requestType: "json",
391
391
  body: serializers.EntityCollectionsUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -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.4", "User-Agent": "twelvelabs-js/1.2.4", "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.6", "User-Agent": "twelvelabs-js/1.2.6", "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.4", "User-Agent": "twelvelabs-js/1.2.4", "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.6", "User-Agent": "twelvelabs-js/1.2.6", "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.4", "User-Agent": "twelvelabs-js/1.2.4", "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.6", "User-Agent": "twelvelabs-js/1.2.6", "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.4", "User-Agent": "twelvelabs-js/1.2.4", "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.6", "User-Agent": "twelvelabs-js/1.2.6", "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.4", "User-Agent": "twelvelabs-js/1.2.4", "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.6", "User-Agent": "twelvelabs-js/1.2.6", "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.4", "User-Agent": "twelvelabs-js/1.2.4", "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.6", "User-Agent": "twelvelabs-js/1.2.6", "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.4", "User-Agent": "twelvelabs-js/1.2.4", "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.6", "User-Agent": "twelvelabs-js/1.2.6", "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.4", "User-Agent": "twelvelabs-js/1.2.4", "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.6", "User-Agent": "twelvelabs-js/1.2.6", "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.4", "User-Agent": "twelvelabs-js/1.2.4", "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.6", "User-Agent": "twelvelabs-js/1.2.6", "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, {