@design-edito/tools 0.1.71 → 0.1.73

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 (496) hide show
  1. package/agnostic/arrays/find-duplicates/index.js +1 -1
  2. package/agnostic/arrays/index.js +8 -8
  3. package/agnostic/arrays/is-array-of/index.js +1 -1
  4. package/agnostic/arrays/make/index.js +1 -1
  5. package/agnostic/arrays/random-pick/index.js +5 -5
  6. package/agnostic/arrays/shuffle/index.js +1 -1
  7. package/agnostic/booleans/index.js +1 -1
  8. package/agnostic/booleans/is-falsy/index.js +1 -1
  9. package/agnostic/colors/complement-color/index.js +1 -1
  10. package/agnostic/colors/hex-to-rgb/index.js +1 -1
  11. package/agnostic/colors/hsl-to-rgb/index.js +1 -1
  12. package/agnostic/colors/index.js +12 -12
  13. package/agnostic/colors/lighten-color/index.js +3 -3
  14. package/agnostic/colors/rgb-to-hex/index.js +1 -1
  15. package/agnostic/colors/rgb-to-hsl/index.js +1 -1
  16. package/agnostic/colors/saturate-color/index.js +3 -3
  17. package/agnostic/css/bem/index.js +1 -1
  18. package/agnostic/css/generate-nice-color/index.js +1 -1
  19. package/agnostic/css/index.js +12 -12
  20. package/agnostic/css/is-valid-css-class-name/index.js +1 -1
  21. package/agnostic/css/styles-set/index.js +5 -5
  22. package/agnostic/errors/index.js +1 -1
  23. package/agnostic/errors/register/index.js +1 -1
  24. package/agnostic/errors/unknown-to-string/index.js +1 -1
  25. package/agnostic/html/get-node-ancestors/index.js +1 -1
  26. package/agnostic/html/get-position-inside-parent/index.js +1 -1
  27. package/agnostic/html/hyper-json/cast/index.js +5 -5
  28. package/agnostic/html/hyper-json/index.js +6 -6
  29. package/agnostic/html/hyper-json/method/index.js +1 -1
  30. package/agnostic/html/hyper-json/serialize/index.js +1 -1
  31. package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +5 -5
  32. package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +5 -5
  33. package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +5 -5
  34. package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +5 -5
  35. package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +5 -5
  36. package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +5 -5
  37. package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +5 -5
  38. package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +5 -5
  39. package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +5 -5
  40. package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +5 -5
  41. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +5 -5
  42. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +5 -5
  43. package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +5 -5
  44. package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +5 -5
  45. package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +5 -5
  46. package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +5 -5
  47. package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +5 -5
  48. package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +5 -5
  49. package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +5 -5
  50. package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +5 -5
  51. package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +5 -5
  52. package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +5 -5
  53. package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +5 -5
  54. package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +5 -5
  55. package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +5 -5
  56. package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +5 -5
  57. package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +5 -5
  58. package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +5 -5
  59. package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +5 -5
  60. package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +5 -5
  61. package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +5 -5
  62. package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +5 -5
  63. package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +5 -5
  64. package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +5 -5
  65. package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +5 -5
  66. package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +5 -5
  67. package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +5 -5
  68. package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +5 -5
  69. package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +5 -5
  70. package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +5 -5
  71. package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +5 -5
  72. package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +5 -5
  73. package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +5 -5
  74. package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +5 -5
  75. package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +5 -5
  76. package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +5 -5
  77. package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +5 -5
  78. package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +5 -5
  79. package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +5 -5
  80. package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +5 -5
  81. package/agnostic/html/hyper-json/smart-tags/index.js +1 -1
  82. package/agnostic/html/hyper-json/smart-tags/isolated/any/index.js +1 -1
  83. package/agnostic/html/hyper-json/smart-tags/isolated/array/index.js +1 -1
  84. package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +5 -5
  85. package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +5 -5
  86. package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +5 -5
  87. package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +5 -5
  88. package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +5 -5
  89. package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +5 -5
  90. package/agnostic/html/hyper-json/smart-tags/isolated/null/index.js +1 -1
  91. package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +5 -5
  92. package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +5 -5
  93. package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +5 -5
  94. package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +5 -5
  95. package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +5 -5
  96. package/agnostic/html/hyper-json/transformer/index.js +1 -1
  97. package/agnostic/html/hyper-json/tree/index.js +5 -5
  98. package/agnostic/html/hyper-json/types/index.js +1 -1
  99. package/agnostic/html/hyper-json/utils/index.js +5 -5
  100. package/agnostic/html/index.js +17 -17
  101. package/agnostic/html/insert-node/index.js +1 -1
  102. package/agnostic/html/placeholders/index.js +1 -1
  103. package/agnostic/html/replace-in-element/index.js +1 -1
  104. package/agnostic/html/sanitize/index.js +5 -5
  105. package/agnostic/html/selector-to-element/index.js +5 -5
  106. package/agnostic/html/string-to-nodes/index.js +6 -6
  107. package/agnostic/misc/assert/index.js +1 -1
  108. package/agnostic/misc/cast/index.js +1 -1
  109. package/agnostic/misc/crawler/index.js +1 -1
  110. package/agnostic/misc/crossenv/detect-runtime/index.js +1 -1
  111. package/agnostic/misc/crossenv/index.js +3 -3
  112. package/agnostic/misc/crossenv/types/index.js +1 -1
  113. package/agnostic/misc/crossenv/window/index.js +1 -1
  114. package/agnostic/misc/data-size/index.js +2 -2
  115. package/agnostic/misc/elo/index.js +1 -1
  116. package/agnostic/misc/get-current-downlink/index.js +1 -1
  117. package/agnostic/misc/index.js +17 -17
  118. package/agnostic/misc/is-constructor-function/index.js +1 -1
  119. package/agnostic/misc/is-nullish/index.js +1 -1
  120. package/agnostic/misc/logs/index.js +1 -1
  121. package/agnostic/misc/logs/logger/index.js +1 -1
  122. package/agnostic/misc/logs/make-text-block/index.js +1 -1
  123. package/agnostic/misc/logs/styles/index.js +1 -1
  124. package/agnostic/misc/lorem-ipsum/index.js +9 -9
  125. package/agnostic/misc/normalize-extension/index.js +1 -1
  126. package/agnostic/misc/outcome/index.js +1 -1
  127. package/agnostic/numbers/absolute-modulo/index.js +1 -1
  128. package/agnostic/numbers/clamp/index.js +1 -1
  129. package/agnostic/numbers/index.js +6 -6
  130. package/agnostic/numbers/interpolate/index.js +1 -1
  131. package/agnostic/numbers/responsive-harmonics/index.js +1 -1
  132. package/agnostic/numbers/round/index.js +1 -1
  133. package/agnostic/objects/deep-get-property/index.js +1 -1
  134. package/agnostic/objects/enums/index.js +1 -1
  135. package/agnostic/objects/enums/is-in-enum/index.js +1 -1
  136. package/agnostic/objects/flatten-getters/index.js +1 -1
  137. package/agnostic/objects/index.js +10 -10
  138. package/agnostic/objects/is-object/index.js +1 -1
  139. package/agnostic/objects/is-record/index.js +1 -1
  140. package/agnostic/objects/record-format/index.js +1 -1
  141. package/agnostic/objects/record-map/index.js +1 -1
  142. package/agnostic/objects/validation/index.js +1 -1
  143. package/agnostic/optim/index.js +4 -4
  144. package/agnostic/optim/memoize/index.js +1 -1
  145. package/agnostic/optim/throttle-debounce/index.js +1 -1
  146. package/agnostic/random/hex-char/index.js +1 -1
  147. package/agnostic/random/index.js +1 -1
  148. package/agnostic/random/random/index.js +1 -1
  149. package/agnostic/random/uuid/index.js +1 -1
  150. package/agnostic/regexps/index.js +1 -1
  151. package/agnostic/sanitization/index.js +4 -1280
  152. package/agnostic/strings/char-codes/index.js +1 -1
  153. package/agnostic/strings/index.js +8 -8
  154. package/agnostic/strings/matches/index.js +1 -1
  155. package/agnostic/strings/normalize-indent/index.js +1 -1
  156. package/agnostic/strings/replace-all/index.js +1 -1
  157. package/agnostic/strings/to-alphanum/index.js +1 -1
  158. package/agnostic/strings/trim/index.js +1 -1
  159. package/agnostic/time/dates/format-date/index.js +1 -1
  160. package/agnostic/time/dates/index.js +1 -1
  161. package/agnostic/time/duration/index.js +1 -1
  162. package/agnostic/time/index.js +9 -9
  163. package/agnostic/time/timeout/index.js +1 -1
  164. package/agnostic/time/transitions/index.js +1 -1
  165. package/agnostic/time/wait/index.js +1 -1
  166. package/chunks/chunk-24ZUWYIR.js +42 -0
  167. package/chunks/chunk-2JH4TCT2.js +34 -0
  168. package/chunks/chunk-2RUBEK4A.js +2456 -0
  169. package/chunks/chunk-2VJ4QISD.js +28 -0
  170. package/chunks/chunk-2VXYXVV2.js +164 -0
  171. package/chunks/chunk-32FNUJVW.js +31 -0
  172. package/chunks/chunk-36CTYZYA.js +28 -0
  173. package/chunks/chunk-37TRFYZT.js +35 -0
  174. package/chunks/chunk-3CGRUS5C.js +37 -0
  175. package/chunks/chunk-3CLGBOHN.js +29 -0
  176. package/chunks/chunk-3DL3U7UR.js +40 -0
  177. package/chunks/chunk-3G7KHSKB.js +60 -0
  178. package/chunks/chunk-3TKBCG7Y.js +40 -0
  179. package/chunks/chunk-42K3MQQ5.js +31 -0
  180. package/chunks/chunk-4A2IILES.js +16 -0
  181. package/chunks/chunk-4WM6K5IZ.js +30 -0
  182. package/chunks/chunk-4XBUJAQU.js +71 -0
  183. package/chunks/chunk-4XSDRT23.js +67 -0
  184. package/chunks/chunk-55EDDDIA.js +16 -0
  185. package/chunks/chunk-56OEXCBD.js +60 -0
  186. package/chunks/chunk-5YIC7NDS.js +18 -0
  187. package/chunks/chunk-5ZJ3KJPK.js +44 -0
  188. package/chunks/chunk-646R6BQZ.js +42 -0
  189. package/chunks/chunk-6ET4XJLF.js +40 -0
  190. package/chunks/chunk-6IYUA43Q.js +43 -0
  191. package/chunks/chunk-6NLNUGBI.js +42 -0
  192. package/chunks/chunk-6PIGLFM3.js +191 -0
  193. package/chunks/chunk-6SXCNPJ2.js +177 -0
  194. package/chunks/chunk-766BSKLU.js +2456 -0
  195. package/chunks/chunk-7J7CYOXU.js +36 -0
  196. package/chunks/chunk-A5XT7AXP.js +151 -0
  197. package/chunks/chunk-AHSYVIOF.js +18 -0
  198. package/chunks/chunk-ANPXBD2G.js +35 -0
  199. package/chunks/chunk-B446JIN3.js +29 -0
  200. package/chunks/chunk-BD56ZAYF.js +28 -0
  201. package/chunks/chunk-BE7OXZRK.js +42 -0
  202. package/chunks/chunk-BQMQIW77.js +69 -0
  203. package/chunks/chunk-BSUQNHAM.js +44 -0
  204. package/chunks/chunk-BWYH445G.js +43 -0
  205. package/chunks/chunk-C6QTHDDM.js +52 -0
  206. package/chunks/chunk-CA3UPHYO.js +42 -0
  207. package/chunks/chunk-CHUOCTRP.js +26 -0
  208. package/chunks/chunk-CNYSX2L2.js +38 -0
  209. package/chunks/chunk-CVDCTI7F.js +47 -0
  210. package/chunks/chunk-CWZFRUBS.js +41 -0
  211. package/chunks/chunk-DABLUUMY.js +24 -0
  212. package/chunks/chunk-DAOJPBZ6.js +18 -0
  213. package/chunks/chunk-DHCDZVLA.js +19 -0
  214. package/chunks/chunk-DPQRXSZH.js +42 -0
  215. package/chunks/chunk-DTETQT5O.js +15 -0
  216. package/chunks/chunk-E3F7QTXR.js +141 -0
  217. package/chunks/chunk-EOTOFHUR.js +42 -0
  218. package/chunks/chunk-F6CB5TEO.js +151 -0
  219. package/chunks/chunk-FB3GNE2B.js +48 -0
  220. package/chunks/chunk-FD5WR2A5.js +63 -0
  221. package/chunks/chunk-FE4DECBU.js +42 -0
  222. package/chunks/chunk-FF5NURFO.js +32 -0
  223. package/chunks/chunk-FJ3NTVCG.js +18 -0
  224. package/chunks/chunk-FNJX5BML.js +23 -0
  225. package/chunks/chunk-FS6LRTDK.js +42 -0
  226. package/chunks/chunk-G5RRNREY.js +37 -0
  227. package/chunks/chunk-GRDFCI63.js +21 -0
  228. package/chunks/chunk-H4LW6FP3.js +42 -0
  229. package/chunks/chunk-H5O26IRG.js +28 -0
  230. package/chunks/chunk-HFV7VACE.js +191 -0
  231. package/chunks/chunk-HGSQCJ55.js +65 -0
  232. package/chunks/chunk-HRNDUTZE.js +46 -0
  233. package/chunks/chunk-HWEGQVBQ.js +32 -0
  234. package/chunks/chunk-HWVEI3RH.js +31 -0
  235. package/chunks/chunk-IIMP6YT7.js +56 -0
  236. package/chunks/chunk-INGSSBWK.js +40 -0
  237. package/chunks/chunk-IPLOZP7L.js +20 -0
  238. package/chunks/chunk-IUURENUN.js +22 -0
  239. package/chunks/chunk-IV75M3KE.js +38 -0
  240. package/chunks/chunk-IWWAMCNR.js +16 -0
  241. package/chunks/chunk-IWZAUQGO.js +40 -0
  242. package/chunks/chunk-JUF5GSDE.js +37 -0
  243. package/chunks/chunk-JWF5EKM2.js +127 -0
  244. package/chunks/chunk-KBFSUJ57.js +40 -0
  245. package/chunks/chunk-KJAEVOIW.js +42 -0
  246. package/chunks/chunk-LFSYWGO5.js +31 -0
  247. package/chunks/chunk-LMPEBXSU.js +31 -0
  248. package/chunks/chunk-MAOVZE34.js +20 -0
  249. package/chunks/chunk-N2T672IG.js +62 -0
  250. package/chunks/chunk-N32W4UQ6.js +16 -0
  251. package/chunks/chunk-NMYVJJXV.js +47 -0
  252. package/chunks/chunk-NOLQR5RW.js +42 -0
  253. package/chunks/chunk-OA7Y2A5T.js +42 -0
  254. package/chunks/chunk-OD7GR6ZF.js +56 -0
  255. package/chunks/chunk-ON6LC3HE.js +84 -0
  256. package/chunks/chunk-PAIUCLVK.js +35 -0
  257. package/chunks/chunk-QCOO4PV5.js +54 -0
  258. package/chunks/chunk-QDVDHFMZ.js +39 -0
  259. package/chunks/chunk-QH64MYGA.js +45 -0
  260. package/chunks/chunk-QLDN574K.js +39 -0
  261. package/chunks/chunk-QLOMT4DL.js +21 -0
  262. package/chunks/chunk-QPHK5QI7.js +4072 -0
  263. package/chunks/chunk-QVPS2BCJ.js +29 -0
  264. package/chunks/chunk-QWFEYLHG.js +79 -0
  265. package/chunks/chunk-QWZ4ZNFA.js +63 -0
  266. package/chunks/chunk-RTUTFCLC.js +40 -0
  267. package/chunks/chunk-RWO53U4X.js +39 -0
  268. package/chunks/chunk-SA2IY5LN.js +35 -0
  269. package/chunks/chunk-SX4DSRPU.js +24 -0
  270. package/chunks/chunk-TGVYEQIA.js +38 -0
  271. package/chunks/chunk-UBCUVSEV.js +35 -0
  272. package/chunks/chunk-UK2F7CWI.js +29 -0
  273. package/chunks/chunk-UK4HNSEJ.js +42 -0
  274. package/chunks/chunk-V3GX7SIJ.js +28 -0
  275. package/chunks/chunk-V3L55I2S.js +43 -0
  276. package/chunks/chunk-VROZGPC5.js +45 -0
  277. package/chunks/chunk-W3RXHN5I.js +38 -0
  278. package/chunks/chunk-WAHPAZQS.js +60 -0
  279. package/chunks/chunk-WHAUJMMG.js +32 -0
  280. package/chunks/chunk-WJ3XV35I.js +28 -0
  281. package/chunks/chunk-WJYMX7SS.js +21 -0
  282. package/chunks/chunk-X33GT7VY.js +28 -0
  283. package/chunks/chunk-XFMKYZKH.js +164 -0
  284. package/chunks/chunk-XRUSQWPJ.js +173 -0
  285. package/chunks/chunk-YKPA3MQL.js +31 -0
  286. package/chunks/chunk-YY6DTDMO.js +177 -0
  287. package/chunks/chunk-ZEZCYPLQ.js +43 -0
  288. package/chunks/chunk-ZJTWDCNZ.js +34 -0
  289. package/chunks/chunk-ZSUG52DO.js +40 -0
  290. package/components/Comp/index.js +1 -1
  291. package/node/@aws-s3/index.js +15 -5
  292. package/node/@aws-s3/storage/directory/copy-dir/index.d.ts +35 -0
  293. package/node/@aws-s3/storage/directory/copy-dir/index.js +9 -0
  294. package/node/@aws-s3/storage/directory/index.d.ts +5 -0
  295. package/node/@aws-s3/storage/directory/index.js +22 -0
  296. package/node/@aws-s3/storage/directory/list/index.d.ts +17 -0
  297. package/node/@aws-s3/storage/directory/list/index.js +9 -0
  298. package/node/@aws-s3/storage/directory/move-dir/index.d.ts +33 -0
  299. package/node/@aws-s3/storage/directory/move-dir/index.js +9 -0
  300. package/node/@aws-s3/storage/directory/remove-dir/index.d.ts +31 -0
  301. package/node/@aws-s3/storage/directory/remove-dir/index.js +9 -0
  302. package/node/@aws-s3/storage/file/copy/index.d.ts +30 -0
  303. package/node/@aws-s3/storage/file/copy/index.js +9 -0
  304. package/node/@aws-s3/storage/file/download/index.d.ts +15 -15
  305. package/node/@aws-s3/storage/file/download/index.js +2 -2
  306. package/node/@aws-s3/storage/file/exists/index.d.ts +23 -0
  307. package/node/@aws-s3/storage/file/exists/index.js +9 -0
  308. package/node/@aws-s3/storage/file/index.d.ts +6 -1
  309. package/node/@aws-s3/storage/file/index.js +25 -5
  310. package/node/@aws-s3/storage/file/move/index.d.ts +33 -0
  311. package/node/@aws-s3/storage/file/move/index.js +9 -0
  312. package/node/@aws-s3/storage/file/remove/index.d.ts +17 -0
  313. package/node/@aws-s3/storage/file/remove/index.js +9 -0
  314. package/node/@aws-s3/storage/file/stat/index.d.ts +24 -0
  315. package/node/@aws-s3/storage/file/stat/index.js +9 -0
  316. package/node/@aws-s3/storage/file/upload/index.d.ts +13 -19
  317. package/node/@aws-s3/storage/file/upload/index.js +2 -2
  318. package/node/@aws-s3/storage/index.d.ts +2 -1
  319. package/node/@aws-s3/storage/index.js +18 -5
  320. package/node/@design-edito/index.js +1 -1
  321. package/node/@express/@multer/index.js +2 -2
  322. package/node/@express/index.js +2 -2
  323. package/node/@google-cloud/index.js +22 -17
  324. package/node/@google-cloud/storage/bucket/get-metadata/index.js +2 -2
  325. package/node/@google-cloud/storage/bucket/index.d.ts +4 -2
  326. package/node/@google-cloud/storage/bucket/index.js +15 -7
  327. package/node/@google-cloud/storage/directory/copy-dir/index.d.ts +22 -0
  328. package/node/@google-cloud/storage/directory/copy-dir/index.js +9 -0
  329. package/node/@google-cloud/storage/directory/index.d.ts +5 -0
  330. package/node/@google-cloud/storage/directory/index.js +22 -0
  331. package/node/@google-cloud/storage/directory/list/index.d.ts +17 -0
  332. package/node/@google-cloud/storage/directory/list/index.js +9 -0
  333. package/node/@google-cloud/storage/directory/move-dir/index.d.ts +31 -0
  334. package/node/@google-cloud/storage/directory/move-dir/index.js +9 -0
  335. package/node/@google-cloud/storage/directory/remove-dir/index.d.ts +31 -0
  336. package/node/@google-cloud/storage/directory/remove-dir/index.js +9 -0
  337. package/node/@google-cloud/storage/file/copy/index.d.ts +21 -10
  338. package/node/@google-cloud/storage/file/copy/index.js +2 -2
  339. package/node/@google-cloud/storage/file/download/index.d.ts +2 -2
  340. package/node/@google-cloud/storage/file/download/index.js +2 -2
  341. package/node/@google-cloud/storage/file/exists/index.js +2 -2
  342. package/node/@google-cloud/storage/file/generate-signed-url/index.d.ts +2 -2
  343. package/node/@google-cloud/storage/file/generate-signed-url/index.js +2 -2
  344. package/node/@google-cloud/storage/file/get-metadata/index.d.ts +2 -2
  345. package/node/@google-cloud/storage/file/get-metadata/index.js +2 -2
  346. package/node/@google-cloud/storage/file/get-permissions/index.d.ts +2 -2
  347. package/node/@google-cloud/storage/file/get-permissions/index.js +2 -2
  348. package/node/@google-cloud/storage/file/index.d.ts +3 -2
  349. package/node/@google-cloud/storage/file/index.js +26 -22
  350. package/node/@google-cloud/storage/file/move/index.d.ts +24 -12
  351. package/node/@google-cloud/storage/file/move/index.js +2 -2
  352. package/node/@google-cloud/storage/file/remove/index.d.ts +24 -0
  353. package/node/@google-cloud/storage/file/remove/index.js +9 -0
  354. package/node/@google-cloud/storage/file/revoke-signed-urls/index.d.ts +6 -6
  355. package/node/@google-cloud/storage/file/revoke-signed-urls/index.js +5 -5
  356. package/node/@google-cloud/storage/file/stat/index.d.ts +25 -0
  357. package/node/@google-cloud/storage/file/stat/index.js +9 -0
  358. package/node/@google-cloud/storage/file/update-metadata/index.d.ts +3 -3
  359. package/node/@google-cloud/storage/file/update-metadata/index.js +2 -2
  360. package/node/@google-cloud/storage/file/upload/index.d.ts +5 -6
  361. package/node/@google-cloud/storage/file/upload/index.js +2 -2
  362. package/node/@google-cloud/storage/index.d.ts +2 -1
  363. package/node/@google-cloud/storage/index.js +25 -17
  364. package/node/cloud-storage/clients/index.d.ts +13 -0
  365. package/node/cloud-storage/clients/index.js +13 -0
  366. package/node/cloud-storage/index.d.ts +2 -4
  367. package/node/cloud-storage/index.js +60 -24
  368. package/node/cloud-storage/operations/copy-dir/index.d.ts +15 -0
  369. package/node/cloud-storage/operations/copy-dir/index.js +14 -0
  370. package/node/cloud-storage/operations/copy-file/index.d.ts +15 -0
  371. package/node/cloud-storage/operations/copy-file/index.js +14 -0
  372. package/node/cloud-storage/operations/download-file/index.d.ts +16 -0
  373. package/node/cloud-storage/operations/download-file/index.js +14 -0
  374. package/node/cloud-storage/operations/exists-file/index.d.ts +13 -0
  375. package/node/cloud-storage/operations/exists-file/index.js +14 -0
  376. package/node/cloud-storage/operations/index.d.ts +12 -3
  377. package/node/cloud-storage/operations/index.js +91 -19
  378. package/node/cloud-storage/operations/list-dir/index.d.ts +13 -0
  379. package/node/cloud-storage/operations/list-dir/index.js +14 -0
  380. package/node/cloud-storage/operations/move-dir/index.d.ts +15 -0
  381. package/node/cloud-storage/operations/move-dir/index.js +14 -0
  382. package/node/cloud-storage/operations/move-file/index.d.ts +15 -0
  383. package/node/cloud-storage/operations/move-file/index.js +14 -0
  384. package/node/cloud-storage/operations/remove-dir/index.d.ts +15 -0
  385. package/node/cloud-storage/operations/remove-dir/index.js +14 -0
  386. package/node/cloud-storage/operations/remove-file/index.d.ts +15 -0
  387. package/node/cloud-storage/operations/remove-file/index.js +14 -0
  388. package/node/cloud-storage/operations/stat-file/index.d.ts +15 -0
  389. package/node/cloud-storage/operations/stat-file/index.js +14 -0
  390. package/node/cloud-storage/operations/upload-file/index.d.ts +16 -0
  391. package/node/cloud-storage/operations/upload-file/index.js +14 -0
  392. package/node/encryption/@aes-256-gcm/buffer/index.js +3 -3
  393. package/node/encryption/@aes-256-gcm/index.js +4 -4
  394. package/node/encryption/@aes-256-gcm/uint8-array/index.js +2 -2
  395. package/node/encryption/index.js +7 -7
  396. package/node/encryption/key/index.js +2 -2
  397. package/node/files/index.js +4 -4
  398. package/node/files/is-in-directory/index.js +1 -1
  399. package/node/files/read-write/index.js +1 -1
  400. package/node/files/subpaths/index.js +1 -1
  401. package/node/ftps/directory/copy-dir/index.d.ts +28 -0
  402. package/node/ftps/directory/copy-dir/index.js +9 -0
  403. package/node/ftps/directory/index.d.ts +5 -0
  404. package/node/ftps/directory/index.js +22 -0
  405. package/node/ftps/directory/list/index.d.ts +12 -0
  406. package/node/ftps/directory/list/index.js +9 -0
  407. package/node/ftps/directory/move-dir/index.d.ts +26 -0
  408. package/node/ftps/directory/move-dir/index.js +9 -0
  409. package/node/ftps/directory/remove-dir/index.d.ts +25 -0
  410. package/node/ftps/directory/remove-dir/index.js +9 -0
  411. package/node/ftps/file/copy/index.d.ts +28 -0
  412. package/node/ftps/file/copy/index.js +9 -0
  413. package/node/ftps/file/download/index.d.ts +2 -2
  414. package/node/ftps/file/download/index.js +2 -2
  415. package/node/ftps/file/exists/index.d.ts +21 -0
  416. package/node/ftps/file/exists/index.js +9 -0
  417. package/node/ftps/file/index.d.ts +6 -1
  418. package/node/ftps/file/index.js +25 -5
  419. package/node/ftps/file/move/index.d.ts +38 -0
  420. package/node/ftps/file/move/index.js +9 -0
  421. package/node/ftps/file/remove/index.d.ts +20 -0
  422. package/node/ftps/file/remove/index.js +9 -0
  423. package/node/ftps/file/stat/index.d.ts +17 -0
  424. package/node/ftps/file/stat/index.js +9 -0
  425. package/node/ftps/file/upload/index.d.ts +3 -3
  426. package/node/ftps/file/upload/index.js +2 -2
  427. package/node/ftps/index.d.ts +2 -1
  428. package/node/ftps/index.js +17 -4
  429. package/node/images/format/index.js +3 -3
  430. package/node/images/index.js +38 -38
  431. package/node/images/prepare/index.js +38 -38
  432. package/node/images/transform/_utils/color-schema/index.js +3 -3
  433. package/node/images/transform/_utils/operation-names/index.js +1 -1
  434. package/node/images/transform/_utils/positions/index.js +3 -3
  435. package/node/images/transform/blur/index.js +3 -3
  436. package/node/images/transform/brighten/index.js +3 -3
  437. package/node/images/transform/compose/index.js +5 -5
  438. package/node/images/transform/extend/index.js +4 -4
  439. package/node/images/transform/extract/index.js +3 -3
  440. package/node/images/transform/flatten/index.js +4 -4
  441. package/node/images/transform/flip/index.js +3 -3
  442. package/node/images/transform/flop/index.js +3 -3
  443. package/node/images/transform/frame/backgrounds/create-line-background/index.d.ts +2 -2
  444. package/node/images/transform/frame/backgrounds/create-line-background/index.js +3 -3
  445. package/node/images/transform/frame/backgrounds/create-tile-background/index.d.ts +2 -2
  446. package/node/images/transform/frame/backgrounds/create-tile-background/index.js +3 -3
  447. package/node/images/transform/frame/index.js +7 -7
  448. package/node/images/transform/hue-rotate/index.js +3 -3
  449. package/node/images/transform/index.js +36 -36
  450. package/node/images/transform/lighten/index.js +3 -3
  451. package/node/images/transform/lineate-levels/index.js +3 -3
  452. package/node/images/transform/modulate/index.js +3 -3
  453. package/node/images/transform/normalize/index.js +3 -3
  454. package/node/images/transform/operations/_utils/compose/index.js +1 -1
  455. package/node/images/transform/operations/_utils/frame/backgrounds/create-line-background/index.js +5 -5
  456. package/node/images/transform/operations/_utils/frame/backgrounds/create-tile-background/index.js +1 -1
  457. package/node/images/transform/operations/_utils/frame/create-color-palette/index.js +6 -6
  458. package/node/images/transform/operations/_utils/frame/extract-colors-from-image/index.js +1 -1
  459. package/node/images/transform/operations/_utils/frame/index.js +10 -10
  460. package/node/images/transform/operations/_utils/positions/index.js +1 -1
  461. package/node/images/transform/operations/_utils/scale/index.js +1 -1
  462. package/node/images/transform/resize/index.js +4 -4
  463. package/node/images/transform/rotate/index.js +3 -3
  464. package/node/images/transform/saturate/index.js +3 -3
  465. package/node/images/transform/scale/index.js +4 -4
  466. package/node/process/index.js +1 -1
  467. package/node/process/on-exit/index.js +1 -1
  468. package/node/sftp/directory/copy-dir/index.d.ts +28 -0
  469. package/node/sftp/directory/copy-dir/index.js +9 -0
  470. package/node/sftp/directory/index.d.ts +5 -0
  471. package/node/sftp/directory/index.js +22 -0
  472. package/node/sftp/directory/list/index.d.ts +12 -0
  473. package/node/sftp/directory/list/index.js +9 -0
  474. package/node/sftp/directory/move-dir/index.d.ts +26 -0
  475. package/node/sftp/directory/move-dir/index.js +9 -0
  476. package/node/sftp/directory/remove-dir/index.d.ts +25 -0
  477. package/node/sftp/directory/remove-dir/index.js +9 -0
  478. package/node/sftp/file/copy/index.d.ts +28 -0
  479. package/node/sftp/file/copy/index.js +9 -0
  480. package/node/sftp/file/download/index.d.ts +2 -2
  481. package/node/sftp/file/download/index.js +2 -2
  482. package/node/sftp/file/exists/index.d.ts +21 -0
  483. package/node/sftp/file/exists/index.js +9 -0
  484. package/node/sftp/file/index.d.ts +6 -1
  485. package/node/sftp/file/index.js +25 -5
  486. package/node/sftp/file/move/index.d.ts +38 -0
  487. package/node/sftp/file/move/index.js +9 -0
  488. package/node/sftp/file/remove/index.d.ts +20 -0
  489. package/node/sftp/file/remove/index.js +9 -0
  490. package/node/sftp/file/stat/index.d.ts +18 -0
  491. package/node/sftp/file/stat/index.js +9 -0
  492. package/node/sftp/file/upload/index.d.ts +3 -3
  493. package/node/sftp/file/upload/index.js +2 -2
  494. package/node/sftp/index.d.ts +2 -1
  495. package/node/sftp/index.js +17 -4
  496. package/package.json +3 -2
