@imagekit/nodejs 7.0.1

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 (622) hide show
  1. package/CHANGELOG.md +102 -0
  2. package/LICENSE +201 -0
  3. package/README.md +633 -0
  4. package/api-promise.d.mts +2 -0
  5. package/api-promise.d.mts.map +1 -0
  6. package/api-promise.d.ts +2 -0
  7. package/api-promise.d.ts.map +1 -0
  8. package/api-promise.js +6 -0
  9. package/api-promise.js.map +1 -0
  10. package/api-promise.mjs +2 -0
  11. package/api-promise.mjs.map +1 -0
  12. package/client.d.mts +238 -0
  13. package/client.d.mts.map +1 -0
  14. package/client.d.ts +238 -0
  15. package/client.d.ts.map +1 -0
  16. package/client.js +506 -0
  17. package/client.js.map +1 -0
  18. package/client.mjs +502 -0
  19. package/client.mjs.map +1 -0
  20. package/core/api-promise.d.mts +46 -0
  21. package/core/api-promise.d.mts.map +1 -0
  22. package/core/api-promise.d.ts +46 -0
  23. package/core/api-promise.d.ts.map +1 -0
  24. package/core/api-promise.js +74 -0
  25. package/core/api-promise.js.map +1 -0
  26. package/core/api-promise.mjs +70 -0
  27. package/core/api-promise.mjs.map +1 -0
  28. package/core/error.d.mts +46 -0
  29. package/core/error.d.mts.map +1 -0
  30. package/core/error.d.ts +46 -0
  31. package/core/error.d.ts.map +1 -0
  32. package/core/error.js +113 -0
  33. package/core/error.js.map +1 -0
  34. package/core/error.mjs +97 -0
  35. package/core/error.mjs.map +1 -0
  36. package/core/resource.d.mts +6 -0
  37. package/core/resource.d.mts.map +1 -0
  38. package/core/resource.d.ts +6 -0
  39. package/core/resource.d.ts.map +1 -0
  40. package/core/resource.js +11 -0
  41. package/core/resource.js.map +1 -0
  42. package/core/resource.mjs +7 -0
  43. package/core/resource.mjs.map +1 -0
  44. package/core/uploads.d.mts +3 -0
  45. package/core/uploads.d.mts.map +1 -0
  46. package/core/uploads.d.ts +3 -0
  47. package/core/uploads.d.ts.map +1 -0
  48. package/core/uploads.js +6 -0
  49. package/core/uploads.js.map +1 -0
  50. package/core/uploads.mjs +2 -0
  51. package/core/uploads.mjs.map +1 -0
  52. package/error.d.mts +2 -0
  53. package/error.d.mts.map +1 -0
  54. package/error.d.ts +2 -0
  55. package/error.d.ts.map +1 -0
  56. package/error.js +6 -0
  57. package/error.js.map +1 -0
  58. package/error.mjs +2 -0
  59. package/error.mjs.map +1 -0
  60. package/index.d.mts +6 -0
  61. package/index.d.mts.map +1 -0
  62. package/index.d.ts +6 -0
  63. package/index.d.ts.map +1 -0
  64. package/index.js +30 -0
  65. package/index.js.map +1 -0
  66. package/index.mjs +7 -0
  67. package/index.mjs.map +1 -0
  68. package/internal/builtin-types.d.mts +73 -0
  69. package/internal/builtin-types.d.mts.map +1 -0
  70. package/internal/builtin-types.d.ts +73 -0
  71. package/internal/builtin-types.d.ts.map +1 -0
  72. package/internal/builtin-types.js +4 -0
  73. package/internal/builtin-types.js.map +1 -0
  74. package/internal/builtin-types.mjs +3 -0
  75. package/internal/builtin-types.mjs.map +1 -0
  76. package/internal/detect-platform.d.mts +15 -0
  77. package/internal/detect-platform.d.mts.map +1 -0
  78. package/internal/detect-platform.d.ts +15 -0
  79. package/internal/detect-platform.d.ts.map +1 -0
  80. package/internal/detect-platform.js +162 -0
  81. package/internal/detect-platform.js.map +1 -0
  82. package/internal/detect-platform.mjs +157 -0
  83. package/internal/detect-platform.mjs.map +1 -0
  84. package/internal/errors.d.mts +3 -0
  85. package/internal/errors.d.mts.map +1 -0
  86. package/internal/errors.d.ts +3 -0
  87. package/internal/errors.d.ts.map +1 -0
  88. package/internal/errors.js +41 -0
  89. package/internal/errors.js.map +1 -0
  90. package/internal/errors.mjs +36 -0
  91. package/internal/errors.mjs.map +1 -0
  92. package/internal/headers.d.mts +20 -0
  93. package/internal/headers.d.mts.map +1 -0
  94. package/internal/headers.d.ts +20 -0
  95. package/internal/headers.d.ts.map +1 -0
  96. package/internal/headers.js +79 -0
  97. package/internal/headers.js.map +1 -0
  98. package/internal/headers.mjs +74 -0
  99. package/internal/headers.mjs.map +1 -0
  100. package/internal/parse.d.mts +12 -0
  101. package/internal/parse.d.mts.map +1 -0
  102. package/internal/parse.d.ts +12 -0
  103. package/internal/parse.d.ts.map +1 -0
  104. package/internal/parse.js +35 -0
  105. package/internal/parse.js.map +1 -0
  106. package/internal/parse.mjs +32 -0
  107. package/internal/parse.mjs.map +1 -0
  108. package/internal/request-options.d.mts +75 -0
  109. package/internal/request-options.d.mts.map +1 -0
  110. package/internal/request-options.d.ts +75 -0
  111. package/internal/request-options.d.ts.map +1 -0
  112. package/internal/request-options.js +14 -0
  113. package/internal/request-options.js.map +1 -0
  114. package/internal/request-options.mjs +10 -0
  115. package/internal/request-options.mjs.map +1 -0
  116. package/internal/shim-types.d.mts +17 -0
  117. package/internal/shim-types.d.mts.map +1 -0
  118. package/internal/shim-types.d.ts +17 -0
  119. package/internal/shim-types.d.ts.map +1 -0
  120. package/internal/shim-types.js +4 -0
  121. package/internal/shim-types.js.map +1 -0
  122. package/internal/shim-types.mjs +3 -0
  123. package/internal/shim-types.mjs.map +1 -0
  124. package/internal/shims.d.mts +20 -0
  125. package/internal/shims.d.mts.map +1 -0
  126. package/internal/shims.d.ts +20 -0
  127. package/internal/shims.d.ts.map +1 -0
  128. package/internal/shims.js +92 -0
  129. package/internal/shims.js.map +1 -0
  130. package/internal/shims.mjs +85 -0
  131. package/internal/shims.mjs.map +1 -0
  132. package/internal/to-file.d.mts +45 -0
  133. package/internal/to-file.d.mts.map +1 -0
  134. package/internal/to-file.d.ts +45 -0
  135. package/internal/to-file.d.ts.map +1 -0
  136. package/internal/to-file.js +91 -0
  137. package/internal/to-file.js.map +1 -0
  138. package/internal/to-file.mjs +88 -0
  139. package/internal/to-file.mjs.map +1 -0
  140. package/internal/tslib.js +81 -0
  141. package/internal/tslib.mjs +17 -0
  142. package/internal/types.d.mts +69 -0
  143. package/internal/types.d.mts.map +1 -0
  144. package/internal/types.d.ts +69 -0
  145. package/internal/types.d.ts.map +1 -0
  146. package/internal/types.js +4 -0
  147. package/internal/types.js.map +1 -0
  148. package/internal/types.mjs +3 -0
  149. package/internal/types.mjs.map +1 -0
  150. package/internal/uploads.d.mts +42 -0
  151. package/internal/uploads.d.mts.map +1 -0
  152. package/internal/uploads.d.ts +42 -0
  153. package/internal/uploads.d.ts.map +1 -0
  154. package/internal/uploads.js +141 -0
  155. package/internal/uploads.js.map +1 -0
  156. package/internal/uploads.mjs +131 -0
  157. package/internal/uploads.mjs.map +1 -0
  158. package/internal/utils/base64.d.mts +3 -0
  159. package/internal/utils/base64.d.mts.map +1 -0
  160. package/internal/utils/base64.d.ts +3 -0
  161. package/internal/utils/base64.d.ts.map +1 -0
  162. package/internal/utils/base64.js +38 -0
  163. package/internal/utils/base64.js.map +1 -0
  164. package/internal/utils/base64.mjs +33 -0
  165. package/internal/utils/base64.mjs.map +1 -0
  166. package/internal/utils/bytes.d.mts +4 -0
  167. package/internal/utils/bytes.d.mts.map +1 -0
  168. package/internal/utils/bytes.d.ts +4 -0
  169. package/internal/utils/bytes.d.ts.map +1 -0
  170. package/internal/utils/bytes.js +31 -0
  171. package/internal/utils/bytes.js.map +1 -0
  172. package/internal/utils/bytes.mjs +26 -0
  173. package/internal/utils/bytes.mjs.map +1 -0
  174. package/internal/utils/env.d.mts +9 -0
  175. package/internal/utils/env.d.mts.map +1 -0
  176. package/internal/utils/env.d.ts +9 -0
  177. package/internal/utils/env.d.ts.map +1 -0
  178. package/internal/utils/env.js +22 -0
  179. package/internal/utils/env.js.map +1 -0
  180. package/internal/utils/env.mjs +18 -0
  181. package/internal/utils/env.mjs.map +1 -0
  182. package/internal/utils/log.d.mts +37 -0
  183. package/internal/utils/log.d.mts.map +1 -0
  184. package/internal/utils/log.d.ts +37 -0
  185. package/internal/utils/log.d.ts.map +1 -0
  186. package/internal/utils/log.js +85 -0
  187. package/internal/utils/log.js.map +1 -0
  188. package/internal/utils/log.mjs +79 -0
  189. package/internal/utils/log.mjs.map +1 -0
  190. package/internal/utils/path.d.mts +15 -0
  191. package/internal/utils/path.d.mts.map +1 -0
  192. package/internal/utils/path.d.ts +15 -0
  193. package/internal/utils/path.d.ts.map +1 -0
  194. package/internal/utils/path.js +79 -0
  195. package/internal/utils/path.js.map +1 -0
  196. package/internal/utils/path.mjs +74 -0
  197. package/internal/utils/path.mjs.map +1 -0
  198. package/internal/utils/sleep.d.mts +2 -0
  199. package/internal/utils/sleep.d.mts.map +1 -0
  200. package/internal/utils/sleep.d.ts +2 -0
  201. package/internal/utils/sleep.d.ts.map +1 -0
  202. package/internal/utils/sleep.js +7 -0
  203. package/internal/utils/sleep.js.map +1 -0
  204. package/internal/utils/sleep.mjs +3 -0
  205. package/internal/utils/sleep.mjs.map +1 -0
  206. package/internal/utils/uuid.d.mts +5 -0
  207. package/internal/utils/uuid.d.mts.map +1 -0
  208. package/internal/utils/uuid.d.ts +5 -0
  209. package/internal/utils/uuid.d.ts.map +1 -0
  210. package/internal/utils/uuid.js +19 -0
  211. package/internal/utils/uuid.js.map +1 -0
  212. package/internal/utils/uuid.mjs +15 -0
  213. package/internal/utils/uuid.mjs.map +1 -0
  214. package/internal/utils/values.d.mts +18 -0
  215. package/internal/utils/values.d.mts.map +1 -0
  216. package/internal/utils/values.d.ts +18 -0
  217. package/internal/utils/values.d.ts.map +1 -0
  218. package/internal/utils/values.js +112 -0
  219. package/internal/utils/values.js.map +1 -0
  220. package/internal/utils/values.mjs +94 -0
  221. package/internal/utils/values.mjs.map +1 -0
  222. package/internal/utils.d.mts +7 -0
  223. package/internal/utils.d.mts.map +1 -0
  224. package/internal/utils.d.ts +7 -0
  225. package/internal/utils.d.ts.map +1 -0
  226. package/internal/utils.js +11 -0
  227. package/internal/utils.js.map +1 -0
  228. package/internal/utils.mjs +8 -0
  229. package/internal/utils.mjs.map +1 -0
  230. package/lib/crypto-utils.d.mts +16 -0
  231. package/lib/crypto-utils.d.mts.map +1 -0
  232. package/lib/crypto-utils.d.ts +16 -0
  233. package/lib/crypto-utils.d.ts.map +1 -0
  234. package/lib/crypto-utils.js +35 -0
  235. package/lib/crypto-utils.js.map +1 -0
  236. package/lib/crypto-utils.mjs +32 -0
  237. package/lib/crypto-utils.mjs.map +1 -0
  238. package/lib/serialization-utils.d.mts +11 -0
  239. package/lib/serialization-utils.d.mts.map +1 -0
  240. package/lib/serialization-utils.d.ts +11 -0
  241. package/lib/serialization-utils.d.ts.map +1 -0
  242. package/lib/serialization-utils.js +45 -0
  243. package/lib/serialization-utils.js.map +1 -0
  244. package/lib/serialization-utils.mjs +42 -0
  245. package/lib/serialization-utils.mjs.map +1 -0
  246. package/lib/transformation-utils.d.mts +18 -0
  247. package/lib/transformation-utils.d.mts.map +1 -0
  248. package/lib/transformation-utils.d.ts +18 -0
  249. package/lib/transformation-utils.d.ts.map +1 -0
  250. package/lib/transformation-utils.js +110 -0
  251. package/lib/transformation-utils.js.map +1 -0
  252. package/lib/transformation-utils.mjs +106 -0
  253. package/lib/transformation-utils.mjs.map +1 -0
  254. package/package.json +150 -0
  255. package/resource.d.mts +2 -0
  256. package/resource.d.mts.map +1 -0
  257. package/resource.d.ts +2 -0
  258. package/resource.d.ts.map +1 -0
  259. package/resource.js +6 -0
  260. package/resource.js.map +1 -0
  261. package/resource.mjs +2 -0
  262. package/resource.mjs.map +1 -0
  263. package/resources/accounts/accounts.d.mts +18 -0
  264. package/resources/accounts/accounts.d.mts.map +1 -0
  265. package/resources/accounts/accounts.d.ts +18 -0
  266. package/resources/accounts/accounts.d.ts.map +1 -0
  267. package/resources/accounts/accounts.js +25 -0
  268. package/resources/accounts/accounts.js.map +1 -0
  269. package/resources/accounts/accounts.mjs +20 -0
  270. package/resources/accounts/accounts.mjs.map +1 -0
  271. package/resources/accounts/index.d.mts +5 -0
  272. package/resources/accounts/index.d.mts.map +1 -0
  273. package/resources/accounts/index.d.ts +5 -0
  274. package/resources/accounts/index.d.ts.map +1 -0
  275. package/resources/accounts/index.js +13 -0
  276. package/resources/accounts/index.js.map +1 -0
  277. package/resources/accounts/index.mjs +6 -0
  278. package/resources/accounts/index.mjs.map +1 -0
  279. package/resources/accounts/origins.d.mts +945 -0
  280. package/resources/accounts/origins.d.mts.map +1 -0
  281. package/resources/accounts/origins.d.ts +945 -0
  282. package/resources/accounts/origins.d.ts.map +1 -0
  283. package/resources/accounts/origins.js +95 -0
  284. package/resources/accounts/origins.js.map +1 -0
  285. package/resources/accounts/origins.mjs +91 -0
  286. package/resources/accounts/origins.mjs.map +1 -0
  287. package/resources/accounts/url-endpoints.d.mts +226 -0
  288. package/resources/accounts/url-endpoints.d.mts.map +1 -0
  289. package/resources/accounts/url-endpoints.d.ts +226 -0
  290. package/resources/accounts/url-endpoints.d.ts.map +1 -0
  291. package/resources/accounts/url-endpoints.js +84 -0
  292. package/resources/accounts/url-endpoints.js.map +1 -0
  293. package/resources/accounts/url-endpoints.mjs +80 -0
  294. package/resources/accounts/url-endpoints.mjs.map +1 -0
  295. package/resources/accounts/usage.d.mts +58 -0
  296. package/resources/accounts/usage.d.mts.map +1 -0
  297. package/resources/accounts/usage.d.ts +58 -0
  298. package/resources/accounts/usage.d.ts.map +1 -0
  299. package/resources/accounts/usage.js +26 -0
  300. package/resources/accounts/usage.js.map +1 -0
  301. package/resources/accounts/usage.mjs +22 -0
  302. package/resources/accounts/usage.mjs.map +1 -0
  303. package/resources/accounts.d.mts +2 -0
  304. package/resources/accounts.d.mts.map +1 -0
  305. package/resources/accounts.d.ts +2 -0
  306. package/resources/accounts.d.ts.map +1 -0
  307. package/resources/accounts.js +6 -0
  308. package/resources/accounts.js.map +1 -0
  309. package/resources/accounts.mjs +3 -0
  310. package/resources/accounts.mjs.map +1 -0
  311. package/resources/assets.d.mts +75 -0
  312. package/resources/assets.d.mts.map +1 -0
  313. package/resources/assets.d.ts +75 -0
  314. package/resources/assets.d.ts.map +1 -0
  315. package/resources/assets.js +18 -0
  316. package/resources/assets.js.map +1 -0
  317. package/resources/assets.mjs +14 -0
  318. package/resources/assets.mjs.map +1 -0
  319. package/resources/beta/beta.d.mts +10 -0
  320. package/resources/beta/beta.d.mts.map +1 -0
  321. package/resources/beta/beta.d.ts +10 -0
  322. package/resources/beta/beta.d.ts.map +1 -0
  323. package/resources/beta/beta.js +17 -0
  324. package/resources/beta/beta.js.map +1 -0
  325. package/resources/beta/beta.mjs +12 -0
  326. package/resources/beta/beta.mjs.map +1 -0
  327. package/resources/beta/index.d.mts +3 -0
  328. package/resources/beta/index.d.mts.map +1 -0
  329. package/resources/beta/index.d.ts +3 -0
  330. package/resources/beta/index.d.ts.map +1 -0
  331. package/resources/beta/index.js +9 -0
  332. package/resources/beta/index.js.map +1 -0
  333. package/resources/beta/index.mjs +4 -0
  334. package/resources/beta/index.mjs.map +1 -0
  335. package/resources/beta/v2/files.d.mts +460 -0
  336. package/resources/beta/v2/files.d.mts.map +1 -0
  337. package/resources/beta/v2/files.d.ts +460 -0
  338. package/resources/beta/v2/files.d.ts.map +1 -0
  339. package/resources/beta/v2/files.js +52 -0
  340. package/resources/beta/v2/files.js.map +1 -0
  341. package/resources/beta/v2/files.mjs +48 -0
  342. package/resources/beta/v2/files.mjs.map +1 -0
  343. package/resources/beta/v2/index.d.mts +3 -0
  344. package/resources/beta/v2/index.d.mts.map +1 -0
  345. package/resources/beta/v2/index.d.ts +3 -0
  346. package/resources/beta/v2/index.d.ts.map +1 -0
  347. package/resources/beta/v2/index.js +9 -0
  348. package/resources/beta/v2/index.js.map +1 -0
  349. package/resources/beta/v2/index.mjs +4 -0
  350. package/resources/beta/v2/index.mjs.map +1 -0
  351. package/resources/beta/v2/v2.d.mts +10 -0
  352. package/resources/beta/v2/v2.d.mts.map +1 -0
  353. package/resources/beta/v2/v2.d.ts +10 -0
  354. package/resources/beta/v2/v2.d.ts.map +1 -0
  355. package/resources/beta/v2/v2.js +17 -0
  356. package/resources/beta/v2/v2.js.map +1 -0
  357. package/resources/beta/v2/v2.mjs +12 -0
  358. package/resources/beta/v2/v2.mjs.map +1 -0
  359. package/resources/beta/v2.d.mts +2 -0
  360. package/resources/beta/v2.d.mts.map +1 -0
  361. package/resources/beta/v2.d.ts +2 -0
  362. package/resources/beta/v2.d.ts.map +1 -0
  363. package/resources/beta/v2.js +6 -0
  364. package/resources/beta/v2.js.map +1 -0
  365. package/resources/beta/v2.mjs +3 -0
  366. package/resources/beta/v2.mjs.map +1 -0
  367. package/resources/beta.d.mts +2 -0
  368. package/resources/beta.d.mts.map +1 -0
  369. package/resources/beta.d.ts +2 -0
  370. package/resources/beta.d.ts.map +1 -0
  371. package/resources/beta.js +6 -0
  372. package/resources/beta.js.map +1 -0
  373. package/resources/beta.mjs +3 -0
  374. package/resources/beta.mjs.map +1 -0
  375. package/resources/cache/cache.d.mts +10 -0
  376. package/resources/cache/cache.d.mts.map +1 -0
  377. package/resources/cache/cache.d.ts +10 -0
  378. package/resources/cache/cache.d.ts.map +1 -0
  379. package/resources/cache/cache.js +17 -0
  380. package/resources/cache/cache.js.map +1 -0
  381. package/resources/cache/cache.mjs +12 -0
  382. package/resources/cache/cache.mjs.map +1 -0
  383. package/resources/cache/index.d.mts +3 -0
  384. package/resources/cache/index.d.mts.map +1 -0
  385. package/resources/cache/index.d.ts +3 -0
  386. package/resources/cache/index.d.ts.map +1 -0
  387. package/resources/cache/index.js +9 -0
  388. package/resources/cache/index.js.map +1 -0
  389. package/resources/cache/index.mjs +4 -0
  390. package/resources/cache/index.mjs.map +1 -0
  391. package/resources/cache/invalidation.d.mts +54 -0
  392. package/resources/cache/invalidation.d.mts.map +1 -0
  393. package/resources/cache/invalidation.d.ts +54 -0
  394. package/resources/cache/invalidation.d.ts.map +1 -0
  395. package/resources/cache/invalidation.js +40 -0
  396. package/resources/cache/invalidation.js.map +1 -0
  397. package/resources/cache/invalidation.mjs +36 -0
  398. package/resources/cache/invalidation.mjs.map +1 -0
  399. package/resources/cache.d.mts +2 -0
  400. package/resources/cache.d.mts.map +1 -0
  401. package/resources/cache.d.ts +2 -0
  402. package/resources/cache.d.ts.map +1 -0
  403. package/resources/cache.js +6 -0
  404. package/resources/cache.js.map +1 -0
  405. package/resources/cache.mjs +3 -0
  406. package/resources/cache.mjs.map +1 -0
  407. package/resources/custom-metadata-fields.d.mts +274 -0
  408. package/resources/custom-metadata-fields.d.mts.map +1 -0
  409. package/resources/custom-metadata-fields.d.ts +274 -0
  410. package/resources/custom-metadata-fields.d.ts.map +1 -0
  411. package/resources/custom-metadata-fields.js +79 -0
  412. package/resources/custom-metadata-fields.js.map +1 -0
  413. package/resources/custom-metadata-fields.mjs +75 -0
  414. package/resources/custom-metadata-fields.mjs.map +1 -0
  415. package/resources/files/bulk.d.mts +137 -0
  416. package/resources/files/bulk.d.mts.map +1 -0
  417. package/resources/files/bulk.d.ts +137 -0
  418. package/resources/files/bulk.d.ts.map +1 -0
  419. package/resources/files/bulk.js +85 -0
  420. package/resources/files/bulk.js.map +1 -0
  421. package/resources/files/bulk.mjs +81 -0
  422. package/resources/files/bulk.mjs.map +1 -0
  423. package/resources/files/files.d.mts +1133 -0
  424. package/resources/files/files.d.mts.map +1 -0
  425. package/resources/files/files.d.ts +1133 -0
  426. package/resources/files/files.d.ts.map +1 -0
  427. package/resources/files/files.js +164 -0
  428. package/resources/files/files.js.map +1 -0
  429. package/resources/files/files.mjs +159 -0
  430. package/resources/files/files.mjs.map +1 -0
  431. package/resources/files/index.d.mts +5 -0
  432. package/resources/files/index.d.mts.map +1 -0
  433. package/resources/files/index.d.ts +5 -0
  434. package/resources/files/index.d.ts.map +1 -0
  435. package/resources/files/index.js +11 -0
  436. package/resources/files/index.js.map +1 -0
  437. package/resources/files/index.mjs +5 -0
  438. package/resources/files/index.mjs.map +1 -0
  439. package/resources/files/metadata.d.mts +42 -0
  440. package/resources/files/metadata.d.mts.map +1 -0
  441. package/resources/files/metadata.d.ts +42 -0
  442. package/resources/files/metadata.d.ts.map +1 -0
  443. package/resources/files/metadata.js +39 -0
  444. package/resources/files/metadata.js.map +1 -0
  445. package/resources/files/metadata.mjs +35 -0
  446. package/resources/files/metadata.mjs.map +1 -0
  447. package/resources/files/versions.d.mts +81 -0
  448. package/resources/files/versions.d.mts.map +1 -0
  449. package/resources/files/versions.d.ts +81 -0
  450. package/resources/files/versions.d.ts.map +1 -0
  451. package/resources/files/versions.js +68 -0
  452. package/resources/files/versions.js.map +1 -0
  453. package/resources/files/versions.mjs +64 -0
  454. package/resources/files/versions.mjs.map +1 -0
  455. package/resources/files.d.mts +2 -0
  456. package/resources/files.d.mts.map +1 -0
  457. package/resources/files.d.ts +2 -0
  458. package/resources/files.d.ts.map +1 -0
  459. package/resources/files.js +6 -0
  460. package/resources/files.js.map +1 -0
  461. package/resources/files.mjs +3 -0
  462. package/resources/files.mjs.map +1 -0
  463. package/resources/folders/folders.d.mts +203 -0
  464. package/resources/folders/folders.d.mts.map +1 -0
  465. package/resources/folders/folders.d.ts +203 -0
  466. package/resources/folders/folders.d.ts.map +1 -0
  467. package/resources/folders/folders.js +97 -0
  468. package/resources/folders/folders.js.map +1 -0
  469. package/resources/folders/folders.mjs +92 -0
  470. package/resources/folders/folders.mjs.map +1 -0
  471. package/resources/folders/index.d.mts +3 -0
  472. package/resources/folders/index.d.mts.map +1 -0
  473. package/resources/folders/index.d.ts +3 -0
  474. package/resources/folders/index.d.ts.map +1 -0
  475. package/resources/folders/index.js +9 -0
  476. package/resources/folders/index.js.map +1 -0
  477. package/resources/folders/index.mjs +4 -0
  478. package/resources/folders/index.mjs.map +1 -0
  479. package/resources/folders/job.d.mts +37 -0
  480. package/resources/folders/job.d.mts.map +1 -0
  481. package/resources/folders/job.d.ts +37 -0
  482. package/resources/folders/job.d.ts.map +1 -0
  483. package/resources/folders/job.js +21 -0
  484. package/resources/folders/job.js.map +1 -0
  485. package/resources/folders/job.mjs +17 -0
  486. package/resources/folders/job.mjs.map +1 -0
  487. package/resources/folders.d.mts +2 -0
  488. package/resources/folders.d.mts.map +1 -0
  489. package/resources/folders.d.ts +2 -0
  490. package/resources/folders.d.ts.map +1 -0
  491. package/resources/folders.js +6 -0
  492. package/resources/folders.js.map +1 -0
  493. package/resources/folders.mjs +3 -0
  494. package/resources/folders.mjs.map +1 -0
  495. package/resources/helper.d.mts +42 -0
  496. package/resources/helper.d.mts.map +1 -0
  497. package/resources/helper.d.ts +42 -0
  498. package/resources/helper.d.ts.map +1 -0
  499. package/resources/helper.js +402 -0
  500. package/resources/helper.js.map +1 -0
  501. package/resources/helper.mjs +397 -0
  502. package/resources/helper.mjs.map +1 -0
  503. package/resources/index.d.mts +11 -0
  504. package/resources/index.d.mts.map +1 -0
  505. package/resources/index.d.ts +11 -0
  506. package/resources/index.d.ts.map +1 -0
  507. package/resources/index.js +25 -0
  508. package/resources/index.js.map +1 -0
  509. package/resources/index.mjs +12 -0
  510. package/resources/index.mjs.map +1 -0
  511. package/resources/shared.d.mts +817 -0
  512. package/resources/shared.d.mts.map +1 -0
  513. package/resources/shared.d.ts +817 -0
  514. package/resources/shared.d.ts.map +1 -0
  515. package/resources/shared.js +4 -0
  516. package/resources/shared.js.map +1 -0
  517. package/resources/shared.mjs +3 -0
  518. package/resources/shared.mjs.map +1 -0
  519. package/resources/webhooks.d.mts +811 -0
  520. package/resources/webhooks.d.mts.map +1 -0
  521. package/resources/webhooks.d.ts +811 -0
  522. package/resources/webhooks.d.ts.map +1 -0
  523. package/resources/webhooks.js +24 -0
  524. package/resources/webhooks.js.map +1 -0
  525. package/resources/webhooks.mjs +20 -0
  526. package/resources/webhooks.mjs.map +1 -0
  527. package/resources.d.mts +2 -0
  528. package/resources.d.mts.map +1 -0
  529. package/resources.d.ts +2 -0
  530. package/resources.d.ts.map +1 -0
  531. package/resources.js +5 -0
  532. package/resources.js.map +1 -0
  533. package/resources.mjs +2 -0
  534. package/resources.mjs.map +1 -0
  535. package/src/api-promise.ts +2 -0
  536. package/src/client.ts +929 -0
  537. package/src/core/README.md +3 -0
  538. package/src/core/api-promise.ts +92 -0
  539. package/src/core/error.ts +130 -0
  540. package/src/core/resource.ts +11 -0
  541. package/src/core/uploads.ts +2 -0
  542. package/src/error.ts +2 -0
  543. package/src/index.ts +22 -0
  544. package/src/internal/README.md +3 -0
  545. package/src/internal/builtin-types.ts +93 -0
  546. package/src/internal/detect-platform.ts +196 -0
  547. package/src/internal/errors.ts +33 -0
  548. package/src/internal/headers.ts +97 -0
  549. package/src/internal/parse.ts +50 -0
  550. package/src/internal/request-options.ts +91 -0
  551. package/src/internal/shim-types.ts +26 -0
  552. package/src/internal/shims.ts +107 -0
  553. package/src/internal/to-file.ts +154 -0
  554. package/src/internal/types.ts +95 -0
  555. package/src/internal/uploads.ts +187 -0
  556. package/src/internal/utils/base64.ts +40 -0
  557. package/src/internal/utils/bytes.ts +32 -0
  558. package/src/internal/utils/env.ts +18 -0
  559. package/src/internal/utils/log.ts +126 -0
  560. package/src/internal/utils/path.ts +88 -0
  561. package/src/internal/utils/sleep.ts +3 -0
  562. package/src/internal/utils/uuid.ts +17 -0
  563. package/src/internal/utils/values.ts +105 -0
  564. package/src/internal/utils.ts +8 -0
  565. package/src/lib/.keep +4 -0
  566. package/src/lib/crypto-utils.ts +37 -0
  567. package/src/lib/serialization-utils.ts +42 -0
  568. package/src/lib/transformation-utils.ts +117 -0
  569. package/src/resource.ts +2 -0
  570. package/src/resources/accounts/accounts.ts +55 -0
  571. package/src/resources/accounts/index.ts +20 -0
  572. package/src/resources/accounts/origins.ts +1250 -0
  573. package/src/resources/accounts/url-endpoints.ts +298 -0
  574. package/src/resources/accounts/usage.ts +70 -0
  575. package/src/resources/accounts.ts +3 -0
  576. package/src/resources/assets.ts +105 -0
  577. package/src/resources/beta/beta.ts +15 -0
  578. package/src/resources/beta/index.ts +4 -0
  579. package/src/resources/beta/v2/files.ts +546 -0
  580. package/src/resources/beta/v2/index.ts +4 -0
  581. package/src/resources/beta/v2/v2.ts +19 -0
  582. package/src/resources/beta/v2.ts +3 -0
  583. package/src/resources/beta.ts +3 -0
  584. package/src/resources/cache/cache.ts +25 -0
  585. package/src/resources/cache/index.ts +9 -0
  586. package/src/resources/cache/invalidation.ts +70 -0
  587. package/src/resources/cache.ts +3 -0
  588. package/src/resources/custom-metadata-fields.ts +337 -0
  589. package/src/resources/files/bulk.ts +171 -0
  590. package/src/resources/files/files.ts +1430 -0
  591. package/src/resources/files/index.ts +39 -0
  592. package/src/resources/files/metadata.ts +52 -0
  593. package/src/resources/files/versions.ts +117 -0
  594. package/src/resources/files.ts +3 -0
  595. package/src/resources/folders/folders.ts +249 -0
  596. package/src/resources/folders/index.ts +16 -0
  597. package/src/resources/folders/job.ts +47 -0
  598. package/src/resources/folders.ts +3 -0
  599. package/src/resources/helper.ts +462 -0
  600. package/src/resources/index.ts +60 -0
  601. package/src/resources/shared.ts +952 -0
  602. package/src/resources/webhooks.ts +999 -0
  603. package/src/resources.ts +1 -0
  604. package/src/tsconfig.json +11 -0
  605. package/src/uploads.ts +2 -0
  606. package/src/version.ts +1 -0
  607. package/uploads.d.mts +2 -0
  608. package/uploads.d.mts.map +1 -0
  609. package/uploads.d.ts +2 -0
  610. package/uploads.d.ts.map +1 -0
  611. package/uploads.js +6 -0
  612. package/uploads.js.map +1 -0
  613. package/uploads.mjs +2 -0
  614. package/uploads.mjs.map +1 -0
  615. package/version.d.mts +2 -0
  616. package/version.d.mts.map +1 -0
  617. package/version.d.ts +2 -0
  618. package/version.d.ts.map +1 -0
  619. package/version.js +5 -0
  620. package/version.js.map +1 -0
  621. package/version.mjs +2 -0
  622. package/version.mjs.map +1 -0
