twelvelabs-js 1.2.4 → 1.2.5

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 (247) hide show
  1. package/Client.js +2 -2
  2. package/api/client/requests/AnalyzeRequest.d.ts +13 -5
  3. package/api/client/requests/AnalyzeStreamRequest.d.ts +13 -5
  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 +81 -9
  7. package/api/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestModelName.d.ts +1 -1
  8. package/api/resources/assets/client/Client.d.ts +44 -0
  9. package/api/resources/assets/client/Client.js +148 -4
  10. package/api/resources/assets/client/requests/AssetsCreateRequest.d.ts +2 -0
  11. package/api/resources/assets/client/requests/AssetsUpdateUserMetadataRequest.d.ts +18 -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/indexedAssets/client/requests/IndexedAssetsCreateRequest.d.ts +3 -0
  22. package/api/resources/indexes/resources/videos/client/Client.js +4 -4
  23. package/api/resources/indexes/resources/videos/types/VideosRetrieveResponse.d.ts +3 -1
  24. package/api/resources/multipartUpload/client/Client.js +5 -5
  25. package/api/resources/multipartUpload/client/requests/CreateAssetUploadRequest.d.ts +2 -0
  26. package/api/resources/search/client/Client.js +2 -2
  27. package/api/resources/tasks/client/Client.d.ts +0 -3
  28. package/api/resources/tasks/client/Client.js +4 -9
  29. package/api/resources/tasks/client/requests/TasksCreateRequest.d.ts +1 -1
  30. package/api/resources/tasks/index.d.ts +0 -1
  31. package/api/resources/tasks/index.js +0 -1
  32. package/api/types/AnalyzeMaxTokens.d.ts +1 -1
  33. package/api/types/AnalyzePromptV2.d.ts +1 -1
  34. package/api/types/AnalyzeRequestModelName.d.ts +1 -1
  35. package/api/types/AnalyzeStreamRequestModelName.d.ts +1 -1
  36. package/api/types/AnalyzeTaskError.d.ts +16 -2
  37. package/api/types/AnalyzeTaskResponse.d.ts +8 -1
  38. package/api/types/AnalyzeTaskResponseRequestParams.d.ts +1 -1
  39. package/api/types/AnalyzeTaskResultUsage.d.ts +1 -1
  40. package/api/types/AnalyzeTextPrompt.d.ts +1 -5
  41. package/api/types/Asset.d.ts +2 -0
  42. package/api/types/AsyncResponseFormat.d.ts +53 -6
  43. package/api/types/AsyncResponseFormatSegmentTimeFormat.d.ts +20 -0
  44. package/api/types/AsyncResponseFormatSegmentTimeFormat.js +11 -0
  45. package/api/types/FinishReason.d.ts +3 -3
  46. package/api/types/IndexedAssetDetailed.d.ts +1 -1
  47. package/api/types/NonStreamAnalyzeResponse.d.ts +2 -0
  48. package/api/types/SegmentDefinition.d.ts +1 -0
  49. package/api/types/SegmentField.d.ts +29 -3
  50. package/api/types/SegmentFieldFormat.d.ts +24 -0
  51. package/api/types/{VideoItem.js → SegmentFieldFormat.js} +6 -0
  52. package/api/types/SegmentFieldItems.d.ts +1 -1
  53. package/api/types/SegmentFieldType.d.ts +4 -1
  54. package/api/types/SegmentFieldType.js +1 -0
  55. package/api/types/StreamEndResponse.d.ts +2 -0
  56. package/api/types/SyncResponseFormat.d.ts +48 -4
  57. package/api/types/TokenUsage.d.ts +1 -1
  58. package/api/types/UserMetadata.d.ts +3 -12
  59. package/api/types/VideoVector.d.ts +2 -0
  60. package/api/types/index.d.ts +2 -5
  61. package/api/types/index.js +2 -5
  62. package/dist/Client.js +2 -2
  63. package/dist/api/client/requests/AnalyzeRequest.d.ts +13 -5
  64. package/dist/api/client/requests/AnalyzeStreamRequest.d.ts +13 -5
  65. package/dist/api/resources/analyzeAsync/resources/tasks/client/Client.d.ts +69 -0
  66. package/dist/api/resources/analyzeAsync/resources/tasks/client/Client.js +73 -4
  67. package/dist/api/resources/analyzeAsync/resources/tasks/client/requests/CreateAsyncAnalyzeRequest.d.ts +81 -9
  68. package/dist/api/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestModelName.d.ts +1 -1
  69. package/dist/api/resources/assets/client/Client.d.ts +44 -0
  70. package/dist/api/resources/assets/client/Client.js +148 -4
  71. package/dist/api/resources/assets/client/requests/AssetsCreateRequest.d.ts +2 -0
  72. package/dist/api/resources/assets/client/requests/AssetsUpdateUserMetadataRequest.d.ts +18 -0
  73. package/dist/api/resources/assets/client/requests/index.d.ts +1 -0
  74. package/dist/api/resources/embed/client/Client.js +1 -1
  75. package/dist/api/resources/embed/resources/tasks/client/Client.js +4 -4
  76. package/dist/api/resources/embed/resources/v2/client/Client.js +1 -1
  77. package/dist/api/resources/embed/resources/v2/resources/tasks/client/Client.js +3 -3
  78. package/dist/api/resources/entityCollections/client/Client.js +5 -5
  79. package/dist/api/resources/entityCollections/resources/entities/client/Client.js +9 -9
  80. package/dist/api/resources/indexes/client/Client.js +5 -5
  81. package/dist/api/resources/indexes/resources/indexedAssets/client/Client.js +6 -6
  82. package/dist/api/resources/indexes/resources/indexedAssets/client/requests/IndexedAssetsCreateRequest.d.ts +3 -0
  83. package/dist/api/resources/indexes/resources/videos/client/Client.js +4 -4
  84. package/dist/api/resources/indexes/resources/videos/types/VideosRetrieveResponse.d.ts +3 -1
  85. package/dist/api/resources/multipartUpload/client/Client.js +5 -5
  86. package/dist/api/resources/multipartUpload/client/requests/CreateAssetUploadRequest.d.ts +2 -0
  87. package/dist/api/resources/search/client/Client.js +2 -2
  88. package/dist/api/resources/tasks/client/Client.d.ts +0 -3
  89. package/dist/api/resources/tasks/client/Client.js +4 -9
  90. package/dist/api/resources/tasks/client/requests/TasksCreateRequest.d.ts +1 -1
  91. package/dist/api/resources/tasks/index.d.ts +0 -1
  92. package/dist/api/resources/tasks/index.js +0 -1
  93. package/dist/api/types/AnalyzeMaxTokens.d.ts +1 -1
  94. package/dist/api/types/AnalyzePromptV2.d.ts +1 -1
  95. package/dist/api/types/AnalyzeRequestModelName.d.ts +1 -1
  96. package/dist/api/types/AnalyzeStreamRequestModelName.d.ts +1 -1
  97. package/dist/api/types/AnalyzeTaskError.d.ts +16 -2
  98. package/dist/api/types/AnalyzeTaskResponse.d.ts +8 -1
  99. package/dist/api/types/AnalyzeTaskResponseRequestParams.d.ts +1 -1
  100. package/dist/api/types/AnalyzeTaskResultUsage.d.ts +1 -1
  101. package/dist/api/types/AnalyzeTextPrompt.d.ts +1 -5
  102. package/dist/api/types/Asset.d.ts +2 -0
  103. package/dist/api/types/AsyncResponseFormat.d.ts +53 -6
  104. package/dist/api/types/AsyncResponseFormatSegmentTimeFormat.d.ts +20 -0
  105. package/dist/api/types/AsyncResponseFormatSegmentTimeFormat.js +11 -0
  106. package/dist/api/types/FinishReason.d.ts +3 -3
  107. package/dist/api/types/IndexedAssetDetailed.d.ts +1 -1
  108. package/dist/api/types/NonStreamAnalyzeResponse.d.ts +2 -0
  109. package/dist/api/types/SegmentDefinition.d.ts +1 -0
  110. package/dist/api/types/SegmentField.d.ts +29 -3
  111. package/dist/api/types/SegmentFieldFormat.d.ts +24 -0
  112. package/{api/types/ImportLogVideoStatus.js → dist/api/types/SegmentFieldFormat.js} +6 -0
  113. package/dist/api/types/SegmentFieldItems.d.ts +1 -1
  114. package/dist/api/types/SegmentFieldType.d.ts +4 -1
  115. package/dist/api/types/SegmentFieldType.js +1 -0
  116. package/dist/api/types/StreamEndResponse.d.ts +2 -0
  117. package/dist/api/types/SyncResponseFormat.d.ts +48 -4
  118. package/dist/api/types/TokenUsage.d.ts +1 -1
  119. package/dist/api/types/UserMetadata.d.ts +3 -12
  120. package/dist/api/types/VideoVector.d.ts +2 -0
  121. package/dist/api/types/index.d.ts +2 -5
  122. package/dist/api/types/index.js +2 -5
  123. package/dist/serialization/resources/assets/client/index.d.ts +1 -0
  124. package/dist/{api/resources/tasks/resources/transfers → serialization/resources/assets/client}/index.js +1 -1
  125. package/dist/serialization/resources/assets/client/requests/AssetsUpdateUserMetadataRequest.d.ts +13 -0
  126. package/{serialization/types/VideoItem.js → dist/serialization/resources/assets/client/requests/AssetsUpdateUserMetadataRequest.js} +5 -6
  127. package/dist/serialization/resources/assets/client/requests/index.d.ts +1 -0
  128. package/dist/serialization/resources/assets/client/requests/index.js +5 -0
  129. package/dist/serialization/resources/assets/index.d.ts +1 -0
  130. package/dist/serialization/resources/assets/index.js +1 -0
  131. package/dist/serialization/resources/index.d.ts +1 -0
  132. package/dist/serialization/resources/index.js +1 -0
  133. package/dist/serialization/resources/indexes/resources/indexedAssets/client/requests/IndexedAssetsCreateRequest.d.ts +2 -0
  134. package/dist/serialization/resources/indexes/resources/indexedAssets/client/requests/IndexedAssetsCreateRequest.js +2 -0
  135. package/dist/serialization/resources/indexes/resources/videos/types/VideosRetrieveResponse.d.ts +1 -0
  136. package/dist/serialization/resources/indexes/resources/videos/types/VideosRetrieveResponse.js +1 -0
  137. package/dist/serialization/resources/multipartUpload/client/requests/CreateAssetUploadRequest.d.ts +2 -0
  138. package/dist/serialization/resources/multipartUpload/client/requests/CreateAssetUploadRequest.js +2 -0
  139. package/dist/serialization/types/Asset.d.ts +2 -0
  140. package/dist/serialization/types/Asset.js +2 -0
  141. package/dist/serialization/types/AsyncResponseFormat.d.ts +2 -0
  142. package/dist/serialization/types/AsyncResponseFormat.js +2 -0
  143. package/dist/serialization/types/AsyncResponseFormatSegmentTimeFormat.d.ts +10 -0
  144. package/dist/serialization/types/{ImportLogFailedFilesItem.js → AsyncResponseFormatSegmentTimeFormat.js} +2 -5
  145. package/dist/serialization/types/NonStreamAnalyzeResponse.d.ts +2 -0
  146. package/dist/serialization/types/NonStreamAnalyzeResponse.js +2 -0
  147. package/dist/serialization/types/SegmentField.d.ts +2 -0
  148. package/dist/serialization/types/SegmentField.js +2 -0
  149. package/dist/serialization/types/SegmentFieldFormat.d.ts +10 -0
  150. package/{serialization/types/ImportLogFailedFilesItem.js → dist/serialization/types/SegmentFieldFormat.js} +2 -5
  151. package/dist/serialization/types/SegmentFieldType.d.ts +1 -1
  152. package/dist/serialization/types/SegmentFieldType.js +1 -1
  153. package/dist/serialization/types/StreamEndResponse.d.ts +2 -0
  154. package/dist/serialization/types/StreamEndResponse.js +2 -0
  155. package/dist/serialization/types/VideoVector.d.ts +1 -0
  156. package/dist/serialization/types/VideoVector.js +1 -0
  157. package/dist/serialization/types/index.d.ts +2 -5
  158. package/dist/serialization/types/index.js +2 -5
  159. package/dist/version.d.ts +1 -1
  160. package/dist/version.js +1 -1
  161. package/package.json +1 -1
  162. package/reference.md +150 -146
  163. package/serialization/resources/assets/client/index.d.ts +1 -0
  164. package/{api/resources/tasks/resources/transfers → serialization/resources/assets/client}/index.js +1 -1
  165. package/serialization/resources/assets/client/requests/AssetsUpdateUserMetadataRequest.d.ts +13 -0
  166. package/serialization/resources/assets/client/requests/AssetsUpdateUserMetadataRequest.js +44 -0
  167. package/serialization/resources/assets/client/requests/index.d.ts +1 -0
  168. package/serialization/resources/assets/client/requests/index.js +5 -0
  169. package/serialization/resources/assets/index.d.ts +1 -0
  170. package/serialization/resources/assets/index.js +1 -0
  171. package/serialization/resources/index.d.ts +1 -0
  172. package/serialization/resources/index.js +1 -0
  173. package/serialization/resources/indexes/resources/indexedAssets/client/requests/IndexedAssetsCreateRequest.d.ts +2 -0
  174. package/serialization/resources/indexes/resources/indexedAssets/client/requests/IndexedAssetsCreateRequest.js +2 -0
  175. package/serialization/resources/indexes/resources/videos/types/VideosRetrieveResponse.d.ts +1 -0
  176. package/serialization/resources/indexes/resources/videos/types/VideosRetrieveResponse.js +1 -0
  177. package/serialization/resources/multipartUpload/client/requests/CreateAssetUploadRequest.d.ts +2 -0
  178. package/serialization/resources/multipartUpload/client/requests/CreateAssetUploadRequest.js +2 -0
  179. package/serialization/types/Asset.d.ts +2 -0
  180. package/serialization/types/Asset.js +2 -0
  181. package/serialization/types/AsyncResponseFormat.d.ts +2 -0
  182. package/serialization/types/AsyncResponseFormat.js +2 -0
  183. package/serialization/types/AsyncResponseFormatSegmentTimeFormat.d.ts +10 -0
  184. package/{dist/serialization/types/VideoItem.js → serialization/types/AsyncResponseFormatSegmentTimeFormat.js} +2 -6
  185. package/serialization/types/NonStreamAnalyzeResponse.d.ts +2 -0
  186. package/serialization/types/NonStreamAnalyzeResponse.js +2 -0
  187. package/serialization/types/SegmentField.d.ts +2 -0
  188. package/serialization/types/SegmentField.js +2 -0
  189. package/serialization/types/SegmentFieldFormat.d.ts +10 -0
  190. package/{api/resources/tasks/resources/index.js → serialization/types/SegmentFieldFormat.js} +6 -2
  191. package/serialization/types/SegmentFieldType.d.ts +1 -1
  192. package/serialization/types/SegmentFieldType.js +1 -1
  193. package/serialization/types/StreamEndResponse.d.ts +2 -0
  194. package/serialization/types/StreamEndResponse.js +2 -0
  195. package/serialization/types/VideoVector.d.ts +1 -0
  196. package/serialization/types/VideoVector.js +1 -0
  197. package/serialization/types/index.d.ts +2 -5
  198. package/serialization/types/index.js +2 -5
  199. package/version.d.ts +1 -1
  200. package/version.js +1 -1
  201. package/api/resources/tasks/resources/index.d.ts +0 -1
  202. package/api/resources/tasks/resources/transfers/client/Client.d.ts +0 -57
  203. package/api/resources/tasks/resources/transfers/client/Client.js +0 -217
  204. package/api/resources/tasks/resources/transfers/client/index.d.ts +0 -1
  205. package/api/resources/tasks/resources/transfers/client/index.js +0 -2
  206. package/api/resources/tasks/resources/transfers/index.d.ts +0 -1
  207. package/api/types/ImportLog.d.ts +0 -21
  208. package/api/types/ImportLogFailedFilesItem.d.ts +0 -9
  209. package/api/types/ImportLogVideoStatus.d.ts +0 -14
  210. package/api/types/VideoItem.d.ts +0 -14
  211. package/api/types/VideoItemFailed.d.ts +0 -14
  212. package/api/types/VideoItemFailed.js +0 -5
  213. package/dist/api/resources/tasks/resources/index.d.ts +0 -1
  214. package/dist/api/resources/tasks/resources/index.js +0 -37
  215. package/dist/api/resources/tasks/resources/transfers/client/Client.d.ts +0 -57
  216. package/dist/api/resources/tasks/resources/transfers/client/Client.js +0 -217
  217. package/dist/api/resources/tasks/resources/transfers/client/index.d.ts +0 -1
  218. package/dist/api/resources/tasks/resources/transfers/client/index.js +0 -2
  219. package/dist/api/resources/tasks/resources/transfers/index.d.ts +0 -1
  220. package/dist/api/types/ImportLog.d.ts +0 -21
  221. package/dist/api/types/ImportLog.js +0 -5
  222. package/dist/api/types/ImportLogFailedFilesItem.d.ts +0 -9
  223. package/dist/api/types/ImportLogFailedFilesItem.js +0 -5
  224. package/dist/api/types/ImportLogVideoStatus.d.ts +0 -14
  225. package/dist/api/types/ImportLogVideoStatus.js +0 -5
  226. package/dist/api/types/VideoItem.d.ts +0 -14
  227. package/dist/api/types/VideoItem.js +0 -5
  228. package/dist/api/types/VideoItemFailed.d.ts +0 -14
  229. package/dist/api/types/VideoItemFailed.js +0 -5
  230. package/dist/serialization/types/ImportLog.d.ts +0 -19
  231. package/dist/serialization/types/ImportLog.js +0 -50
  232. package/dist/serialization/types/ImportLogFailedFilesItem.d.ts +0 -13
  233. package/dist/serialization/types/ImportLogVideoStatus.d.ts +0 -17
  234. package/dist/serialization/types/ImportLogVideoStatus.js +0 -48
  235. package/dist/serialization/types/VideoItem.d.ts +0 -14
  236. package/dist/serialization/types/VideoItemFailed.d.ts +0 -14
  237. package/dist/serialization/types/VideoItemFailed.js +0 -45
  238. package/serialization/types/ImportLog.d.ts +0 -19
  239. package/serialization/types/ImportLog.js +0 -50
  240. package/serialization/types/ImportLogFailedFilesItem.d.ts +0 -13
  241. package/serialization/types/ImportLogVideoStatus.d.ts +0 -17
  242. package/serialization/types/ImportLogVideoStatus.js +0 -48
  243. package/serialization/types/VideoItem.d.ts +0 -14
  244. package/serialization/types/VideoItemFailed.d.ts +0 -14
  245. package/serialization/types/VideoItemFailed.js +0 -45
  246. /package/api/{types/ImportLog.js → resources/assets/client/requests/AssetsUpdateUserMetadataRequest.js} +0 -0
  247. /package/{api/types/ImportLogFailedFilesItem.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.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),
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.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),
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.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),
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.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),
388
391
  contentType: "application/json",