@@ -1,28 +1,22 @@
1
1
  import { Readable } from 'node:stream';
2
- import { S3 } from 'aws-sdk';
2
+ import { S3Client, PutObjectCommandInput } from '@aws-sdk/client-s3';
3
+ import { Upload } from '@aws-sdk/lib-storage';
3
4
  import { Outcome } from '../../../../../agnostic/misc/outcome';
4
5
  export type UploadOptions = {
5
- fileMetadata?: S3.Types.PutObjectRequest;
6
- uploadSettings?: S3.ManagedUpload.ManagedUploadOptions;
6
+ fileMetadata?: Partial<PutObjectCommandInput>;
7
+ uploadSettings?: ConstructorParameters<typeof Upload>[0];
7
8
  overwrite?: boolean;
8
9
  };
9
10
  /**
10
- * Uploads a file stream to a specified Amazon S3 bucket.
11
+ * Uploads a file stream to a specified Amazon S3 bucket using AWS SDK v3.
11
12
  *
12
- * This function uploads the provided file stream to the specified bucket at the given target path.
13
- * The upload can be customized using optional `fileMetadata` and `uploadSettings`.
14
- * If the `overwrite` option is false and a file already exists at the target path, the upload is aborted.
13
+ * If `overwrite` is false and the target file exists, upload is aborted.
15
14
  *
16
- * @param {Readable} fileStream - The file content to be uploaded.
17
- * @param {string} targetPath - The target path where the file will be saved in the bucket.
18
- * @param {string} bucketName - The name of the S3 bucket.
19
- * @param {S3} s3 - The AWS S3 client instance.
20
- * @param {UploadOptions} [options] - Optional options to configure the upload process.
21
- * @param {S3.Types.PutObjectRequest} [options.fileMetadata] - Additional metadata for the file being uploaded.
22
- * @param {S3.ManagedUpload.ManagedUploadOptions} [options.uploadSettings] - Settings for the managed upload process.
23
- * @param {boolean} [options.overwrite] - If false and a file exists at the target path, the upload is aborted.
24
- * @returns {Promise<Outcome.Either<true, string>>} A promise that resolves to an Outcome.Either.
25
- * - On success: Outcome.makeSuccess(true) indicating the upload was successful.
26
- * - On failure: Outcome.makeFailure(errStr) with an error message if the upload fails.
15
+ * @param {S3Client} s3 - The AWS S3 v3 client instance.
16
+ * @param {string} bucketName - The S3 bucket name.
17
+ * @param {string} targetPath - The key to upload the file to.
18
+ * @param {Readable} fileStream - The file content as a stream.
19
+ * @param {UploadOptions} [options] - Optional configuration.
20
+ * @returns {Promise<Outcome.Either<true, string>>}
27
21
  */