@@ -0,0 +1,817 @@
1
+ export interface BaseOverlay {
2
+ position?: OverlayPosition;
3
+ timing?: OverlayTiming;
4
+ }
5
+ /**
6
+ * Array of extensions to be applied to the asset. Each extension can be configured
7
+ * with specific parameters based on the extension type.
8
+ */
9
+ export type Extensions = Array<Extensions.RemoveBg | Extensions.AutoTaggingExtension | Extensions.AIAutoDescription>;
10
+ export declare namespace Extensions {
11
+ interface RemoveBg {
12
+ /**
13
+ * Specifies the background removal extension.
14
+ */
15
+ name: 'remove-bg';
16
+ options?: RemoveBg.Options;
17
+ }
18
+ namespace RemoveBg {
19
+ interface Options {
20
+ /**
21
+ * Whether to add an artificial shadow to the result. Default is false. Note:
22
+ * Adding shadows is currently only supported for car photos.
23
+ */
24
+ add_shadow?: boolean;
25
+ /**
26
+ * Specifies a solid color background using hex code (e.g., "81d4fa", "fff") or
27
+ * color name (e.g., "green"). If this parameter is set, `bg_image_url` must be
28
+ * empty.
29
+ */
30
+ bg_color?: string;
31
+ /**
32
+ * Sets a background image from a URL. If this parameter is set, `bg_color` must be
33
+ * empty.
34
+ */
35
+ bg_image_url?: string;
36
+ /**
37
+ * Allows semi-transparent regions in the result. Default is true. Note:
38
+ * Semitransparency is currently only supported for car windows.
39
+ */
40
+ semitransparency?: boolean;
41
+ }
42
+ }
43
+ interface AutoTaggingExtension {
44
+ /**
45
+ * Maximum number of tags to attach to the asset.
46
+ */
47
+ maxTags: number;
48
+ /**
49
+ * Minimum confidence level for tags to be considered valid.
50
+ */
51
+ minConfidence: number;
52
+ /**
53
+ * Specifies the auto-tagging extension used.
54
+ */
55
+ name: 'google-auto-tagging' | 'aws-auto-tagging';
56
+ }
57
+ interface AIAutoDescription {
58
+ /**
59
+ * Specifies the auto description extension.
60
+ */
61
+ name: 'ai-auto-description';
62
+ }
63
+ }
64
+ export interface ImageOverlay extends BaseOverlay {
65
+ /**
66
+ * Specifies the relative path to the image used as an overlay.
67
+ */
68
+ input: string;
69
+ type: 'image';
70
+ /**
71
+ * The input path can be included in the layer as either `i-{input}` or
72
+ * `ie-{base64_encoded_input}`. By default, the SDK determines the appropriate
73
+ * format automatically. To always use base64 encoding (`ie-{base64}`), set this
74
+ * parameter to `base64`. To always use plain text (`i-{input}`), set it to
75
+ * `plain`.
76
+ */
77
+ encoding?: 'auto' | 'plain' | 'base64';
78
+ /**
79
+ * Array of transformations to be applied to the overlay image. Supported
80
+ * transformations depends on the base/parent asset. See overlays on
81
+ * [Images](https://imagekit.io/docs/add-overlays-on-images#list-of-supported-image-transformations-in-image-layers)
82
+ * and
83
+ * [Videos](https://imagekit.io/docs/add-overlays-on-videos#list-of-transformations-supported-on-image-overlay).
84
+ */
85
+ transformation?: Array<Transformation>;
86
+ }
87
+ /**
88
+ * Specifies an overlay to be applied on the parent image or video. ImageKit
89
+ * supports overlays including images, text, videos, subtitles, and solid colors.
90
+ * See
91
+ * [Overlay using layers](https://imagekit.io/docs/transformations#overlay-using-layers).
92
+ */
93
+ export type Overlay = TextOverlay | ImageOverlay | VideoOverlay | SubtitleOverlay | SolidColorOverlay;
94
+ export interface OverlayPosition {
95
+ /**
96
+ * Specifies the position of the overlay relative to the parent image or video.
97
+ * Maps to `lfo` in the URL.
98
+ */
99
+ focus?: 'center' | 'top' | 'left' | 'bottom' | 'right' | 'top_left' | 'top_right' | 'bottom_left' | 'bottom_right';
100
+ /**
101
+ * Specifies the x-coordinate of the top-left corner of the base asset where the
102
+ * overlay's top-left corner will be positioned. It also accepts arithmetic
103
+ * expressions such as `bw_mul_0.4` or `bw_sub_cw`. Maps to `lx` in the URL. Learn
104
+ * about
105
+ * [Arithmetic expressions](https://imagekit.io/docs/arithmetic-expressions-in-transformations).
106
+ */
107
+ x?: number | string;
108
+ /**
109
+ * Specifies the y-coordinate of the top-left corner of the base asset where the
110
+ * overlay's top-left corner will be positioned. It also accepts arithmetic
111
+ * expressions such as `bh_mul_0.4` or `bh_sub_ch`. Maps to `ly` in the URL. Learn
112
+ * about
113
+ * [Arithmetic expressions](https://imagekit.io/docs/arithmetic-expressions-in-transformations).
114
+ */
115
+ y?: number | string;
116
+ }
117
+ export interface OverlayTiming {
118
+ /**
119
+ * Specifies the duration (in seconds) during which the overlay should appear on
120
+ * the base video. Accepts a positive number up to two decimal places (e.g., `20`
121
+ * or `20.50`) and arithmetic expressions such as `bdu_mul_0.4` or `bdu_sub_idu`.
122
+ * Applies only if the base asset is a video. Maps to `ldu` in the URL.
123
+ */
124
+ duration?: number | string;
125
+ /**
126
+ * Specifies the end time (in seconds) for when the overlay should disappear from
127
+ * the base video. If both end and duration are provided, duration is ignored.
128
+ * Accepts a positive number up to two decimal places (e.g., `20` or `20.50`) and
129
+ * arithmetic expressions such as `bdu_mul_0.4` or `bdu_sub_idu`. Applies only if
130
+ * the base asset is a video. Maps to `leo` in the URL.
131
+ */
132
+ end?: number | string;
133
+ /**
134
+ * Specifies the start time (in seconds) for when the overlay should appear on the
135
+ * base video. Accepts a positive number up to two decimal places (e.g., `20` or
136
+ * `20.50`) and arithmetic expressions such as `bdu_mul_0.4` or `bdu_sub_idu`.
137
+ * Applies only if the base asset is a video. Maps to `lso` in the URL.
138
+ */
139
+ start?: number | string;
140
+ }
141
+ export interface SolidColorOverlay extends BaseOverlay {
142
+ /**
143
+ * Specifies the color of the block using an RGB hex code (e.g., `FF0000`), an RGBA
144
+ * code (e.g., `FFAABB50`), or a color name (e.g., `red`). If an 8-character value
145
+ * is provided, the last two characters represent the opacity level (from `00` for
146
+ * 0.00 to `99` for 0.99).
147
+ */
148
+ color: string;
149
+ type: 'solidColor';
150
+ /**
151
+ * Control width and height of the solid color overlay. Supported transformations
152
+ * depend on the base/parent asset. See overlays on
153
+ * [Images](https://imagekit.io/docs/add-overlays-on-images#apply-transformation-on-solid-color-overlay)
154
+ * and
155
+ * [Videos](https://imagekit.io/docs/add-overlays-on-videos#apply-transformations-on-solid-color-block-overlay).
156
+ */
157
+ transformation?: Array<SolidColorOverlayTransformation>;
158
+ }
159
+ export interface SolidColorOverlayTransformation {
160
+ /**
161
+ * Specifies the transparency level of the solid color overlay. Accepts integers
162
+ * from `1` to `9`.
163
+ */
164
+ alpha?: number;
165
+ /**
166
+ * Specifies the background color of the solid color overlay. Accepts an RGB hex
167
+ * code (e.g., `FF0000`), an RGBA code (e.g., `FFAABB50`), or a color name.
168
+ */
169
+ background?: string;
170
+ /**
171
+ * Creates a linear gradient with two colors. Pass `true` for a default gradient,
172
+ * or provide a string for a custom gradient. Only works if the base asset is an
173
+ * image. See
174
+ * [gradient](https://imagekit.io/docs/effects-and-enhancements#gradient---e-gradient).
175
+ */
176
+ gradient?: true | string;
177
+ /**
178
+ * Controls the height of the solid color overlay. Accepts a numeric value or an
179
+ * arithmetic expression. Learn about
180
+ * [arithmetic expressions](https://imagekit.io/docs/arithmetic-expressions-in-transformations).
181
+ */
182
+ height?: number | string;
183
+ /**
184
+ * Specifies the corner radius of the solid color overlay. Set to `max` for
185
+ * circular or oval shape. See
186
+ * [radius](https://imagekit.io/docs/effects-and-enhancements#radius---r).
187
+ */
188
+ radius?: number | 'max';
189
+ /**
190
+ * Controls the width of the solid color overlay. Accepts a numeric value or an
191
+ * arithmetic expression (e.g., `bw_mul_0.2` or `bh_div_2`). Learn about
192
+ * [arithmetic expressions](https://imagekit.io/docs/arithmetic-expressions-in-transformations).
193
+ */
194
+ width?: number | string;
195
+ }
196
+ /**
197
+ * Options for generating ImageKit URLs with transformations. See the
198
+ * [Transformations guide](https://imagekit.io/docs/transformations).
199
+ */
200
+ export interface SrcOptions {
201
+ /**
202
+ * Accepts a relative or absolute path of the resource. If a relative path is
203
+ * provided, it is appended to the `urlEndpoint`. If an absolute path is provided,
204
+ * `urlEndpoint` is ignored.
205
+ */
206
+ src: string;
207
+ /**
208
+ * Get your urlEndpoint from the
209
+ * [ImageKit dashboard](https://imagekit.io/dashboard/url-endpoints).
210
+ */
211
+ urlEndpoint: string;
212
+ /**
213
+ * When you want the signed URL to expire, specified in seconds. If `expiresIn` is
214
+ * anything above 0, the URL will always be signed even if `signed` is set to
215
+ * false. If not specified and `signed` is `true`, the signed URL will not expire
216
+ * (valid indefinitely).
217
+ *
218
+ * Example: Setting `expiresIn: 3600` will make the URL expire 1 hour from
219
+ * generation time. After the expiry time, the signed URL will no longer be valid
220
+ * and ImageKit will return a 401 Unauthorized status code.
221
+ *
222
+ * [Learn more](https://imagekit.io/docs/media-delivery-basic-security#how-to-generate-signed-urls).
223
+ */
224
+ expiresIn?: number;
225
+ /**
226
+ * These are additional query parameters that you want to add to the final URL.
227
+ * They can be any query parameters and not necessarily related to ImageKit. This
228
+ * is especially useful if you want to add a versioning parameter to your URLs.
229
+ */
230
+ queryParameters?: {
231
+ [key: string]: string;
232
+ };
233
+ /**
234
+ * Whether to sign the URL or not. Set this to `true` if you want to generate a
235
+ * signed URL. If `signed` is `true` and `expiresIn` is not specified, the signed
236
+ * URL will not expire (valid indefinitely). Note: If `expiresIn` is set to any
237
+ * value above 0, the URL will always be signed regardless of this setting.
238
+ * [Learn more](https://imagekit.io/docs/media-delivery-basic-security#how-to-generate-signed-urls).
239
+ */
240
+ signed?: boolean;
241
+ /**
242
+ * An array of objects specifying the transformations to be applied in the URL. If
243
+ * more than one transformation is specified, they are applied in the order they
244
+ * are specified as chained transformations. See
245
+ * [Chained transformations](https://imagekit.io/docs/transformations#chained-transformations).
246
+ */
247
+ transformation?: Array<Transformation>;
248
+ /**
249
+ * By default, the transformation string is added as a query parameter in the URL,
250
+ * e.g., `?tr=w-100,h-100`. If you want to add the transformation string in the
251
+ * path of the URL, set this to `path`. Learn more in the
252
+ * [Transformations guide](https://imagekit.io/docs/transformations).
253
+ */
254
+ transformationPosition?: TransformationPosition;
255
+ }
256
+ /**
257
+ * Available streaming resolutions for
258
+ * [adaptive bitrate streaming](https://imagekit.io/docs/adaptive-bitrate-streaming)
259
+ */
260
+ export type StreamingResolution = '240' | '360' | '480' | '720' | '1080' | '1440' | '2160';
261
+ export interface SubtitleOverlay extends BaseOverlay {
262
+ /**
263
+ * Specifies the relative path to the subtitle file used as an overlay.
264
+ */
265
+ input: string;
266
+ type: 'subtitle';
267
+ /**
268
+ * The input path can be included in the layer as either `i-{input}` or
269
+ * `ie-{base64_encoded_input}`. By default, the SDK determines the appropriate
270
+ * format automatically. To always use base64 encoding (`ie-{base64}`), set this
271
+ * parameter to `base64`. To always use plain text (`i-{input}`), set it to
272
+ * `plain`.
273
+ */
274
+ encoding?: 'auto' | 'plain' | 'base64';
275
+ /**
276
+ * Control styling of the subtitle. See
277
+ * [Styling subtitles](https://imagekit.io/docs/add-overlays-on-videos#styling-controls-for-subtitles-layer).
278
+ */
279
+ transformation?: Array<SubtitleOverlayTransformation>;
280
+ }
281
+ /**
282
+ * Subtitle styling options.
283
+ * [Learn more](https://imagekit.io/docs/add-overlays-on-videos#styling-controls-for-subtitles-layer)
284
+ * from the docs.
285
+ */
286
+ export interface SubtitleOverlayTransformation {
287
+ /**
288
+ * Specifies the subtitle background color using a standard color name, an RGB
289
+ * color code (e.g., FF0000), or an RGBA color code (e.g., FFAABB50).
290
+ *
291
+ * [Subtitle styling options](https://imagekit.io/docs/add-overlays-on-videos#styling-controls-for-subtitles-layer)
292
+ */
293
+ background?: string;
294
+ /**
295
+ * Sets the font color of the subtitle text using a standard color name, an RGB
296
+ * color code (e.g., FF0000), or an RGBA color code (e.g., FFAABB50).
297
+ *
298
+ * [Subtitle styling options](https://imagekit.io/docs/add-overlays-on-videos#styling-controls-for-subtitles-layer)
299
+ */
300
+ color?: string;
301
+ /**
302
+ * Font family for subtitles. Refer to the
303
+ * [supported fonts](https://imagekit.io/docs/add-overlays-on-images#supported-text-font-list).
304
+ */
305
+ fontFamily?: string;
306
+ /**
307
+ * Sets the font outline of the subtitle text. Requires the outline width (an
308
+ * integer) and the outline color (as an RGB color code, RGBA color code, or
309
+ * standard web color name) separated by an underscore. Example: `fol-2_blue`
310
+ * (outline width of 2px and outline color blue), `fol-2_A1CCDD` (outline width of
311
+ * 2px and outline color `#A1CCDD`) and `fol-2_A1CCDD50` (outline width of 2px and
312
+ * outline color `#A1CCDD` at 50% opacity).
313
+ *
314
+ * [Subtitle styling options](https://imagekit.io/docs/add-overlays-on-videos#styling-controls-for-subtitles-layer)
315
+ */
316
+ fontOutline?: string;
317
+ /**
318
+ * Sets the font shadow for the subtitle text. Requires the shadow color (as an RGB
319
+ * color code, RGBA color code, or standard web color name) and shadow indent (an
320
+ * integer) separated by an underscore. Example: `fsh-blue_2` (shadow color blue,
321
+ * indent of 2px), `fsh-A1CCDD_3` (shadow color `#A1CCDD`, indent of 3px),
322
+ * `fsh-A1CCDD50_3` (shadow color `#A1CCDD` at 50% opacity, indent of 3px).
323
+ *
324
+ * [Subtitle styling options](https://imagekit.io/docs/add-overlays-on-videos#styling-controls-for-subtitles-layer)
325
+ */
326
+ fontShadow?: string;
327
+ /**
328
+ * Sets the font size of subtitle text.
329
+ *
330
+ * [Subtitle styling options](https://imagekit.io/docs/add-overlays-on-videos#styling-controls-for-subtitles-layer)
331
+ */
332
+ fontSize?: number;
333
+ /**
334
+ * Sets the typography style of the subtitle text. Supports values are `b` for
335
+ * bold, `i` for italics, and `b_i` for bold with italics.
336
+ *
337
+ * [Subtitle styling options](https://imagekit.io/docs/add-overlays-on-videos#styling-controls-for-subtitles-layer)
338
+ */
339
+ typography?: 'b' | 'i' | 'b_i';
340
+ }
341
+ export interface TextOverlay extends BaseOverlay {
342
+ /**
343
+ * Specifies the text to be displayed in the overlay. The SDK automatically handles
344
+ * special characters and encoding.
345
+ */
346
+ text: string;
347
+ type: 'text';
348
+ /**
349
+ * Text can be included in the layer as either `i-{input}` (plain text) or
350
+ * `ie-{base64_encoded_input}` (base64). By default, the SDK selects the
351
+ * appropriate format based on the input text. To always use base64
352
+ * (`ie-{base64}`), set this parameter to `base64`. To always use plain text
353
+ * (`i-{input}`), set it to `plain`.
354
+ */
355
+ encoding?: 'auto' | 'plain' | 'base64';
356
+ /**
357
+ * Control styling of the text overlay. See
358
+ * [Text overlays](https://imagekit.io/docs/add-overlays-on-images#text-overlay).
359
+ */
360
+ transformation?: Array<TextOverlayTransformation>;
361
+ }
362
+ export interface TextOverlayTransformation {
363
+ /**
364
+ * Specifies the transparency level of the text overlay. Accepts integers from `1`
365
+ * to `9`.
366
+ */
367
+ alpha?: number;
368
+ /**
369
+ * Specifies the background color of the text overlay. Accepts an RGB hex code, an
370
+ * RGBA code, or a color name.
371
+ */
372
+ background?: string;
373
+ /**
374
+ * Flip the text overlay horizontally, vertically, or both.
375
+ */
376
+ flip?: 'h' | 'v' | 'h_v' | 'v_h';
377
+ /**
378
+ * Specifies the font color of the overlaid text. Accepts an RGB hex code (e.g.,
379
+ * `FF0000`), an RGBA code (e.g., `FFAABB50`), or a color name.
380
+ */
381
+ fontColor?: string;
382
+ /**
383
+ * Specifies the font family of the overlaid text. Choose from the supported fonts
384
+ * list or use a custom font. See
385
+ * [Supported fonts](https://imagekit.io/docs/add-overlays-on-images#supported-text-font-list)
386
+ * and
387
+ * [Custom font](https://imagekit.io/docs/add-overlays-on-images#change-font-family-in-text-overlay).
388
+ */
389
+ fontFamily?: string;
390
+ /**
391
+ * Specifies the font size of the overlaid text. Accepts a numeric value or an
392
+ * arithmetic expression.
393
+ */
394
+ fontSize?: number | string;
395
+ /**
396
+ * Specifies the inner alignment of the text when width is more than the text
397
+ * length.
398
+ */
399
+ innerAlignment?: 'left' | 'right' | 'center';
400
+ /**
401
+ * Specifies the line height of the text overlay. Accepts integer values
402
+ * representing line height in points. It can also accept
403
+ * [arithmetic expressions](https://imagekit.io/docs/arithmetic-expressions-in-transformations)
404
+ * such as `bw_mul_0.2`, or `bh_div_20`.
405
+ */
406
+ lineHeight?: number | string;
407
+ /**
408
+ * Specifies the padding around the overlaid text. Can be provided as a single
409
+ * positive integer or multiple values separated by underscores (following CSS
410
+ * shorthand order). Arithmetic expressions are also accepted.
411
+ */
412
+ padding?: number | string;
413
+ /**
414
+ * Specifies the corner radius of the text overlay. Set to `max` to achieve a
415
+ * circular or oval shape.
416
+ */
417
+ radius?: number | 'max';
418
+ /**
419
+ * Specifies the rotation angle of the text overlay. Accepts a numeric value for
420
+ * clockwise rotation or a string prefixed with "N" for counter-clockwise rotation.
421
+ */
422
+ rotation?: number | string;
423
+ /**
424
+ * Specifies the typography style of the text. Supported values:
425
+ *
426
+ * - Single styles: `b` (bold), `i` (italic), `strikethrough`.
427
+ * - Combinations: Any combination separated by underscores, e.g., `b_i`,
428
+ * `b_i_strikethrough`.
429
+ */
430
+ typography?: string;
431
+ /**
432
+ * Specifies the maximum width (in pixels) of the overlaid text. The text wraps
433
+ * automatically, and arithmetic expressions (e.g., `bw_mul_0.2` or `bh_div_2`) are
434
+ * supported. Useful when used in conjunction with the `background`. Learn about
435
+ * [Arithmetic expressions](https://imagekit.io/docs/arithmetic-expressions-in-transformations).
436
+ */
437
+ width?: number | string;
438
+ }
439
+ /**
440
+ * The SDK provides easy-to-use names for transformations. These names are
441
+ * converted to the corresponding transformation string before being added to the
442
+ * URL. SDKs are updated regularly to support new transformations. If you want to
443
+ * use a transformation that is not supported by the SDK, You can use the `raw`
444
+ * parameter to pass the transformation string directly. See the
445
+ * [Transformations documentation](https://imagekit.io/docs/transformations).
446
+ */
447
+ export interface Transformation {
448
+ /**
449
+ * Uses AI to change the background. Provide a text prompt or a base64-encoded
450
+ * prompt, e.g., `prompt-snow road` or `prompte-[urlencoded_base64_encoded_text]`.
451
+ * Not supported inside overlay. See
452
+ * [AI Change Background](https://imagekit.io/docs/ai-transformations#change-background-e-changebg).
453
+ */
454
+ aiChangeBackground?: string;
455
+ /**
456
+ * Adds an AI-based drop shadow around a foreground object on a transparent or
457
+ * removed background. Optionally, control the direction, elevation, and saturation
458
+ * of the light source (e.g., `az-45` to change light direction). Pass `true` for
459
+ * the default drop shadow, or provide a string for a custom drop shadow. Supported
460
+ * inside overlay. See
461
+ * [AI Drop Shadow](https://imagekit.io/docs/ai-transformations#ai-drop-shadow-e-dropshadow).
462
+ */
463
+ aiDropShadow?: true | string;
464
+ /**
465
+ * Uses AI to edit images based on a text prompt. Provide a text prompt or a
466
+ * base64-encoded prompt, e.g., `prompt-snow road` or
467
+ * `prompte-[urlencoded_base64_encoded_text]`. Not supported inside overlay.
468
+ * See [AI Edit](https://imagekit.io/docs/ai-transformations#edit-image-e-edit).
469
+ */
470
+ aiEdit?: string;
471
+ /**
472
+ * Applies ImageKit's in-house background removal. Supported inside overlay. See
473
+ * [AI Background Removal](https://imagekit.io/docs/ai-transformations#imagekit-background-removal-e-bgremove).
474
+ */
475
+ aiRemoveBackground?: true;
476
+ /**
477
+ * Uses third-party background removal. Note: It is recommended to use
478
+ * aiRemoveBackground, ImageKit's in-house solution, which is more cost-effective.
479
+ * Supported inside overlay. See
480
+ * [External Background Removal](https://imagekit.io/docs/ai-transformations#background-removal-e-removedotbg).
481
+ */
482
+ aiRemoveBackgroundExternal?: true;
483
+ /**
484
+ * Performs AI-based retouching to improve faces or product shots. Not supported
485
+ * inside overlay. See
486
+ * [AI Retouch](https://imagekit.io/docs/ai-transformations#retouch-e-retouch).
487
+ */
488
+ aiRetouch?: true;
489
+ /**
490
+ * Upscales images beyond their original dimensions using AI. Not supported inside
491
+ * overlay. See
492
+ * [AI Upscale](https://imagekit.io/docs/ai-transformations#upscale-e-upscale).
493
+ */
494
+ aiUpscale?: true;
495
+ /**
496
+ * Generates a variation of an image using AI. This produces a new image with
497
+ * slight variations from the original, such as changes in color, texture, and
498
+ * other visual elements, while preserving the structure and essence of the
499
+ * original image. Not supported inside overlay. See
500
+ * [AI Generate Variations](https://imagekit.io/docs/ai-transformations#generate-variations-of-an-image-e-genvar).
501
+ */
502
+ aiVariation?: true;
503
+ /**
504
+ * Specifies the aspect ratio for the output, e.g., "ar-4-3". Typically used with
505
+ * either width or height (but not both). For example: aspectRatio = `4:3`, `4_3`,
506
+ * or an expression like `iar_div_2`. See
507
+ * [Image resize and crop – Aspect ratio](https://imagekit.io/docs/image-resize-and-crop#aspect-ratio---ar).
508
+ */
509
+ aspectRatio?: number | string;
510
+ /**
511
+ * Specifies the audio codec, e.g., `aac`, `opus`, or `none`. See
512
+ * [Audio codec](https://imagekit.io/docs/video-optimization#audio-codec---ac).
513
+ */
514
+ audioCodec?: 'aac' | 'opus' | 'none';
515
+ /**
516
+ * Specifies the background to be used in conjunction with certain cropping
517
+ * strategies when resizing an image.
518
+ *
519
+ * - A solid color: e.g., `red`, `F3F3F3`, `AAFF0010`. See
520
+ * [Solid color background](https://imagekit.io/docs/effects-and-enhancements#solid-color-background).
521
+ * - A blurred background: e.g., `blurred`, `blurred_25_N15`, etc. See
522
+ * [Blurred background](https://imagekit.io/docs/effects-and-enhancements#blurred-background).
523
+ * - Expand the image boundaries using generative fill: `genfill`. Not supported
524
+ * inside overlay. Optionally, control the background scene by passing a text
525
+ * prompt: `genfill[:-prompt-${text}]` or
526
+ * `genfill[:-prompte-${urlencoded_base64_encoded_text}]`. See
527
+ * [Generative fill background](https://imagekit.io/docs/ai-transformations#generative-fill-bg-genfill).
528
+ */
529
+ background?: string;
530
+ /**
531
+ * Specifies the Gaussian blur level. Accepts an integer value between 1 and 100,
532
+ * or an expression like `bl-10`. See
533
+ * [Blur](https://imagekit.io/docs/effects-and-enhancements#blur---bl).
534
+ */
535
+ blur?: number;
536
+ /**
537
+ * Adds a border to the output media. Accepts a string in the format
538
+ * `<border-width>_<hex-code>` (e.g., `5_FFF000` for a 5px yellow border), or an
539
+ * expression like `ih_div_20_FF00FF`. See
540
+ * [Border](https://imagekit.io/docs/effects-and-enhancements#border---b).
541
+ */
542
+ border?: string;
543
+ /**
544
+ * Indicates whether the output image should retain the original color profile. See
545
+ * [Color profile](https://imagekit.io/docs/image-optimization#color-profile---cp).
546
+ */
547
+ colorProfile?: boolean;
548
+ /**
549
+ * Automatically enhances the contrast of an image (contrast stretch). See
550
+ * [Contrast Stretch](https://imagekit.io/docs/effects-and-enhancements#contrast-stretch---e-contrast).
551
+ */
552
+ contrastStretch?: true;
553
+ /**
554
+ * Crop modes for image resizing. See
555
+ * [Crop modes & focus](https://imagekit.io/docs/image-resize-and-crop#crop-crop-modes--focus).
556
+ */
557
+ crop?: 'force' | 'at_max' | 'at_max_enlarge' | 'at_least' | 'maintain_ratio';
558
+ /**
559
+ * Additional crop modes for image resizing. See
560
+ * [Crop modes & focus](https://imagekit.io/docs/image-resize-and-crop#crop-crop-modes--focus).
561
+ */
562
+ cropMode?: 'pad_resize' | 'extract' | 'pad_extract';
563
+ /**
564
+ * Specifies a fallback image if the resource is not found, e.g., a URL or file
565
+ * path. See
566
+ * [Default image](https://imagekit.io/docs/image-transformation#default-image---di).
567
+ */
568
+ defaultImage?: string;
569
+ /**
570
+ * Accepts values between 0.1 and 5, or `auto` for automatic device pixel ratio
571
+ * (DPR) calculation. See
572
+ * [DPR](https://imagekit.io/docs/image-resize-and-crop#dpr---dpr).
573
+ */
574
+ dpr?: number;
575
+ /**
576
+ * Specifies the duration (in seconds) for trimming videos, e.g., `5` or `10.5`.
577
+ * Typically used with startOffset to indicate the length from the start offset.
578
+ * Arithmetic expressions are supported. See
579
+ * [Trim videos – Duration](https://imagekit.io/docs/trim-videos#duration---du).
580
+ */
581
+ duration?: number | string;
582
+ /**
583
+ * Specifies the end offset (in seconds) for trimming videos, e.g., `5` or `10.5`.
584
+ * Typically used with startOffset to define a time window. Arithmetic expressions
585
+ * are supported. See
586
+ * [Trim videos – End offset](https://imagekit.io/docs/trim-videos#end-offset---eo).
587
+ */
588
+ endOffset?: number | string;
589
+ /**
590
+ * Flips or mirrors an image either horizontally, vertically, or both. Acceptable
591
+ * values: `h` (horizontal), `v` (vertical), `h_v` (horizontal and vertical), or
592
+ * `v_h`. See [Flip](https://imagekit.io/docs/effects-and-enhancements#flip---fl).
593
+ */
594
+ flip?: 'h' | 'v' | 'h_v' | 'v_h';
595
+ /**
596
+ * Refines padding and cropping behavior for pad resize, maintain ratio, and
597
+ * extract crop modes. Supports manual positions and coordinate-based focus. With
598
+ * AI-based cropping, you can automatically keep key subjects in frame—such as
599
+ * faces or detected objects (e.g., `fo-face`, `fo-person`, `fo-car`)— while
600
+ * resizing.
601
+ *
602
+ * - See [Focus](https://imagekit.io/docs/image-resize-and-crop#focus---fo).
603
+ * - [Object aware cropping](https://imagekit.io/docs/image-resize-and-crop#object-aware-cropping---fo-object-name)
604
+ */
605
+ focus?: string;
606
+ /**
607
+ * Specifies the output format for images or videos, e.g., `jpg`, `png`, `webp`,
608
+ * `mp4`, or `auto`. You can also pass `orig` for images to return the original
609
+ * format. ImageKit automatically delivers images and videos in the optimal format
610
+ * based on device support unless overridden by the dashboard settings or the
611
+ * format parameter. See
612
+ * [Image format](https://imagekit.io/docs/image-optimization#format---f) and
613
+ * [Video format](https://imagekit.io/docs/video-optimization#format---f).
614
+ */
615
+ format?: 'auto' | 'webp' | 'jpg' | 'jpeg' | 'png' | 'gif' | 'svg' | 'mp4' | 'webm' | 'avif' | 'orig';
616
+ /**
617
+ * Creates a linear gradient with two colors. Pass `true` for a default gradient,
618
+ * or provide a string for a custom gradient. See
619
+ * [Gradient](https://imagekit.io/docs/effects-and-enhancements#gradient---e-gradient).
620
+ */
621
+ gradient?: true | string;
622
+ /**
623
+ * Enables a grayscale effect for images. See
624
+ * [Grayscale](https://imagekit.io/docs/effects-and-enhancements#grayscale---e-grayscale).
625
+ */
626
+ grayscale?: true;
627
+ /**
628
+ * Specifies the height of the output. If a value between 0 and 1 is provided, it
629
+ * is treated as a percentage (e.g., `0.5` represents 50% of the original height).
630
+ * You can also supply arithmetic expressions (e.g., `ih_mul_0.5`). Height
631
+ * transformation –
632
+ * [Images](https://imagekit.io/docs/image-resize-and-crop#height---h) ·
633
+ * [Videos](https://imagekit.io/docs/video-resize-and-crop#height---h)
634
+ */
635
+ height?: number | string;
636
+ /**
637
+ * Specifies whether the output image (in JPEG or PNG) should be compressed
638
+ * losslessly. See
639
+ * [Lossless compression](https://imagekit.io/docs/image-optimization#lossless-webp-and-png---lo).
640
+ */
641
+ lossless?: boolean;
642
+ /**
643
+ * By default, ImageKit removes all metadata during automatic image compression.
644
+ * Set this to true to preserve metadata. See
645
+ * [Image metadata](https://imagekit.io/docs/image-optimization#image-metadata---md).
646
+ */
647
+ metadata?: boolean;
648
+ /**
649
+ * Named transformation reference. See
650
+ * [Named transformations](https://imagekit.io/docs/transformations#named-transformations).
651
+ */
652
+ named?: string;
653
+ /**
654
+ * Specifies the opacity level of the output image. See
655
+ * [Opacity](https://imagekit.io/docs/effects-and-enhancements#opacity---o).
656
+ */
657
+ opacity?: number;
658
+ /**
659
+ * If set to true, serves the original file without applying any transformations.
660
+ * See
661
+ * [Deliver original file as-is](https://imagekit.io/docs/core-delivery-features#deliver-original-file-as-is---orig-true).
662
+ */
663
+ original?: boolean;
664
+ /**
665
+ * Specifies an overlay to be applied on the parent image or video. ImageKit
666
+ * supports overlays including images, text, videos, subtitles, and solid colors.
667
+ * See
668
+ * [Overlay using layers](https://imagekit.io/docs/transformations#overlay-using-layers).
669
+ */
670
+ overlay?: Overlay;
671
+ /**
672
+ * Extracts a specific page or frame from multi-page or layered files (PDF, PSD,
673
+ * AI). For example, specify by number (e.g., `2`), a range (e.g., `3-4` for the
674
+ * 2nd and 3rd layers), or by name (e.g., `name-layer-4` for a PSD layer). See
675
+ * [Thumbnail extraction](https://imagekit.io/docs/vector-and-animated-images#get-thumbnail-from-psd-pdf-ai-eps-and-animated-files).
676
+ */
677
+ page?: number | string;
678
+ /**
679
+ * Specifies whether the output JPEG image should be rendered progressively.
680
+ * Progressive loading begins with a low-quality, pixelated version of the full
681
+ * image, which gradually improves to provide a faster perceived load time. See
682
+ * [Progressive images](https://imagekit.io/docs/image-optimization#progressive-image---pr).
683
+ */
684
+ progressive?: boolean;
685
+ /**
686
+ * Specifies the quality of the output image for lossy formats such as JPEG, WebP,
687
+ * and AVIF. A higher quality value results in a larger file size with better
688
+ * quality, while a lower value produces a smaller file size with reduced quality.
689
+ * See [Quality](https://imagekit.io/docs/image-optimization#quality---q).
690
+ */
691
+ quality?: number;
692
+ /**
693
+ * Specifies the corner radius for rounded corners (e.g., 20) or `max` for circular
694
+ * or oval shape. See
695
+ * [Radius](https://imagekit.io/docs/effects-and-enhancements#radius---r).
696
+ */
697
+ radius?: number | 'max';
698
+ /**
699
+ * Pass any transformation not directly supported by the SDK. This transformation
700
+ * string is appended to the URL as provided.
701
+ */
702
+ raw?: string;
703
+ /**
704
+ * Specifies the rotation angle in degrees. Positive values rotate the image
705
+ * clockwise; you can also use, for example, `N40` for counterclockwise rotation or
706
+ * `auto` to use the orientation specified in the image's EXIF data. For videos,
707
+ * only the following values are supported: 0, 90, 180, 270, or 360. See
708
+ * [Rotate](https://imagekit.io/docs/effects-and-enhancements#rotate---rt).
709
+ */
710
+ rotation?: number | string;
711
+ /**
712
+ * Adds a shadow beneath solid objects in an image with a transparent background.
713
+ * For AI-based drop shadows, refer to aiDropShadow. Pass `true` for a default
714
+ * shadow, or provide a string for a custom shadow. See
715
+ * [Shadow](https://imagekit.io/docs/effects-and-enhancements#shadow---e-shadow).
716
+ */
717
+ shadow?: true | string;
718
+ /**
719
+ * Sharpens the input image, highlighting edges and finer details. Pass `true` for
720
+ * default sharpening, or provide a numeric value for custom sharpening. See
721
+ * [Sharpen](https://imagekit.io/docs/effects-and-enhancements#sharpen---e-sharpen).
722
+ */
723
+ sharpen?: true | number;
724
+ /**
725
+ * Specifies the start offset (in seconds) for trimming videos, e.g., `5` or
726
+ * `10.5`. Arithmetic expressions are also supported. See
727
+ * [Trim videos – Start offset](https://imagekit.io/docs/trim-videos#start-offset---so).
728
+ */
729
+ startOffset?: number | string;
730
+ /**
731
+ * An array of resolutions for adaptive bitrate streaming, e.g., [`240`, `360`,
732
+ * `480`, `720`, `1080`]. See
733
+ * [Adaptive Bitrate Streaming](https://imagekit.io/docs/adaptive-bitrate-streaming).
734
+ */
735
+ streamingResolutions?: Array<StreamingResolution>;
736
+ /**
737
+ * Useful for images with a solid or nearly solid background and a central object.
738
+ * This parameter trims the background, leaving only the central object in the
739
+ * output image. See
740
+ * [Trim edges](https://imagekit.io/docs/effects-and-enhancements#trim-edges---t).
741
+ */
742
+ trim?: true | number;
743
+ /**
744
+ * Applies Unsharp Masking (USM), an image sharpening technique. Pass `true` for a
745
+ * default unsharp mask, or provide a string for a custom unsharp mask. See
746
+ * [Unsharp Mask](https://imagekit.io/docs/effects-and-enhancements#unsharp-mask---e-usm).
747
+ */
748
+ unsharpMask?: true | string;
749
+ /**
750
+ * Specifies the video codec, e.g., `h264`, `vp9`, `av1`, or `none`. See
751
+ * [Video codec](https://imagekit.io/docs/video-optimization#video-codec---vc).
752
+ */
753
+ videoCodec?: 'h264' | 'vp9' | 'av1' | 'none';
754
+ /**
755
+ * Specifies the width of the output. If a value between 0 and 1 is provided, it is
756
+ * treated as a percentage (e.g., `0.4` represents 40% of the original width). You
757
+ * can also supply arithmetic expressions (e.g., `iw_div_2`). Width transformation
758
+ * – [Images](https://imagekit.io/docs/image-resize-and-crop#width---w) ·
759
+ * [Videos](https://imagekit.io/docs/video-resize-and-crop#width---w)
760
+ */
761
+ width?: number | string;
762
+ /**
763
+ * Focus using cropped image coordinates - X coordinate. See
764
+ * [Focus using cropped coordinates](https://imagekit.io/docs/image-resize-and-crop#example---focus-using-cropped-image-coordinates).
765
+ */
766
+ x?: number | string;
767
+ /**
768
+ * Focus using cropped image coordinates - X center coordinate. See
769
+ * [Focus using cropped coordinates](https://imagekit.io/docs/image-resize-and-crop#example---focus-using-cropped-image-coordinates).
770
+ */
771
+ xCenter?: number | string;
772
+ /**
773
+ * Focus using cropped image coordinates - Y coordinate. See
774
+ * [Focus using cropped coordinates](https://imagekit.io/docs/image-resize-and-crop#example---focus-using-cropped-image-coordinates).
775
+ */
776
+ y?: number | string;
777
+ /**
778
+ * Focus using cropped image coordinates - Y center coordinate. See
779
+ * [Focus using cropped coordinates](https://imagekit.io/docs/image-resize-and-crop#example---focus-using-cropped-image-coordinates).
780
+ */
781
+ yCenter?: number | string;
782
+ /**
783
+ * Accepts a numeric value that determines how much to zoom in or out of the
784
+ * cropped area. It should be used in conjunction with fo-face or fo-<object_name>.
785
+ * See [Zoom](https://imagekit.io/docs/image-resize-and-crop#zoom---z).
786
+ */
787
+ zoom?: number;
788
+ }
789
+ /**
790
+ * By default, the transformation string is added as a query parameter in the URL,
791
+ * e.g., `?tr=w-100,h-100`. If you want to add the transformation string in the
792
+ * path of the URL, set this to `path`. Learn more in the
793
+ * [Transformations guide](https://imagekit.io/docs/transformations).
794
+ */
795
+ export type TransformationPosition = 'path' | 'query';
796
+ export interface VideoOverlay extends BaseOverlay {
797
+ /**
798
+ * Specifies the relative path to the video used as an overlay.
799
+ */
800
+ input: string;
801
+ type: 'video';
802
+ /**
803
+ * The input path can be included in the layer as either `i-{input}` or
804
+ * `ie-{base64_encoded_input}`. By default, the SDK determines the appropriate
805
+ * format automatically. To always use base64 encoding (`ie-{base64}`), set this
806
+ * parameter to `base64`. To always use plain text (`i-{input}`), set it to
807
+ * `plain`.
808
+ */
809
+ encoding?: 'auto' | 'plain' | 'base64';
810
+ /**
811
+ * Array of transformation to be applied to the overlay video. Except
812
+ * `streamingResolutions`, all other video transformations are supported. See
813
+ * [Video transformations](https://imagekit.io/docs/video-transformation).
814
+ */
815
+ transformation?: Array<Transformation>;
816
+ }
817
+ //# sourceMappingURL=shared.d.ts.map