389
392
  queryParameters: _queryParams,
390
393
  requestType: "json",
@@ -426,6 +429,147 @@ class Assets {
426
429
  }
427
430
  });
428
431
  }
432
+ /**
433
+ * This method deletes the user-defined metadata of the specified asset.
434
+ *
435
+ * This action cannot be undone.
436
+ *
437
+ * @param {string} assetId - The unique identifier of the asset whose user-defined metadata to delete.
438
+ * @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
439
+ *
440
+ * @throws {@link TwelvelabsApi.BadRequestError}
441
+ * @throws {@link TwelvelabsApi.NotFoundError}
442
+ *
443
+ * @example
444
+ * await client.assets.deleteUserMetadata("6298d673f1090f1100476d4c")
445
+ */
446
+ deleteUserMetadata(assetId, requestOptions) {
447
+ return core.HttpResponsePromise.fromPromise(this.__deleteUserMetadata(assetId, requestOptions));
448
+ }
449
+ __deleteUserMetadata(assetId, requestOptions) {
450
+ return __awaiter(this, void 0, void 0, function* () {
451
+ var _a, _b;
452
+ const _response = yield core.fetcher({
453
+ 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`),
454
+ method: "DELETE",
455
+ 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),
456
+ contentType: "application/json",
457
+ requestType: "json",
458
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,
459
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
460
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
461
+ });
462
+ if (_response.ok) {
463
+ return { data: undefined, rawResponse: _response.rawResponse };
464
+ }
465
+ if (_response.error.reason === "status-code") {
466
+ switch (_response.error.statusCode) {
467
+ case 400:
468
+ throw new TwelvelabsApi.BadRequestError(_response.error.body, _response.rawResponse);
469
+ case 404:
470
+ throw new TwelvelabsApi.NotFoundError(_response.error.body, _response.rawResponse);
471
+ default:
472
+ throw new errors.TwelvelabsApiError({
473
+ statusCode: _response.error.statusCode,
474
+ body: _response.error.body,
475
+ rawResponse: _response.rawResponse,
476
+ });
477
+ }
478
+ }
479
+ switch (_response.error.reason) {
480
+ case "non-json":
481
+ throw new errors.TwelvelabsApiError({
482
+ statusCode: _response.error.statusCode,
483
+ body: _response.error.rawBody,
484
+ rawResponse: _response.rawResponse,
485
+ });
486
+ case "timeout":
487
+ throw new errors.TwelvelabsApiTimeoutError("Timeout exceeded when calling DELETE /assets/{asset_id}/user-metadata.");
488
+ case "unknown":
489
+ throw new errors.TwelvelabsApiError({
490
+ message: _response.error.errorMessage,
491
+ rawResponse: _response.rawResponse,
492
+ });
493
+ }
494
+ });
495
+ }
496
+ /**
497
+ * This method updates the user-defined metadata of the specified asset. The platform merges your changes with the existing metadata:
498
+ * - A key with a value creates or replaces that key.
499
+ * - A key set to `null` deletes that key.
500
+ * - A key set to an empty string (`""`) is ignored.
501
+ * - A key you omit from the request keeps its current value.
502
+ *
503
+ * To replace all metadata, first delete it using [`DELETE`](/v1.3/api-reference/upload-content/direct-uploads/delete-asset-user-metadata) method of the `/assets/{asset_id}/user-metadata` endpoint, then use this method to set the new values.
504
+ *
505
+ * @param {string} assetId - The unique identifier of the asset whose user-defined metadata to update.
506
+ * @param {TwelvelabsApi.AssetsUpdateUserMetadataRequest} request
507
+ * @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
508
+ *
509
+ * @throws {@link TwelvelabsApi.BadRequestError}
510
+ * @throws {@link TwelvelabsApi.NotFoundError}
511
+ *
512
+ * @example
513
+ * await client.assets.updateUserMetadata("6298d673f1090f1100476d4c", {
514
+ * userMetadata: {
515
+ * "category": "recentlyAdded",
516
+ * "batchNumber": 5,
517
+ * "rating": 9.3,
518
+ * "needsReview": true
519
+ * }
520
+ * })
521
+ */
522
+ updateUserMetadata(assetId, request, requestOptions) {
523
+ return core.HttpResponsePromise.fromPromise(this.__updateUserMetadata(assetId, request, requestOptions));
524
+ }
525
+ __updateUserMetadata(assetId, request, requestOptions) {
526
+ return __awaiter(this, void 0, void 0, function* () {
527
+ var _a, _b;
528
+ const _response = yield core.fetcher({
529
+ 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`),
530
+ method: "PATCH",
531
+ 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),
532
+ contentType: "application/json",
533
+ requestType: "json",
534
+ body: serializers.AssetsUpdateUserMetadataRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
535
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 600000,
536
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
537
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
538
+ });
539
+ if (_response.ok) {
540
+ return { data: undefined, rawResponse: _response.rawResponse };
541
+ }
542
+ if (_response.error.reason === "status-code") {
543
+ switch (_response.error.statusCode) {
544
+ case 400:
545
+ throw new TwelvelabsApi.BadRequestError(_response.error.body, _response.rawResponse);
546
+ case 404:
547
+ throw new TwelvelabsApi.NotFoundError(_response.error.body, _response.rawResponse);
548
+ default:
549
+ throw new errors.TwelvelabsApiError({
550
+ statusCode: _response.error.statusCode,
551
+ body: _response.error.body,
552
+ rawResponse: _response.rawResponse,
553
+ });
554
+ }
555
+ }
556
+ switch (_response.error.reason) {
557
+ case "non-json":
558
+ throw new errors.TwelvelabsApiError({
559
+ statusCode: _response.error.statusCode,
560
+ body: _response.error.rawBody,
561
+ rawResponse: _response.rawResponse,
562
+ });
563
+ case "timeout":
564
+ throw new errors.TwelvelabsApiTimeoutError("Timeout exceeded when calling PATCH /assets/{asset_id}/user-metadata.");
565
+ case "unknown":
566
+ throw new errors.TwelvelabsApiError({
567
+ message: _response.error.errorMessage,
568
+ rawResponse: _response.rawResponse,
569
+ });
570
+ }
571
+ });
572
+ }
429
573
  _getCustomAuthorizationHeaders() {
430
574
  return __awaiter(this, void 0, void 0, function* () {
431
575
  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 AssetsUpdateUserMetadataRequest {
17
+ userMetadata: TwelvelabsApi.UserMetadata;
18
+ }
@@ -1,3 +1,4 @@
1
1
  export { type AssetsListRequest } from "./AssetsListRequest";
2
2
  export { type AssetsCreateRequest } from "./AssetsCreateRequest";
3
3
  export { type AssetsDeleteRequest } from "./AssetsDeleteRequest";
4
+ 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.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),
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.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),
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.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),
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.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),
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.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),
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.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),
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.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),
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.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),
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.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
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.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),
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.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),
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.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),
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.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),
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.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),
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.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
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.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),
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.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),
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.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),
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.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),
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.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),
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.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),
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.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),
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.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),
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.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),
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),
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.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),
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),
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.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.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),
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.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),
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),
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.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),
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),
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.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),
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),
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.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),
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),
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.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),
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),
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.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),
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),
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.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),
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),
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.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),
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),
591
591
  contentType: "application/json",
592
592
  queryParameters: _queryParams,
593
593
  requestType: "json",