28
- export declare function upload(fileStream: Readable, targetPath: string, bucketName: string, s3: S3, options?: UploadOptions): Promise<Outcome.Either<true, string>>;
22
+ export declare function upload(s3: S3Client, bucketName: string, targetPath: string, fileStream: Readable, options?: UploadOptions): Promise<Outcome.Either<true, string>>;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  upload
3
- } from "../../../../../chunks/chunk-O7UEQQ6H.js";
3
+ } from "../../../../../chunks/chunk-FD5WR2A5.js";
4
4
  import "../../../../../chunks/chunk-JMU5PDBD.js";
5
5
  import "../../../../../chunks/chunk-FENXVJYO.js";
6
- import "../../../../../chunks/chunk-NZLE2WMY.js";
6
+ import "../../../../../chunks/chunk-WSFCRVEQ.js";
7
7
  export {
8
8
  upload
9
9
  };
@@ -1,2 +1,3 @@
1
+ import * as Directory from './directory';
1
2
  import * as File from './file';
2
- export { File };
3
+ export { Directory, File };
@@ -1,12 +1,25 @@
1
- import "../../../chunks/chunk-2H5RIOJO.js";
1
+ import "../../../chunks/chunk-MAOVZE34.js";
2
+ import {
3
+ directory_exports
4
+ } from "../../../chunks/chunk-H5O26IRG.js";
2
5
  import {
3
6
  file_exports
4
- } from "../../../chunks/chunk-BWXVJB4I.js";
5
- import "../../../chunks/chunk-26QQ56SS.js";
6
- import "../../../chunks/chunk-O7UEQQ6H.js";
7
+ } from "../../../chunks/chunk-IWZAUQGO.js";
8
+ import "../../../chunks/chunk-QWZ4ZNFA.js";
9
+ import "../../../chunks/chunk-ON6LC3HE.js";
10
+ import "../../../chunks/chunk-4XSDRT23.js";
11
+ import "../../../chunks/chunk-3TKBCG7Y.js";
12
+ import "../../../chunks/chunk-VROZGPC5.js";
13
+ import "../../../chunks/chunk-FD5WR2A5.js";
14
+ import "../../../chunks/chunk-4XBUJAQU.js";
15
+ import "../../../chunks/chunk-C6QTHDDM.js";
16
+ import "../../../chunks/chunk-IV75M3KE.js";
17
+ import "../../../chunks/chunk-ZEZCYPLQ.js";
18
+ import "../../../chunks/chunk-ZSUG52DO.js";
7
19
  import "../../../chunks/chunk-JMU5PDBD.js";
8
20
  import "../../../chunks/chunk-FENXVJYO.js";
9
- import "../../../chunks/chunk-NZLE2WMY.js";
21
+ import "../../../chunks/chunk-WSFCRVEQ.js";
10
22
  export {
23
+ directory_exports as Directory,
11
24
  file_exports as File
12
25
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  thumbnails_exports
3
3
  } from "../../chunks/chunk-JBSS64SA.js";
4
- import "../../chunks/chunk-NZLE2WMY.js";
4
+ import "../../chunks/chunk-WSFCRVEQ.js";
5
5
  export {
6
6
  thumbnails_exports as Thumbnails
7
7
  };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  useMulterMiddleware
3
- } from "../../../chunks/chunk-7JUKBN7P.js";
3
+ } from "../../../chunks/chunk-QCOO4PV5.js";
4
4
  import "../../../chunks/chunk-JMU5PDBD.js";
5
5
  import "../../../chunks/chunk-FENXVJYO.js";
6
- import "../../../chunks/chunk-NZLE2WMY.js";
6
+ import "../../../chunks/chunk-WSFCRVEQ.js";
7
7
  export {
8
8
  useMulterMiddleware
9
9
  };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  multer_exports
3
- } from "../../chunks/chunk-7JUKBN7P.js";
3
+ } from "../../chunks/chunk-QCOO4PV5.js";
4
4
  import "../../chunks/chunk-JMU5PDBD.js";
5
5
  import "../../chunks/chunk-FENXVJYO.js";
6
- import "../../chunks/chunk-NZLE2WMY.js";
6
+ import "../../chunks/chunk-WSFCRVEQ.js";
7
7
  export {
8
8
  multer_exports as Multer
9
9
  };
@@ -1,24 +1,29 @@
1
1
  import {
2
2
  storage_exports
3
- } from "../../chunks/chunk-NSM7QLE4.js";
4
- import "../../chunks/chunk-H73SGDQI.js";
5
- import "../../chunks/chunk-XZ7II65Z.js";
6
- import "../../chunks/chunk-FTT6ZCCS.js";
7
- import "../../chunks/chunk-TU3UWOAE.js";
8
- import "../../chunks/chunk-YW5ASSIQ.js";
9
- import "../../chunks/chunk-SZQHLC4K.js";
10
- import "../../chunks/chunk-TXGV4KJD.js";
11
- import "../../chunks/chunk-OPU4CANL.js";
12
- import "../../chunks/chunk-GXICX4F6.js";
13
- import "../../chunks/chunk-KFMYB672.js";
14
- import "../../chunks/chunk-UUSZJMJB.js";
15
- import "../../chunks/chunk-T55QIYYV.js";
16
- import "../../chunks/chunk-7BCQCDGQ.js";
17
- import "../../chunks/chunk-IARWH6LC.js";
18
- import "../../chunks/chunk-7FJKDVBE.js";
3
+ } from "../../chunks/chunk-DABLUUMY.js";
4
+ import "../../chunks/chunk-BD56ZAYF.js";
5
+ import "../../chunks/chunk-ZNA7SWFK.js";
6
+ import "../../chunks/chunk-WJ3XV35I.js";
7
+ import "../../chunks/chunk-3G7KHSKB.js";
8
+ import "../../chunks/chunk-HWVEI3RH.js";
9
+ import "../../chunks/chunk-PAIUCLVK.js";
10
+ import "../../chunks/chunk-42K3MQQ5.js";
11
+ import "../../chunks/chunk-YKPA3MQL.js";
12
+ import "../../chunks/chunk-G5RRNREY.js";
13
+ import "../../chunks/chunk-6IYUA43Q.js";
14
+ import "../../chunks/chunk-BWYH445G.js";
15
+ import "../../chunks/chunk-QLDN574K.js";
16
+ import "../../chunks/chunk-7J7CYOXU.js";
17
+ import "../../chunks/chunk-W3RXHN5I.js";
18
+ import "../../chunks/chunk-FB3GNE2B.js";
19
+ import "../../chunks/chunk-V3L55I2S.js";
20
+ import "../../chunks/chunk-CWZFRUBS.js";
21
+ import "../../chunks/chunk-2JH4TCT2.js";
22
+ import "../../chunks/chunk-5VHFXWFM.js";
23
+ import "../../chunks/chunk-37TRFYZT.js";
19
24
  import "../../chunks/chunk-JMU5PDBD.js";
20
25
  import "../../chunks/chunk-FENXVJYO.js";
21
- import "../../chunks/chunk-NZLE2WMY.js";
26
+ import "../../chunks/chunk-WSFCRVEQ.js";
22
27
  export {
23
28
  storage_exports as Storage
24
29
  };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  getMetadata
3
- } from "../../../../../chunks/chunk-FTT6ZCCS.js";
3
+ } from "../../../../../chunks/chunk-ZNA7SWFK.js";
4
4
  import "../../../../../chunks/chunk-JMU5PDBD.js";
5
5
  import "../../../../../chunks/chunk-FENXVJYO.js";
6
- import "../../../../../chunks/chunk-NZLE2WMY.js";
6
+ import "../../../../../chunks/chunk-WSFCRVEQ.js";
7
7
  export {
8
8
  getMetadata
9
9
  };
@@ -1,3 +1,5 @@
1
1
  import * as GetMetadata from './get-metadata';
2
- import * as List from './list';
3
- export { GetMetadata, List };
2
+ import * as List from '../directory/list';
3
+ import * as MoveDir from '../directory/move-dir';
4
+ import * as RemoveDir from '../directory/remove-dir';
5
+ export { GetMetadata, List, MoveDir, RemoveDir };
@@ -1,14 +1,22 @@
1
- import "../../../../chunks/chunk-H73SGDQI.js";
2
- import {
3
- list_exports
4
- } from "../../../../chunks/chunk-XZ7II65Z.js";
1
+ import "../../../../chunks/chunk-BD56ZAYF.js";
5
2
  import {
6
3
  get_metadata_exports
7
- } from "../../../../chunks/chunk-FTT6ZCCS.js";
4
+ } from "../../../../chunks/chunk-ZNA7SWFK.js";
5
+ import {
6
+ move_dir_exports
7
+ } from "../../../../chunks/chunk-BWYH445G.js";
8
+ import {
9
+ remove_dir_exports
10
+ } from "../../../../chunks/chunk-QLDN574K.js";
11
+ import {
12
+ list_exports
13
+ } from "../../../../chunks/chunk-37TRFYZT.js";
8
14
  import "../../../../chunks/chunk-JMU5PDBD.js";
9
15
  import "../../../../chunks/chunk-FENXVJYO.js";
10
- import "../../../../chunks/chunk-NZLE2WMY.js";
16
+ import "../../../../chunks/chunk-WSFCRVEQ.js";
11
17
  export {
12
18
  get_metadata_exports as GetMetadata,
13
- list_exports as List
19
+ list_exports as List,
20
+ move_dir_exports as MoveDir,
21
+ remove_dir_exports as RemoveDir
14
22
  };
@@ -0,0 +1,22 @@
1
+ import { Bucket, GetFileOptions, CopyOptions as GCSCopyOptions } from '@google-cloud/storage';
2
+ import { Outcome } from '../../../../../agnostic/misc/outcome';
3
+ export type CopyDirOptions = {
4
+ getFileOptions?: GetFileOptions;
5
+ copyOptions?: GCSCopyOptions;
6
+ /**
7
+ * If false (default), existing target files will be skipped (not overwritten).
8
+ */
9
+ overwrite?: boolean;
10
+ };
11
+ /** Recursively copies every object under `sourceDir` to the same relative path
12
+ * beneath `targetDir` within a single GCS bucket.
13
+ * @param {Bucket} bucket - The GCS bucket instance.
14
+ * @param {string} sourceDir - The source directory path (prefix) to copy from.
15
+ * @param {string} targetDir - The target directory path (prefix) to copy to.
16
+ * @param {CopyDirOptions} [options] - Optional parameters for the operation.
17
+ * @param {boolean} [options.overwrite=false] - Whether to overwrite existing files at target.
18
+ * @returns {Promise<Outcome.Either<true, string>>} A promise that resolves to an `Outcome.Either`:
19
+ * - On success: `Outcome.makeSuccess(true)` indicating the copy was successful.
20
+ * - On failure: `Outcome.makeFailure(errStr)` with an error message if the copy fails.
21
+ * */
22
+ export declare function copyDir(bucket: Bucket, sourceDir: string, targetDir: string, options?: CopyDirOptions): Promise<Outcome.Either<true, string>>;
@@ -0,0 +1,9 @@
1
+ import {
2
+ copyDir
3
+ } from "../../../../../chunks/chunk-V3L55I2S.js";
4
+ import "../../../../../chunks/chunk-JMU5PDBD.js";
5
+ import "../../../../../chunks/chunk-FENXVJYO.js";
6
+ import "../../../../../chunks/chunk-WSFCRVEQ.js";
7
+ export {
8
+ copyDir
9
+ };
@@ -0,0 +1,5 @@
1
+ import * as CopyDir from './copy-dir';
2
+ import * as List from './list';
3
+ import * as MoveDir from './move-dir';
4
+ import * as RemoveDir from './remove-dir';
5
+ export { CopyDir, List, MoveDir, RemoveDir };
@@ -0,0 +1,22 @@
1
+ import "../../../../chunks/chunk-WJ3XV35I.js";
2
+ import {
3
+ move_dir_exports
4
+ } from "../../../../chunks/chunk-BWYH445G.js";
5
+ import {
6
+ remove_dir_exports
7
+ } from "../../../../chunks/chunk-QLDN574K.js";
8
+ import {
9
+ copy_dir_exports
10
+ } from "../../../../chunks/chunk-V3L55I2S.js";
11
+ import {
12
+ list_exports
13
+ } from "../../../../chunks/chunk-37TRFYZT.js";
14
+ import "../../../../chunks/chunk-JMU5PDBD.js";
15
+ import "../../../../chunks/chunk-FENXVJYO.js";
16
+ import "../../../../chunks/chunk-WSFCRVEQ.js";
17
+ export {
18
+ copy_dir_exports as CopyDir,
19
+ list_exports as List,
20
+ move_dir_exports as MoveDir,
21
+ remove_dir_exports as RemoveDir
22
+ };
@@ -0,0 +1,17 @@
1
+ import { Bucket, FileOptions } from '@google-cloud/storage';
2
+ import { Outcome } from '../../../../../agnostic/misc/outcome';
3
+ export type ListOptions = {
4
+ fileOptions?: FileOptions;
5
+ };
6
+ /**
7
+ * Lists all direct children file paths under a given directory prefix in a GCS bucket.
8
+ *
9
+ * This function returns only the immediate files (not recursive) under the specified directory prefix.
10
+ *
11
+ * @param {Bucket} bucket - The GCS bucket to list files from.
12
+ * @param {string} directoryPath - The directory prefix to list files under.
13
+ * @param {ListOptions} [options] - Optional configuration for the listing.
14
+ * @param {FileOptions} [options.fileOptions] - Additional options for file retrieval.
15
+ * @returns {Promise<Outcome.Either<string[], string>>} Returns either a success with an array of file paths, or a failure with an error message.
16
+ */
17
+ export declare function list(bucket: Bucket, directoryPath: string, options?: ListOptions): Promise<Outcome.Either<string[], string>>;
@@ -0,0 +1,9 @@
1
+ import {
2
+ list
3
+ } from "../../../../../chunks/chunk-37TRFYZT.js";
4
+ import "../../../../../chunks/chunk-JMU5PDBD.js";
5
+ import "../../../../../chunks/chunk-FENXVJYO.js";
6
+ import "../../../../../chunks/chunk-WSFCRVEQ.js";
7
+ export {
8
+ list
9
+ };
@@ -0,0 +1,31 @@
1
+ import { Bucket, FileOptions, CopyOptions as GCSCopyOptions, DeleteFileOptions as GCSDeleteOptions } from '@google-cloud/storage';
2
+ import { Outcome } from '../../../../../agnostic/misc/outcome';
3
+ export type MoveDirOptions = {
4
+ fileOptions?: FileOptions;
5
+ copyOptions?: GCSCopyOptions;
6
+ deleteOptions?: GCSDeleteOptions;
7
+ /**
8
+ * If false and any destination file exists, the operation aborts with an error.
9
+ * Defaults to false.
10
+ */
11
+ overwrite?: boolean;
12
+ };
13
+ /**
14
+ * Recursively moves every object under `sourceDir` to the corresponding path
15
+ * under `targetDir` within the same bucket.
16
+ *
17
+ * Example: moving `a/b/` to `x/y/` copies
18
+ * `a/b/file.txt` → `x/y/file.txt` and then deletes the original.
19
+ *
20
+ * If `overwrite` is false (default), the operation aborts if any destination file
21
+ * already exists.
22
+ *
23
+ * @param {Bucket} bucket - The GCS bucket instance.
24
+ * @param {string} sourceDir - The source directory prefix to move from.
25
+ * @param {string} targetDir - The target directory prefix to move to.
26
+ * @param {MoveDirOptions} [options] - Optional parameters for the operation.
27
+ * @returns {Promise<Outcome.Either<true, string>>}
28
+ * - On success: `Outcome.makeSuccess(true)`.
29
+ * - On failure: `Outcome.makeFailure(errStr)`.
30
+ */
31
+ export declare function moveDir(bucket: Bucket, sourceDir: string, targetDir: string, options?: MoveDirOptions): Promise<Outcome.Either<true, string>>;
@@ -0,0 +1,9 @@
1
+ import {
2
+ moveDir
3
+ } from "../../../../../chunks/chunk-BWYH445G.js";
4
+ import "../../../../../chunks/chunk-JMU5PDBD.js";
5
+ import "../../../../../chunks/chunk-FENXVJYO.js";
6
+ import "../../../../../chunks/chunk-WSFCRVEQ.js";
7
+ export {
8
+ moveDir
9
+ };
@@ -0,0 +1,31 @@
1
+ import { Bucket, DeleteFileOptions as GCSDeleteFileOptions } from '@google-cloud/storage';
2
+ import { Outcome } from '../../../../../agnostic/misc/outcome';
3
+ export type RemoveDirOptions = {
4
+ /** Extra parameters forwarded to `bucket.deleteFiles`. */
5
+ deleteOptions?: GCSDeleteFileOptions & {
6
+ force?: boolean;
7
+ };
8
+ /**
9
+ * If **true** (default) the function ignores the case where the prefix is
10
+ * already empty / does not exist and simply returns success.
11
+ * If **false** and no objects are found, the function returns a failure.
12
+ * @default true
13
+ */
14
+ ignoreMissing?: boolean;
15
+ };
16
+ /**
17
+ * Recursively deletes all objects under a directory prefix in a GCS bucket
18
+ * (including the directory placeholder itself, if present).
19
+ *
20
+ * @param {Bucket} bucket - The GCS bucket instance.
21
+ * @param {string} directoryPath - The “directory” prefix to delete.
22
+ * @param {RemoveDirOptions} [options] - Optional configuration.
23
+ * @param {GCSDeleteFileOptions & {force?: boolean}} [options.deleteOptions] - Extra delete parameters.
24
+ * @param {boolean} [options.ignoreMissing=true] - Whether to ignore an empty/missing prefix.
25
+ * @returns {Promise<Outcome.Either<true, string>>}
26
+ * - On success: `Outcome.makeSuccess(true)` if deletion succeeds
27
+ * (or prefix absent and `ignoreMissing` is true).
28
+ * - On failure: `Outcome.makeFailure(errStr)` if deletion fails
29
+ * or prefix absent and `ignoreMissing` is false.
30
+ */
31
+ export declare function removeDir(bucket: Bucket, directoryPath: string, options?: RemoveDirOptions): Promise<Outcome.Either<true, string>>;
@@ -0,0 +1,9 @@
1
+ import {
2
+ removeDir
3
+ } from "../../../../../chunks/chunk-QLDN574K.js";
4
+ import "../../../../../chunks/chunk-JMU5PDBD.js";
5
+ import "../../../../../chunks/chunk-FENXVJYO.js";
6
+ import "../../../../../chunks/chunk-WSFCRVEQ.js";
7
+ export {
8
+ removeDir
9
+ };
@@ -1,21 +1,32 @@
1
1
  import { Bucket, FileOptions, CopyOptions as GCSFileCopyOptions } from '@google-cloud/storage';
2
2
  import { Outcome } from '../../../../../agnostic/misc/outcome';
3
3
  export type CopyOptions = {
4
+ /** Additional options for constructing the `File` handles. */
4
5
  fileOptions?: FileOptions;
6
+ /** Additional parameters forwarded to the underlying `copy` call. */
5
7
  copyOptions?: GCSFileCopyOptions;
8
+ /**
9
+ * If `false` (default) and `targetPath` already exists, the copy aborts with
10
+ * an error.
11
+ * @default false
12
+ */
13
+ overwrite?: boolean;
6
14
  };
7
15
  /**
8
16
  * Copies a file from one location to another within a Google Cloud Storage bucket.
9
17
  *
10
- * This function copies the file located at `sourcePath` to `targetPath` in the same or a different Google Cloud Storage bucket.
11
- * It can be customized using optional `fileOptions` and `copyOptions` to control the copying behavior.
18
+ * If `overwrite` is **false** (default) and the destination object already
19
+ * exists, the operation aborts.
12
20
  *
13
- * @param {string} sourcePath - The path of the source file to be copied.
14
- * @param {string} targetPath - The target path where the file will be copied to.
15
- * @param {Bucket} bucket - The Google Cloud Storage bucket object containing the file to be copied.
16
- * @param {CopyOptions} [options] - Optional configuration options for the file copy operation.
17
- * @returns {Promise<Outcome.Either<true, string>>} A promise that resolves to an `Outcome.Either`.
18
- * - On success: `Outcome.makeSuccess(true)` indicating the file was successfully copied.
19
- * - On failure: `Outcome.makeFailure(errStr)` with an error message if the copy operation fails.
21
+ * @param {Bucket} bucket - The Google Cloud Storage bucket containing the file.
22
+ * @param {string} sourcePath - The path of the source object to copy.
23
+ * @param {string} targetPath - The destination path for the copied object.
24
+ * @param {CopyOptions} [options] - Optional copy configuration.
25
+ * @param {FileOptions} [options.fileOptions] - Extra options for `bucket.file`.
26
+ * @param {GCSFileCopyOptions} [options.copyOptions] - Extra options for `file.copy`.
27
+ * @param {boolean} [options.overwrite=false] - Whether to overwrite an existing destination object.
28
+ * @returns {Promise<Outcome.Either<true, string>>}
29
+ * - On success: `Outcome.makeSuccess(true)`.
30
+ * - On failure: `Outcome.makeFailure(errStr)`.
20
31
  */
21
- export declare function copy(sourcePath: string, targetPath: string, bucket: Bucket, options?: CopyOptions): Promise<Outcome.Either<true, string>>;
32
+ export declare function copy(bucket: Bucket, sourcePath: string, targetPath: string, options?: CopyOptions): Promise<Outcome.Either<true, string>>;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  copy
3
- } from "../../../../../chunks/chunk-SZQHLC4K.js";
3
+ } from "../../../../../chunks/chunk-CWZFRUBS.js";
4
4
  import "../../../../../chunks/chunk-JMU5PDBD.js";
5
5
  import "../../../../../chunks/chunk-FENXVJYO.js";
6
- import "../../../../../chunks/chunk-NZLE2WMY.js";
6
+ import "../../../../../chunks/chunk-WSFCRVEQ.js";
7
7
  export {
8
8
  copy
9
9
  };
@@ -11,11 +11,11 @@ export type DownloadOptions = {
11
11
  * This function downloads a file from the given bucket and path, returning the file content as a `Readable`.
12
12
  * The download process can be customized using optional `fileOptions` and `downloadOptions`.
13
13
  *
14
- * @param {string} sourcePath - The path of the file to be downloaded in the bucket.
15
14
  * @param {Bucket} bucket - The Google Cloud Storage bucket object from which to download the file.
15
+ * @param {string} sourcePath - The path of the file to be downloaded in the bucket.
16
16
  * @param {DownloadOptions} [options] - Optional configuration options for the download.
17
17
  * @returns {Promise<Outcome.Either<Readable, string>>} A promise that resolves to an `Outcome.Either`.
18
18
  * - On success: `Outcome.makeSuccess(stream)` containing the downloaded file's content as a `Readable`.
19
19
  * - On failure: `Outcome.makeFailure(errStr)` with an error message if the download fails.
20
20
  */
21
- export declare function download(sourcePath: string, bucket: Bucket, options?: DownloadOptions): Promise<Outcome.Either<Readable, string>>;
21
+ export declare function download(bucket: Bucket, sourcePath: string, options?: DownloadOptions): Promise<Outcome.Either<Readable, string>>;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  download
3
- } from "../../../../../chunks/chunk-IARWH6LC.js";
3
+ } from "../../../../../chunks/chunk-2JH4TCT2.js";
4
4
  import "../../../../../chunks/chunk-JMU5PDBD.js";
5
5
  import "../../../../../chunks/chunk-FENXVJYO.js";
6
- import "../../../../../chunks/chunk-NZLE2WMY.js";
6
+ import "../../../../../chunks/chunk-WSFCRVEQ.js";
7
7
  export {
8
8
  download
9
9
  };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  exists
3
- } from "../../../../../chunks/chunk-TXGV4KJD.js";
3
+ } from "../../../../../chunks/chunk-5VHFXWFM.js";
4
4
  import "../../../../../chunks/chunk-JMU5PDBD.js";
5
5
  import "../../../../../chunks/chunk-FENXVJYO.js";
6
- import "../../../../../chunks/chunk-NZLE2WMY.js";
6
+ import "../../../../../chunks/chunk-WSFCRVEQ.js";
7
7
  export {
8
8
  exists
9
9
  };
@@ -11,8 +11,8 @@ export type GenerateSignedUrlOptions = {
11
11
  * allows users to perform an action on the file (e.g., `read`, `write`) for a limited time as defined by the `expiresOn` parameter.
12
12
  * The behavior can be customized using optional `fileOptions` and `getSignedUrlOptions`.
13
13
  *
14
- * @param {string} sourcePath - The path of the file for which the signed URL is being generated.
15
14
  * @param {Bucket} bucket - The Google Cloud Storage bucket object containing the file.
15
+ * @param {string} sourcePath - The path of the file for which the signed URL is being generated.
16
16
  * @param {GetSignedUrlConfig['action']} action - The action allowed by the signed URL (e.g., 'read', 'write', 'delete').
17
17
  * @param {GetSignedUrlConfig['expires']} expiresOn - The expiration time of the signed URL, after which it is no longer valid.
18
18
  * @param {GenerateSignedUrlOptions} [options] - Optional configuration options for generating the signed URL.
@@ -20,4 +20,4 @@ export type GenerateSignedUrlOptions = {
20
20
  * - On success: `Outcome.makeSuccess(url)` containing the generated signed URL.
21
21
  * - On failure: `Outcome.makeFailure(errStr)` with an error message if the signed URL generation fails.
22
22
  */
23
- export declare function generateSignedUrl(sourcePath: string, bucket: Bucket, action: GetSignedUrlConfig['action'], expiresOn: GetSignedUrlConfig['expires'], options?: GenerateSignedUrlOptions): Promise<Outcome.Either<string, string>>;
23
+ export declare function generateSignedUrl(bucket: Bucket, sourcePath: string, action: GetSignedUrlConfig['action'], expiresOn: GetSignedUrlConfig['expires'], options?: GenerateSignedUrlOptions): Promise<Outcome.Either<string, string>>;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  generateSignedUrl
3
- } from "../../../../../chunks/chunk-OPU4CANL.js";
3
+ } from "../../../../../chunks/chunk-PAIUCLVK.js";
4
4
  import "../../../../../chunks/chunk-JMU5PDBD.js";
5
5
  import "../../../../../chunks/chunk-FENXVJYO.js";
6
- import "../../../../../chunks/chunk-NZLE2WMY.js";
6
+ import "../../../../../chunks/chunk-WSFCRVEQ.js";
7
7
  export {
8
8
  generateSignedUrl
9
9
  };
@@ -10,8 +10,8 @@ export type GetMetadataOptions = {
10
10
  * This function fetches the metadata for a file located at `sourcePath` in the given bucket.
11
11
  * It can be customized using optional `fileOptions` and `getFileMetadataOptions` to control the retrieval behavior.
12
12
  *
13
- * @param {string} sourcePath - The path of the file whose metadata is to be fetched.
14
13
  * @param {Bucket} bucket - The Google Cloud Storage bucket object containing the file whose metadata is being retrieved.
14
+ * @param {string} sourcePath - The path of the file whose metadata is to be fetched.
15
15
  * @param {GetMetadataOptions} [options] - Optional configuration options for the file metadata retrieval.
16
16
  * @returns {Promise<Outcome.Either<FileMetadata, string>>} A promise that resolves to an `Outcome.Either`.
17
17
  * - On success: `Outcome.makeSuccess(metadata)` containing the file's metadata.
@@ -19,4 +19,4 @@ export type GetMetadataOptions = {
19
19
  *
20
20
  * @throws {Error} Throws an error if the metadata retrieval operation fails (e.g., file not found, insufficient permissions, etc.).
21
21
  */
22
- export declare function getMetadata(sourcePath: string, bucket: Bucket, options?: GetMetadataOptions): Promise<Outcome.Either<FileMetadata, string>>;
22
+ export declare function getMetadata(bucket: Bucket, sourcePath: string, options?: GetMetadataOptions): Promise<Outcome.Either<FileMetadata, string>>;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  getMetadata
3
- } from "../../../../../chunks/chunk-KFMYB672.js";
3
+ } from "../../../../../chunks/chunk-42K3MQQ5.js";
4
4
  import "../../../../../chunks/chunk-JMU5PDBD.js";
5
5
  import "../../../../../chunks/chunk-FENXVJYO.js";
6
- import "../../../../../chunks/chunk-NZLE2WMY.js";
6
+ import "../../../../../chunks/chunk-WSFCRVEQ.js";
7
7
  export {
8
8
  getMetadata
9
9
  };
@@ -9,11 +9,11 @@ export type GetPermissionsOptions = {
9
9
  *
10
10
  * This function fetches the ACL settings of a given file to determine the permissions assigned to different users or roles.
11
11
  *
12
- * @param {string} sourcePath - The path of the file whose permissions need to be retrieved.
13
12
  * @param {Bucket} bucket - The Google Cloud Storage bucket containing the file.
13
+ * @param {string} sourcePath - The path of the file whose permissions need to be retrieved.
14
14
  * @param {GetPermissionsOptions} [options] - Optional configuration options for the file and ACL retrieval.
15
15
  * @returns {Promise<Outcome.Either<any, string>>} A promise that resolves to an `Outcome.Either`.
16
16
  * - On success: `Outcome.makeSuccess(acl)` containing the file's ACL settings.
17
17
  * - On failure: `Outcome.makeFailure(errStr)` with an error message if the ACL retrieval fails.
18
18
  */
19
- export declare function getPermissions(sourcePath: string, bucket: Bucket, options?: GetPermissionsOptions): Promise<Outcome.Either<any, string>>;
19
+ export declare function getPermissions(bucket: Bucket, sourcePath: string, options?: GetPermissionsOptions): Promise<Outcome.Either<any, string>>;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  getPermissions
3
- } from "../../../../../chunks/chunk-GXICX4F6.js";
3
+ } from "../../../../../chunks/chunk-YKPA3MQL.js";
4
4
  import "../../../../../chunks/chunk-JMU5PDBD.js";
5
5
  import "../../../../../chunks/chunk-FENXVJYO.js";
6
- import "../../../../../chunks/chunk-NZLE2WMY.js";
6
+ import "../../../../../chunks/chunk-WSFCRVEQ.js";
7
7
  export {
8
8
  getPermissions
9
9
  };
@@ -1,12 +1,13 @@
1
1
  import * as Copy from './copy';
2
2
  import * as Download from './download';
3
- import * as Erase from './erase';
4
3
  import * as Exists from './exists';
5
4
  import * as GenerateSignedUrl from './generate-signed-url';
6
5
  import * as GetMetaData from './get-metadata';
7
6
  import * as GetPermissions from './get-permissions';
8
7
  import * as Move from './move';
8
+ import * as Remove from './remove';
9
9
  import * as RevokeSignedUrls from './revoke-signed-urls';
10
+ import * as Stat from './stat';
10
11
  import * as UpdateMetadata from './update-metadata';
11
12
  import * as Upload from './upload';
12
- export { Copy, Download, Erase, Exists, GenerateSignedUrl, GetMetaData, GetPermissions, Move, RevokeSignedUrls, UpdateMetadata, Upload };
13
+ export { Copy, Download, Exists, GenerateSignedUrl, GetMetaData, GetPermissions, Move, Remove, RevokeSignedUrls, Stat, UpdateMetadata, Upload };