@openclaw/googlechat 2026.5.20-beta.2 → 2026.5.22

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 (1101) hide show
  1. package/node_modules/agent-base/LICENSE +22 -0
  2. package/node_modules/agent-base/README.md +69 -0
  3. package/node_modules/agent-base/dist/helpers.d.ts +15 -0
  4. package/node_modules/agent-base/dist/helpers.d.ts.map +1 -0
  5. package/node_modules/agent-base/dist/helpers.js +66 -0
  6. package/node_modules/agent-base/dist/helpers.js.map +1 -0
  7. package/node_modules/agent-base/dist/index.d.ts +41 -0
  8. package/node_modules/agent-base/dist/index.d.ts.map +1 -0
  9. package/node_modules/agent-base/dist/index.js +178 -0
  10. package/node_modules/agent-base/dist/index.js.map +1 -0
  11. package/node_modules/agent-base/package.json +46 -0
  12. package/node_modules/base64-js/LICENSE +21 -0
  13. package/node_modules/base64-js/README.md +34 -0
  14. package/node_modules/base64-js/base64js.min.js +1 -0
  15. package/node_modules/base64-js/index.d.ts +3 -0
  16. package/node_modules/base64-js/index.js +150 -0
  17. package/node_modules/base64-js/package.json +47 -0
  18. package/node_modules/bignumber.js/CHANGELOG.md +381 -0
  19. package/node_modules/bignumber.js/LICENCE.md +26 -0
  20. package/node_modules/bignumber.js/README.md +289 -0
  21. package/node_modules/bignumber.js/bignumber.d.mts +6 -0
  22. package/node_modules/bignumber.js/bignumber.d.ts +5 -0
  23. package/node_modules/bignumber.js/bignumber.js +2922 -0
  24. package/node_modules/bignumber.js/bignumber.mjs +2907 -0
  25. package/node_modules/bignumber.js/doc/API.html +2249 -0
  26. package/node_modules/bignumber.js/package.json +60 -0
  27. package/node_modules/bignumber.js/types.d.ts +1821 -0
  28. package/node_modules/buffer-equal-constant-time/.npmignore +2 -0
  29. package/node_modules/buffer-equal-constant-time/.travis.yml +4 -0
  30. package/node_modules/buffer-equal-constant-time/LICENSE.txt +12 -0
  31. package/node_modules/buffer-equal-constant-time/README.md +50 -0
  32. package/node_modules/buffer-equal-constant-time/index.js +41 -0
  33. package/node_modules/buffer-equal-constant-time/package.json +21 -0
  34. package/node_modules/buffer-equal-constant-time/test.js +42 -0
  35. package/node_modules/data-uri-to-buffer/README.md +88 -0
  36. package/node_modules/data-uri-to-buffer/dist/index.d.ts +15 -0
  37. package/node_modules/data-uri-to-buffer/dist/index.js +53 -0
  38. package/node_modules/data-uri-to-buffer/dist/index.js.map +1 -0
  39. package/node_modules/data-uri-to-buffer/package.json +62 -0
  40. package/node_modules/data-uri-to-buffer/src/index.ts +68 -0
  41. package/node_modules/debug/LICENSE +20 -0
  42. package/node_modules/debug/README.md +481 -0
  43. package/node_modules/debug/package.json +64 -0
  44. package/node_modules/debug/src/browser.js +272 -0
  45. package/node_modules/debug/src/common.js +292 -0
  46. package/node_modules/debug/src/index.js +10 -0
  47. package/node_modules/debug/src/node.js +263 -0
  48. package/node_modules/ecdsa-sig-formatter/CODEOWNERS +1 -0
  49. package/node_modules/ecdsa-sig-formatter/LICENSE +201 -0
  50. package/node_modules/ecdsa-sig-formatter/README.md +65 -0
  51. package/node_modules/ecdsa-sig-formatter/package.json +46 -0
  52. package/node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.d.ts +17 -0
  53. package/node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.js +187 -0
  54. package/node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js +23 -0
  55. package/node_modules/extend/.editorconfig +20 -0
  56. package/node_modules/extend/.eslintrc +17 -0
  57. package/node_modules/extend/.jscs.json +175 -0
  58. package/node_modules/extend/.travis.yml +230 -0
  59. package/node_modules/extend/CHANGELOG.md +83 -0
  60. package/node_modules/extend/LICENSE +23 -0
  61. package/node_modules/extend/README.md +81 -0
  62. package/node_modules/extend/component.json +32 -0
  63. package/node_modules/extend/index.js +117 -0
  64. package/node_modules/extend/package.json +42 -0
  65. package/node_modules/fetch-blob/LICENSE +21 -0
  66. package/node_modules/fetch-blob/README.md +106 -0
  67. package/node_modules/fetch-blob/file.d.ts +2 -0
  68. package/node_modules/fetch-blob/file.js +49 -0
  69. package/node_modules/fetch-blob/from.d.ts +26 -0
  70. package/node_modules/fetch-blob/from.js +100 -0
  71. package/node_modules/fetch-blob/index.d.ts +3 -0
  72. package/node_modules/fetch-blob/index.js +250 -0
  73. package/node_modules/fetch-blob/package.json +56 -0
  74. package/node_modules/fetch-blob/streams.cjs +51 -0
  75. package/node_modules/formdata-polyfill/FormData.js +441 -0
  76. package/node_modules/formdata-polyfill/LICENSE +21 -0
  77. package/node_modules/formdata-polyfill/README.md +145 -0
  78. package/node_modules/formdata-polyfill/esm.min.d.ts +5 -0
  79. package/node_modules/formdata-polyfill/esm.min.js +40 -0
  80. package/node_modules/formdata-polyfill/formdata-to-blob.js +39 -0
  81. package/node_modules/formdata-polyfill/formdata.min.js +21 -0
  82. package/node_modules/formdata-polyfill/package.json +50 -0
  83. package/node_modules/gaxios/LICENSE +202 -0
  84. package/node_modules/gaxios/README.md +240 -0
  85. package/node_modules/gaxios/build/cjs/browser-test/browser-test-runner.d.ts +1 -0
  86. package/node_modules/gaxios/build/cjs/browser-test/browser-test-runner.js +109 -0
  87. package/node_modules/gaxios/build/cjs/browser-test/browser-test-runner.js.map +1 -0
  88. package/node_modules/gaxios/build/cjs/browser-test/test.browser.d.ts +1 -0
  89. package/node_modules/gaxios/build/cjs/browser-test/test.browser.js +81 -0
  90. package/node_modules/gaxios/build/cjs/browser-test/test.browser.js.map +1 -0
  91. package/node_modules/gaxios/build/cjs/src/common.d.ts +329 -0
  92. package/node_modules/gaxios/build/cjs/src/common.js +311 -0
  93. package/node_modules/gaxios/build/cjs/src/common.js.map +1 -0
  94. package/node_modules/gaxios/build/cjs/src/gaxios.d.ts +104 -0
  95. package/node_modules/gaxios/build/cjs/src/gaxios.js +564 -0
  96. package/node_modules/gaxios/build/cjs/src/gaxios.js.map +1 -0
  97. package/node_modules/gaxios/build/cjs/src/index.d.ts +15 -0
  98. package/node_modules/gaxios/build/cjs/src/index.js +48 -0
  99. package/node_modules/gaxios/build/cjs/src/index.js.map +1 -0
  100. package/node_modules/gaxios/build/cjs/src/interceptor.d.ts +25 -0
  101. package/node_modules/gaxios/build/cjs/src/interceptor.js +22 -0
  102. package/node_modules/gaxios/build/cjs/src/interceptor.js.map +1 -0
  103. package/node_modules/gaxios/build/cjs/src/retry.d.ts +8 -0
  104. package/node_modules/gaxios/build/cjs/src/retry.js +165 -0
  105. package/node_modules/gaxios/build/cjs/src/retry.js.map +1 -0
  106. package/node_modules/gaxios/build/cjs/src/util.cjs +16 -0
  107. package/node_modules/gaxios/build/cjs/src/util.cjs.map +1 -0
  108. package/node_modules/gaxios/build/cjs/src/util.d.cts +7 -0
  109. package/node_modules/gaxios/build/cjs/system-test/test.install.d.ts +1 -0
  110. package/node_modules/gaxios/build/cjs/system-test/test.install.js +128 -0
  111. package/node_modules/gaxios/build/cjs/system-test/test.install.js.map +1 -0
  112. package/node_modules/gaxios/build/cjs/test/test.getch.d.ts +1 -0
  113. package/node_modules/gaxios/build/cjs/test/test.getch.js +1444 -0
  114. package/node_modules/gaxios/build/cjs/test/test.getch.js.map +1 -0
  115. package/node_modules/gaxios/build/cjs/test/test.index.d.ts +1 -0
  116. package/node_modules/gaxios/build/cjs/test/test.index.js +61 -0
  117. package/node_modules/gaxios/build/cjs/test/test.index.js.map +1 -0
  118. package/node_modules/gaxios/build/cjs/test/test.retry.d.ts +1 -0
  119. package/node_modules/gaxios/build/cjs/test/test.retry.js +367 -0
  120. package/node_modules/gaxios/build/cjs/test/test.retry.js.map +1 -0
  121. package/node_modules/gaxios/build/cjs/tsconfig.cjs.tsbuildinfo +1 -0
  122. package/node_modules/gaxios/build/esm/browser-test/browser-test-runner.d.ts +1 -0
  123. package/node_modules/gaxios/build/esm/browser-test/browser-test-runner.js +71 -0
  124. package/node_modules/gaxios/build/esm/browser-test/browser-test-runner.js.map +1 -0
  125. package/node_modules/gaxios/build/esm/browser-test/test.browser.d.ts +1 -0
  126. package/node_modules/gaxios/build/esm/browser-test/test.browser.js +76 -0
  127. package/node_modules/gaxios/build/esm/browser-test/test.browser.js.map +1 -0
  128. package/node_modules/gaxios/build/esm/package.json +1 -0
  129. package/node_modules/gaxios/build/esm/src/common.d.ts +329 -0
  130. package/node_modules/gaxios/build/esm/src/common.js +303 -0
  131. package/node_modules/gaxios/build/esm/src/common.js.map +1 -0
  132. package/node_modules/gaxios/build/esm/src/gaxios.d.ts +104 -0
  133. package/node_modules/gaxios/build/esm/src/gaxios.js +557 -0
  134. package/node_modules/gaxios/build/esm/src/gaxios.js.map +1 -0
  135. package/node_modules/gaxios/build/esm/src/index.d.ts +15 -0
  136. package/node_modules/gaxios/build/esm/src/index.js +29 -0
  137. package/node_modules/gaxios/build/esm/src/index.js.map +1 -0
  138. package/node_modules/gaxios/build/esm/src/interceptor.d.ts +25 -0
  139. package/node_modules/gaxios/build/esm/src/interceptor.js +18 -0
  140. package/node_modules/gaxios/build/esm/src/interceptor.js.map +1 -0
  141. package/node_modules/gaxios/build/esm/src/retry.d.ts +8 -0
  142. package/node_modules/gaxios/build/esm/src/retry.js +162 -0
  143. package/node_modules/gaxios/build/esm/src/retry.js.map +1 -0
  144. package/node_modules/gaxios/build/esm/src/util.cjs +15 -0
  145. package/node_modules/gaxios/build/esm/src/util.cjs.map +1 -0
  146. package/node_modules/gaxios/build/esm/src/util.d.cts +7 -0
  147. package/node_modules/gaxios/build/esm/system-test/test.install.d.ts +1 -0
  148. package/node_modules/gaxios/build/esm/system-test/test.install.js +123 -0
  149. package/node_modules/gaxios/build/esm/system-test/test.install.js.map +1 -0
  150. package/node_modules/gaxios/build/esm/test/test.getch.d.ts +1 -0
  151. package/node_modules/gaxios/build/esm/test/test.getch.js +1406 -0
  152. package/node_modules/gaxios/build/esm/test/test.getch.js.map +1 -0
  153. package/node_modules/gaxios/build/esm/test/test.index.d.ts +1 -0
  154. package/node_modules/gaxios/build/esm/test/test.index.js +23 -0
  155. package/node_modules/gaxios/build/esm/test/test.index.js.map +1 -0
  156. package/node_modules/gaxios/build/esm/test/test.retry.d.ts +1 -0
  157. package/node_modules/gaxios/build/esm/test/test.retry.js +362 -0
  158. package/node_modules/gaxios/build/esm/test/test.retry.js.map +1 -0
  159. package/node_modules/gaxios/build/esm/tsconfig.tsbuildinfo +1 -0
  160. package/node_modules/gaxios/package.json +107 -0
  161. package/node_modules/gcp-metadata/LICENSE +202 -0
  162. package/node_modules/gcp-metadata/README.md +235 -0
  163. package/node_modules/gcp-metadata/build/src/gcp-residency.d.ts +57 -0
  164. package/node_modules/gcp-metadata/build/src/gcp-residency.js +114 -0
  165. package/node_modules/gcp-metadata/build/src/gcp-residency.js.map +1 -0
  166. package/node_modules/gcp-metadata/build/src/index.d.ts +141 -0
  167. package/node_modules/gcp-metadata/build/src/index.js +402 -0
  168. package/node_modules/gcp-metadata/build/src/index.js.map +1 -0
  169. package/node_modules/gcp-metadata/package.json +77 -0
  170. package/node_modules/google-auth-library/LICENSE +202 -0
  171. package/node_modules/google-auth-library/README.md +1504 -0
  172. package/node_modules/google-auth-library/build/src/auth/authclient.d.ts +298 -0
  173. package/node_modules/google-auth-library/build/src/auth/authclient.js +286 -0
  174. package/node_modules/google-auth-library/build/src/auth/awsclient.d.ts +115 -0
  175. package/node_modules/google-auth-library/build/src/auth/awsclient.js +154 -0
  176. package/node_modules/google-auth-library/build/src/auth/awsrequestsigner.d.ts +40 -0
  177. package/node_modules/google-auth-library/build/src/auth/awsrequestsigner.js +213 -0
  178. package/node_modules/google-auth-library/build/src/auth/baseexternalclient.d.ts +318 -0
  179. package/node_modules/google-auth-library/build/src/auth/baseexternalclient.js +477 -0
  180. package/node_modules/google-auth-library/build/src/auth/certificatesubjecttokensupplier.d.ts +60 -0
  181. package/node_modules/google-auth-library/build/src/auth/certificatesubjecttokensupplier.js +223 -0
  182. package/node_modules/google-auth-library/build/src/auth/computeclient.d.ts +37 -0
  183. package/node_modules/google-auth-library/build/src/auth/computeclient.js +118 -0
  184. package/node_modules/google-auth-library/build/src/auth/credentials.d.ts +76 -0
  185. package/node_modules/google-auth-library/build/src/auth/credentials.js +16 -0
  186. package/node_modules/google-auth-library/build/src/auth/defaultawssecuritycredentialssupplier.d.ts +79 -0
  187. package/node_modules/google-auth-library/build/src/auth/defaultawssecuritycredentialssupplier.js +199 -0
  188. package/node_modules/google-auth-library/build/src/auth/downscopedclient.d.ts +149 -0
  189. package/node_modules/google-auth-library/build/src/auth/downscopedclient.js +273 -0
  190. package/node_modules/google-auth-library/build/src/auth/envDetect.d.ts +11 -0
  191. package/node_modules/google-auth-library/build/src/auth/envDetect.js +97 -0
  192. package/node_modules/google-auth-library/build/src/auth/executable-response.d.ts +137 -0
  193. package/node_modules/google-auth-library/build/src/auth/executable-response.js +178 -0
  194. package/node_modules/google-auth-library/build/src/auth/externalAccountAuthorizedUserClient.d.ts +72 -0
  195. package/node_modules/google-auth-library/build/src/auth/externalAccountAuthorizedUserClient.js +233 -0
  196. package/node_modules/google-auth-library/build/src/auth/externalclient.d.ts +29 -0
  197. package/node_modules/google-auth-library/build/src/auth/externalclient.js +68 -0
  198. package/node_modules/google-auth-library/build/src/auth/filesubjecttokensupplier.d.ts +41 -0
  199. package/node_modules/google-auth-library/build/src/auth/filesubjecttokensupplier.js +84 -0
  200. package/node_modules/google-auth-library/build/src/auth/googleauth.d.ts +527 -0
  201. package/node_modules/google-auth-library/build/src/auth/googleauth.js +899 -0
  202. package/node_modules/google-auth-library/build/src/auth/iam.d.ts +23 -0
  203. package/node_modules/google-auth-library/build/src/auth/iam.js +44 -0
  204. package/node_modules/google-auth-library/build/src/auth/identitypoolclient.d.ts +132 -0
  205. package/node_modules/google-auth-library/build/src/auth/identitypoolclient.js +131 -0
  206. package/node_modules/google-auth-library/build/src/auth/idtokenclient.d.ts +27 -0
  207. package/node_modules/google-auth-library/build/src/auth/idtokenclient.js +56 -0
  208. package/node_modules/google-auth-library/build/src/auth/impersonated.d.ts +134 -0
  209. package/node_modules/google-auth-library/build/src/auth/impersonated.js +197 -0
  210. package/node_modules/google-auth-library/build/src/auth/jwtaccess.d.ts +61 -0
  211. package/node_modules/google-auth-library/build/src/auth/jwtaccess.js +201 -0
  212. package/node_modules/google-auth-library/build/src/auth/jwtclient.d.ts +137 -0
  213. package/node_modules/google-auth-library/build/src/auth/jwtclient.js +301 -0
  214. package/node_modules/google-auth-library/build/src/auth/loginticket.d.ts +140 -0
  215. package/node_modules/google-auth-library/build/src/auth/loginticket.js +60 -0
  216. package/node_modules/google-auth-library/build/src/auth/oauth2client.d.ts +610 -0
  217. package/node_modules/google-auth-library/build/src/auth/oauth2client.js +820 -0
  218. package/node_modules/google-auth-library/build/src/auth/oauth2common.d.ts +103 -0
  219. package/node_modules/google-auth-library/build/src/auth/oauth2common.js +189 -0
  220. package/node_modules/google-auth-library/build/src/auth/passthrough.d.ts +37 -0
  221. package/node_modules/google-auth-library/build/src/auth/passthrough.js +60 -0
  222. package/node_modules/google-auth-library/build/src/auth/pluggable-auth-client.d.ts +141 -0
  223. package/node_modules/google-auth-library/build/src/auth/pluggable-auth-client.js +220 -0
  224. package/node_modules/google-auth-library/build/src/auth/pluggable-auth-handler.d.ts +61 -0
  225. package/node_modules/google-auth-library/build/src/auth/pluggable-auth-handler.js +174 -0
  226. package/node_modules/google-auth-library/build/src/auth/refreshclient.d.ts +75 -0
  227. package/node_modules/google-auth-library/build/src/auth/refreshclient.js +160 -0
  228. package/node_modules/google-auth-library/build/src/auth/stscredentials.d.ts +125 -0
  229. package/node_modules/google-auth-library/build/src/auth/stscredentials.js +107 -0
  230. package/node_modules/google-auth-library/build/src/auth/urlsubjecttokensupplier.d.ts +57 -0
  231. package/node_modules/google-auth-library/build/src/auth/urlsubjecttokensupplier.js +71 -0
  232. package/node_modules/google-auth-library/build/src/crypto/browser/crypto.d.ts +27 -0
  233. package/node_modules/google-auth-library/build/src/crypto/browser/crypto.js +127 -0
  234. package/node_modules/google-auth-library/build/src/crypto/crypto.d.ts +8 -0
  235. package/node_modules/google-auth-library/build/src/crypto/crypto.js +54 -0
  236. package/node_modules/google-auth-library/build/src/crypto/node/crypto.d.ts +25 -0
  237. package/node_modules/google-auth-library/build/src/crypto/node/crypto.js +88 -0
  238. package/node_modules/google-auth-library/build/src/crypto/shared.d.ts +47 -0
  239. package/node_modules/google-auth-library/build/src/crypto/shared.js +32 -0
  240. package/node_modules/google-auth-library/build/src/gtoken/errorWithCode.d.ts +5 -0
  241. package/node_modules/google-auth-library/build/src/gtoken/errorWithCode.js +25 -0
  242. package/node_modules/google-auth-library/build/src/gtoken/getCredentials.d.ts +14 -0
  243. package/node_modules/google-auth-library/build/src/gtoken/getCredentials.js +132 -0
  244. package/node_modules/google-auth-library/build/src/gtoken/getToken.d.ts +23 -0
  245. package/node_modules/google-auth-library/build/src/gtoken/getToken.js +66 -0
  246. package/node_modules/google-auth-library/build/src/gtoken/googleToken.d.ts +73 -0
  247. package/node_modules/google-auth-library/build/src/gtoken/googleToken.js +125 -0
  248. package/node_modules/google-auth-library/build/src/gtoken/jwsSign.d.ts +33 -0
  249. package/node_modules/google-auth-library/build/src/gtoken/jwsSign.js +54 -0
  250. package/node_modules/google-auth-library/build/src/gtoken/revokeToken.d.ts +9 -0
  251. package/node_modules/google-auth-library/build/src/gtoken/revokeToken.js +34 -0
  252. package/node_modules/google-auth-library/build/src/gtoken/tokenHandler.d.ts +43 -0
  253. package/node_modules/google-auth-library/build/src/gtoken/tokenHandler.js +97 -0
  254. package/node_modules/google-auth-library/build/src/gtoken/tokenOptions.d.ts +44 -0
  255. package/node_modules/google-auth-library/build/src/gtoken/tokenOptions.js +16 -0
  256. package/node_modules/google-auth-library/build/src/index.d.ts +38 -0
  257. package/node_modules/google-auth-library/build/src/index.js +85 -0
  258. package/node_modules/google-auth-library/build/src/shared.cjs +22 -0
  259. package/node_modules/google-auth-library/build/src/shared.d.cts +7 -0
  260. package/node_modules/google-auth-library/build/src/util.d.ts +151 -0
  261. package/node_modules/google-auth-library/build/src/util.js +176 -0
  262. package/node_modules/google-auth-library/package.json +92 -0
  263. package/node_modules/google-logging-utils/LICENSE +202 -0
  264. package/node_modules/google-logging-utils/README.md +73 -0
  265. package/node_modules/google-logging-utils/build/src/colours.d.ts +29 -0
  266. package/node_modules/google-logging-utils/build/src/colours.js +81 -0
  267. package/node_modules/google-logging-utils/build/src/colours.js.map +1 -0
  268. package/node_modules/google-logging-utils/build/src/index.d.ts +1 -0
  269. package/node_modules/google-logging-utils/build/src/index.js +31 -0
  270. package/node_modules/google-logging-utils/build/src/index.js.map +1 -0
  271. package/node_modules/google-logging-utils/build/src/logging-utils.d.ts +222 -0
  272. package/node_modules/google-logging-utils/build/src/logging-utils.js +437 -0
  273. package/node_modules/google-logging-utils/build/src/logging-utils.js.map +1 -0
  274. package/node_modules/google-logging-utils/build/src/temporal.d.ts +45 -0
  275. package/node_modules/google-logging-utils/build/src/temporal.js +68 -0
  276. package/node_modules/google-logging-utils/build/src/temporal.js.map +1 -0
  277. package/node_modules/google-logging-utils/package.json +45 -0
  278. package/node_modules/https-proxy-agent/LICENSE +22 -0
  279. package/node_modules/https-proxy-agent/README.md +70 -0
  280. package/node_modules/https-proxy-agent/dist/index.d.ts +47 -0
  281. package/node_modules/https-proxy-agent/dist/index.d.ts.map +1 -0
  282. package/node_modules/https-proxy-agent/dist/index.js +180 -0
  283. package/node_modules/https-proxy-agent/dist/index.js.map +1 -0
  284. package/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +15 -0
  285. package/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts.map +1 -0
  286. package/node_modules/https-proxy-agent/dist/parse-proxy-response.js +101 -0
  287. package/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +1 -0
  288. package/node_modules/https-proxy-agent/package.json +50 -0
  289. package/node_modules/json-bigint/LICENSE +20 -0
  290. package/node_modules/json-bigint/README.md +240 -0
  291. package/node_modules/json-bigint/index.js +12 -0
  292. package/node_modules/json-bigint/lib/parse.js +443 -0
  293. package/node_modules/json-bigint/lib/stringify.js +384 -0
  294. package/node_modules/json-bigint/package.json +34 -0
  295. package/node_modules/jwa/LICENSE +17 -0
  296. package/node_modules/jwa/README.md +150 -0
  297. package/node_modules/jwa/index.js +266 -0
  298. package/node_modules/jwa/opslevel.yml +6 -0
  299. package/node_modules/jwa/package.json +37 -0
  300. package/node_modules/jws/CHANGELOG.md +56 -0
  301. package/node_modules/jws/LICENSE +17 -0
  302. package/node_modules/jws/index.js +22 -0
  303. package/node_modules/jws/lib/data-stream.js +55 -0
  304. package/node_modules/jws/lib/sign-stream.js +83 -0
  305. package/node_modules/jws/lib/tostring.js +10 -0
  306. package/node_modules/jws/lib/verify-stream.js +125 -0
  307. package/node_modules/jws/opslevel.yml +6 -0
  308. package/node_modules/jws/package.json +34 -0
  309. package/node_modules/jws/readme.md +255 -0
  310. package/node_modules/ms/index.js +162 -0
  311. package/node_modules/ms/license.md +21 -0
  312. package/node_modules/ms/package.json +38 -0
  313. package/node_modules/ms/readme.md +59 -0
  314. package/node_modules/node-domexception/LICENSE +21 -0
  315. package/node_modules/node-domexception/index.js +2 -0
  316. package/node_modules/node-domexception/package.json +19 -0
  317. package/node_modules/node-fetch/@types/index.d.ts +219 -0
  318. package/node_modules/node-fetch/LICENSE.md +22 -0
  319. package/node_modules/node-fetch/README.md +872 -0
  320. package/node_modules/node-fetch/package.json +131 -0
  321. package/node_modules/node-fetch/src/body.js +397 -0
  322. package/node_modules/node-fetch/src/errors/abort-error.js +10 -0
  323. package/node_modules/node-fetch/src/errors/base.js +17 -0
  324. package/node_modules/node-fetch/src/errors/fetch-error.js +26 -0
  325. package/node_modules/node-fetch/src/headers.js +267 -0
  326. package/node_modules/node-fetch/src/index.js +417 -0
  327. package/node_modules/node-fetch/src/request.js +313 -0
  328. package/node_modules/node-fetch/src/response.js +160 -0
  329. package/node_modules/node-fetch/src/utils/get-search.js +9 -0
  330. package/node_modules/node-fetch/src/utils/is-redirect.js +11 -0
  331. package/node_modules/node-fetch/src/utils/is.js +87 -0
  332. package/node_modules/node-fetch/src/utils/multipart-parser.js +432 -0
  333. package/node_modules/node-fetch/src/utils/referrer.js +340 -0
  334. package/node_modules/safe-buffer/LICENSE +21 -0
  335. package/node_modules/safe-buffer/README.md +584 -0
  336. package/node_modules/safe-buffer/index.d.ts +187 -0
  337. package/node_modules/safe-buffer/index.js +65 -0
  338. package/node_modules/safe-buffer/package.json +51 -0
  339. package/node_modules/web-streams-polyfill/LICENSE +22 -0
  340. package/node_modules/web-streams-polyfill/README.md +110 -0
  341. package/node_modules/web-streams-polyfill/dist/polyfill.es2018.js +4765 -0
  342. package/node_modules/web-streams-polyfill/dist/polyfill.es2018.js.map +1 -0
  343. package/node_modules/web-streams-polyfill/dist/polyfill.es2018.min.js +9 -0
  344. package/node_modules/web-streams-polyfill/dist/polyfill.es2018.min.js.map +1 -0
  345. package/node_modules/web-streams-polyfill/dist/polyfill.es2018.mjs +4745 -0
  346. package/node_modules/web-streams-polyfill/dist/polyfill.es2018.mjs.map +1 -0
  347. package/node_modules/web-streams-polyfill/dist/polyfill.es6.js +4838 -0
  348. package/node_modules/web-streams-polyfill/dist/polyfill.es6.js.map +1 -0
  349. package/node_modules/web-streams-polyfill/dist/polyfill.es6.min.js +9 -0
  350. package/node_modules/web-streams-polyfill/dist/polyfill.es6.min.js.map +1 -0
  351. package/node_modules/web-streams-polyfill/dist/polyfill.es6.mjs +4818 -0
  352. package/node_modules/web-streams-polyfill/dist/polyfill.es6.mjs.map +1 -0
  353. package/node_modules/web-streams-polyfill/dist/polyfill.js +5011 -0
  354. package/node_modules/web-streams-polyfill/dist/polyfill.js.map +1 -0
  355. package/node_modules/web-streams-polyfill/dist/polyfill.min.js +9 -0
  356. package/node_modules/web-streams-polyfill/dist/polyfill.min.js.map +1 -0
  357. package/node_modules/web-streams-polyfill/dist/polyfill.mjs +4991 -0
  358. package/node_modules/web-streams-polyfill/dist/polyfill.mjs.map +1 -0
  359. package/node_modules/web-streams-polyfill/dist/ponyfill.es2018.js +4737 -0
  360. package/node_modules/web-streams-polyfill/dist/ponyfill.es2018.js.map +1 -0
  361. package/node_modules/web-streams-polyfill/dist/ponyfill.es2018.mjs +4717 -0
  362. package/node_modules/web-streams-polyfill/dist/ponyfill.es2018.mjs.map +1 -0
  363. package/node_modules/web-streams-polyfill/dist/ponyfill.es6.js +4810 -0
  364. package/node_modules/web-streams-polyfill/dist/ponyfill.es6.js.map +1 -0
  365. package/node_modules/web-streams-polyfill/dist/ponyfill.es6.mjs +4790 -0
  366. package/node_modules/web-streams-polyfill/dist/ponyfill.es6.mjs.map +1 -0
  367. package/node_modules/web-streams-polyfill/dist/ponyfill.js +4983 -0
  368. package/node_modules/web-streams-polyfill/dist/ponyfill.js.map +1 -0
  369. package/node_modules/web-streams-polyfill/dist/ponyfill.mjs +4963 -0
  370. package/node_modules/web-streams-polyfill/dist/ponyfill.mjs.map +1 -0
  371. package/node_modules/web-streams-polyfill/dist/types/polyfill.d.ts +24 -0
  372. package/node_modules/web-streams-polyfill/dist/types/ponyfill.d.ts +780 -0
  373. package/node_modules/web-streams-polyfill/dist/types/ts3.6/polyfill.d.ts +28 -0
  374. package/node_modules/web-streams-polyfill/dist/types/ts3.6/ponyfill.d.ts +821 -0
  375. package/node_modules/web-streams-polyfill/dist/types/tsdoc-metadata.json +11 -0
  376. package/node_modules/web-streams-polyfill/es2018/package.json +14 -0
  377. package/node_modules/web-streams-polyfill/es6/package.json +14 -0
  378. package/node_modules/web-streams-polyfill/package.json +83 -0
  379. package/node_modules/web-streams-polyfill/ponyfill/es2018/package.json +13 -0
  380. package/node_modules/web-streams-polyfill/ponyfill/es6/package.json +13 -0
  381. package/node_modules/web-streams-polyfill/ponyfill/package.json +13 -0
  382. package/node_modules/zod/LICENSE +21 -0
  383. package/node_modules/zod/README.md +191 -0
  384. package/node_modules/zod/index.cjs +33 -0
  385. package/node_modules/zod/index.d.cts +4 -0
  386. package/node_modules/zod/index.d.ts +4 -0
  387. package/node_modules/zod/index.js +4 -0
  388. package/node_modules/zod/locales/index.cjs +17 -0
  389. package/node_modules/zod/locales/index.d.cts +1 -0
  390. package/node_modules/zod/locales/index.d.ts +1 -0
  391. package/node_modules/zod/locales/index.js +1 -0
  392. package/node_modules/zod/locales/package.json +7 -0
  393. package/node_modules/zod/mini/index.cjs +32 -0
  394. package/node_modules/zod/mini/index.d.cts +3 -0
  395. package/node_modules/zod/mini/index.d.ts +3 -0
  396. package/node_modules/zod/mini/index.js +3 -0
  397. package/node_modules/zod/mini/package.json +7 -0
  398. package/node_modules/zod/package.json +135 -0
  399. package/node_modules/zod/src/index.ts +4 -0
  400. package/node_modules/zod/src/locales/index.ts +1 -0
  401. package/node_modules/zod/src/mini/index.ts +3 -0
  402. package/node_modules/zod/src/v3/ZodError.ts +330 -0
  403. package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
  404. package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
  405. package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
  406. package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
  407. package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
  408. package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
  409. package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
  410. package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
  411. package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
  412. package/node_modules/zod/src/v3/errors.ts +13 -0
  413. package/node_modules/zod/src/v3/external.ts +6 -0
  414. package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
  415. package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
  416. package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
  417. package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
  418. package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
  419. package/node_modules/zod/src/v3/helpers/util.ts +224 -0
  420. package/node_modules/zod/src/v3/index.ts +4 -0
  421. package/node_modules/zod/src/v3/locales/en.ts +124 -0
  422. package/node_modules/zod/src/v3/standard-schema.ts +113 -0
  423. package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
  424. package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
  425. package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
  426. package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
  427. package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
  428. package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
  429. package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
  430. package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
  431. package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
  432. package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
  433. package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
  434. package/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
  435. package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
  436. package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
  437. package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
  438. package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
  439. package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
  440. package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
  441. package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
  442. package/node_modules/zod/src/v3/tests/error.test.ts +551 -0
  443. package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
  444. package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
  445. package/node_modules/zod/src/v3/tests/function.test.ts +261 -0
  446. package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
  447. package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
  448. package/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
  449. package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
  450. package/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
  451. package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
  452. package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
  453. package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
  454. package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
  455. package/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
  456. package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
  457. package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
  458. package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
  459. package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
  460. package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
  461. package/node_modules/zod/src/v3/tests/object.test.ts +434 -0
  462. package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
  463. package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
  464. package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
  465. package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
  466. package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
  467. package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
  468. package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
  469. package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
  470. package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
  471. package/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
  472. package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
  473. package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
  474. package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
  475. package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
  476. package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
  477. package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
  478. package/node_modules/zod/src/v3/tests/string.test.ts +916 -0
  479. package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
  480. package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
  481. package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
  482. package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
  483. package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
  484. package/node_modules/zod/src/v3/types.ts +5138 -0
  485. package/node_modules/zod/src/v4/classic/checks.ts +32 -0
  486. package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
  487. package/node_modules/zod/src/v4/classic/compat.ts +70 -0
  488. package/node_modules/zod/src/v4/classic/errors.ts +82 -0
  489. package/node_modules/zod/src/v4/classic/external.ts +52 -0
  490. package/node_modules/zod/src/v4/classic/from-json-schema.ts +659 -0
  491. package/node_modules/zod/src/v4/classic/index.ts +5 -0
  492. package/node_modules/zod/src/v4/classic/iso.ts +90 -0
  493. package/node_modules/zod/src/v4/classic/parse.ts +82 -0
  494. package/node_modules/zod/src/v4/classic/schemas.ts +2672 -0
  495. package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
  496. package/node_modules/zod/src/v4/classic/tests/apply.test.ts +59 -0
  497. package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
  498. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +216 -0
  499. package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
  500. package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
  501. package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
  502. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
  503. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
  504. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +326 -0
  505. package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
  506. package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +573 -0
  507. package/node_modules/zod/src/v4/classic/tests/codec.test.ts +703 -0
  508. package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
  509. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
  510. package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
  511. package/node_modules/zod/src/v4/classic/tests/date.test.ts +62 -0
  512. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +302 -0
  513. package/node_modules/zod/src/v4/classic/tests/default.test.ts +409 -0
  514. package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
  515. package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
  516. package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +197 -0
  517. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +694 -0
  518. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
  519. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +807 -0
  520. package/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
  521. package/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
  522. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
  523. package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
  524. package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +895 -0
  525. package/node_modules/zod/src/v4/classic/tests/function.test.ts +360 -0
  526. package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
  527. package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +39 -0
  528. package/node_modules/zod/src/v4/classic/tests/hash.test.ts +68 -0
  529. package/node_modules/zod/src/v4/classic/tests/index.test.ts +939 -0
  530. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +60 -0
  531. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +198 -0
  532. package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +46 -0
  533. package/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
  534. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
  535. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +117 -0
  536. package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
  537. package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
  538. package/node_modules/zod/src/v4/classic/tests/map.test.ts +330 -0
  539. package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
  540. package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
  541. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
  542. package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
  543. package/node_modules/zod/src/v4/classic/tests/number.test.ts +325 -0
  544. package/node_modules/zod/src/v4/classic/tests/object.test.ts +717 -0
  545. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +333 -0
  546. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +450 -0
  547. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
  548. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
  549. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +74 -0
  550. package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +26 -0
  551. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +351 -0
  552. package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
  553. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
  554. package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
  555. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
  556. package/node_modules/zod/src/v4/classic/tests/record.test.ts +717 -0
  557. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +631 -0
  558. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +633 -0
  559. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
  560. package/node_modules/zod/src/v4/classic/tests/set.test.ts +181 -0
  561. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +134 -0
  562. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
  563. package/node_modules/zod/src/v4/classic/tests/string.test.ts +1224 -0
  564. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +106 -0
  565. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +771 -0
  566. package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
  567. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +3125 -0
  568. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +378 -0
  569. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +496 -0
  570. package/node_modules/zod/src/v4/classic/tests/union.test.ts +273 -0
  571. package/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
  572. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
  573. package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
  574. package/node_modules/zod/src/v4/core/api.ts +1823 -0
  575. package/node_modules/zod/src/v4/core/checks.ts +1293 -0
  576. package/node_modules/zod/src/v4/core/config.ts +15 -0
  577. package/node_modules/zod/src/v4/core/core.ts +153 -0
  578. package/node_modules/zod/src/v4/core/doc.ts +44 -0
  579. package/node_modules/zod/src/v4/core/errors.ts +455 -0
  580. package/node_modules/zod/src/v4/core/index.ts +16 -0
  581. package/node_modules/zod/src/v4/core/json-schema-generator.ts +126 -0
  582. package/node_modules/zod/src/v4/core/json-schema-processors.ts +666 -0
  583. package/node_modules/zod/src/v4/core/json-schema.ts +147 -0
  584. package/node_modules/zod/src/v4/core/parse.ts +195 -0
  585. package/node_modules/zod/src/v4/core/regexes.ts +190 -0
  586. package/node_modules/zod/src/v4/core/registries.ts +105 -0
  587. package/node_modules/zod/src/v4/core/schemas.ts +4730 -0
  588. package/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
  589. package/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
  590. package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
  591. package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
  592. package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +215 -0
  593. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
  594. package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +181 -0
  595. package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
  596. package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
  597. package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
  598. package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
  599. package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
  600. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
  601. package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
  602. package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
  603. package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
  604. package/node_modules/zod/src/v4/core/to-json-schema.ts +622 -0
  605. package/node_modules/zod/src/v4/core/util.ts +983 -0
  606. package/node_modules/zod/src/v4/core/versions.ts +5 -0
  607. package/node_modules/zod/src/v4/core/zsf.ts +323 -0
  608. package/node_modules/zod/src/v4/index.ts +4 -0
  609. package/node_modules/zod/src/v4/locales/ar.ts +115 -0
  610. package/node_modules/zod/src/v4/locales/az.ts +111 -0
  611. package/node_modules/zod/src/v4/locales/be.ts +176 -0
  612. package/node_modules/zod/src/v4/locales/bg.ts +128 -0
  613. package/node_modules/zod/src/v4/locales/ca.ts +116 -0
  614. package/node_modules/zod/src/v4/locales/cs.ts +118 -0
  615. package/node_modules/zod/src/v4/locales/da.ts +123 -0
  616. package/node_modules/zod/src/v4/locales/de.ts +116 -0
  617. package/node_modules/zod/src/v4/locales/el.ts +121 -0
  618. package/node_modules/zod/src/v4/locales/en.ts +123 -0
  619. package/node_modules/zod/src/v4/locales/eo.ts +118 -0
  620. package/node_modules/zod/src/v4/locales/es.ts +141 -0
  621. package/node_modules/zod/src/v4/locales/fa.ts +126 -0
  622. package/node_modules/zod/src/v4/locales/fi.ts +121 -0
  623. package/node_modules/zod/src/v4/locales/fr-CA.ts +116 -0
  624. package/node_modules/zod/src/v4/locales/fr.ts +132 -0
  625. package/node_modules/zod/src/v4/locales/he.ts +246 -0
  626. package/node_modules/zod/src/v4/locales/hr.ts +131 -0
  627. package/node_modules/zod/src/v4/locales/hu.ts +117 -0
  628. package/node_modules/zod/src/v4/locales/hy.ts +164 -0
  629. package/node_modules/zod/src/v4/locales/id.ts +115 -0
  630. package/node_modules/zod/src/v4/locales/index.ts +52 -0
  631. package/node_modules/zod/src/v4/locales/is.ts +119 -0
  632. package/node_modules/zod/src/v4/locales/it.ts +116 -0
  633. package/node_modules/zod/src/v4/locales/ja.ts +114 -0
  634. package/node_modules/zod/src/v4/locales/ka.ts +123 -0
  635. package/node_modules/zod/src/v4/locales/kh.ts +7 -0
  636. package/node_modules/zod/src/v4/locales/km.ts +119 -0
  637. package/node_modules/zod/src/v4/locales/ko.ts +121 -0
  638. package/node_modules/zod/src/v4/locales/lt.ts +239 -0
  639. package/node_modules/zod/src/v4/locales/mk.ts +118 -0
  640. package/node_modules/zod/src/v4/locales/ms.ts +115 -0
  641. package/node_modules/zod/src/v4/locales/nl.ts +121 -0
  642. package/node_modules/zod/src/v4/locales/no.ts +116 -0
  643. package/node_modules/zod/src/v4/locales/ota.ts +117 -0
  644. package/node_modules/zod/src/v4/locales/pl.ts +118 -0
  645. package/node_modules/zod/src/v4/locales/ps.ts +126 -0
  646. package/node_modules/zod/src/v4/locales/pt.ts +116 -0
  647. package/node_modules/zod/src/v4/locales/ro.ts +129 -0
  648. package/node_modules/zod/src/v4/locales/ru.ts +176 -0
  649. package/node_modules/zod/src/v4/locales/sl.ts +118 -0
  650. package/node_modules/zod/src/v4/locales/sv.ts +119 -0
  651. package/node_modules/zod/src/v4/locales/ta.ts +118 -0
  652. package/node_modules/zod/src/v4/locales/th.ts +119 -0
  653. package/node_modules/zod/src/v4/locales/tr.ts +111 -0
  654. package/node_modules/zod/src/v4/locales/ua.ts +7 -0
  655. package/node_modules/zod/src/v4/locales/uk.ts +117 -0
  656. package/node_modules/zod/src/v4/locales/ur.ts +119 -0
  657. package/node_modules/zod/src/v4/locales/uz.ts +117 -0
  658. package/node_modules/zod/src/v4/locales/vi.ts +117 -0
  659. package/node_modules/zod/src/v4/locales/yo.ts +124 -0
  660. package/node_modules/zod/src/v4/locales/zh-CN.ts +116 -0
  661. package/node_modules/zod/src/v4/locales/zh-TW.ts +115 -0
  662. package/node_modules/zod/src/v4/mini/checks.ts +32 -0
  663. package/node_modules/zod/src/v4/mini/coerce.ts +27 -0
  664. package/node_modules/zod/src/v4/mini/external.ts +41 -0
  665. package/node_modules/zod/src/v4/mini/index.ts +3 -0
  666. package/node_modules/zod/src/v4/mini/iso.ts +66 -0
  667. package/node_modules/zod/src/v4/mini/parse.ts +14 -0
  668. package/node_modules/zod/src/v4/mini/schemas.ts +1947 -0
  669. package/node_modules/zod/src/v4/mini/tests/apply.test.ts +24 -0
  670. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
  671. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
  672. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
  673. package/node_modules/zod/src/v4/mini/tests/codec.test.ts +548 -0
  674. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
  675. package/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
  676. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +5 -0
  677. package/node_modules/zod/src/v4/mini/tests/index.test.ts +993 -0
  678. package/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
  679. package/node_modules/zod/src/v4/mini/tests/object.test.ts +227 -0
  680. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
  681. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +325 -0
  682. package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
  683. package/node_modules/zod/src/v4/mini/tests/string.test.ts +352 -0
  684. package/node_modules/zod/src/v4-mini/index.ts +3 -0
  685. package/node_modules/zod/v3/ZodError.cjs +138 -0
  686. package/node_modules/zod/v3/ZodError.d.cts +164 -0
  687. package/node_modules/zod/v3/ZodError.d.ts +164 -0
  688. package/node_modules/zod/v3/ZodError.js +133 -0
  689. package/node_modules/zod/v3/errors.cjs +17 -0
  690. package/node_modules/zod/v3/errors.d.cts +5 -0
  691. package/node_modules/zod/v3/errors.d.ts +5 -0
  692. package/node_modules/zod/v3/errors.js +9 -0
  693. package/node_modules/zod/v3/external.cjs +22 -0
  694. package/node_modules/zod/v3/external.d.cts +6 -0
  695. package/node_modules/zod/v3/external.d.ts +6 -0
  696. package/node_modules/zod/v3/external.js +6 -0
  697. package/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
  698. package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
  699. package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  700. package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
  701. package/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
  702. package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  703. package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  704. package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  705. package/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
  706. package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  707. package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
  708. package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  709. package/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
  710. package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  711. package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
  712. package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
  713. package/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
  714. package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  715. package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
  716. package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  717. package/node_modules/zod/v3/helpers/util.cjs +137 -0
  718. package/node_modules/zod/v3/helpers/util.d.cts +85 -0
  719. package/node_modules/zod/v3/helpers/util.d.ts +85 -0
  720. package/node_modules/zod/v3/helpers/util.js +133 -0
  721. package/node_modules/zod/v3/index.cjs +33 -0
  722. package/node_modules/zod/v3/index.d.cts +4 -0
  723. package/node_modules/zod/v3/index.d.ts +4 -0
  724. package/node_modules/zod/v3/index.js +4 -0
  725. package/node_modules/zod/v3/locales/en.cjs +112 -0
  726. package/node_modules/zod/v3/locales/en.d.cts +3 -0
  727. package/node_modules/zod/v3/locales/en.d.ts +3 -0
  728. package/node_modules/zod/v3/locales/en.js +109 -0
  729. package/node_modules/zod/v3/package.json +7 -0
  730. package/node_modules/zod/v3/standard-schema.cjs +2 -0
  731. package/node_modules/zod/v3/standard-schema.d.cts +102 -0
  732. package/node_modules/zod/v3/standard-schema.d.ts +102 -0
  733. package/node_modules/zod/v3/standard-schema.js +1 -0
  734. package/node_modules/zod/v3/types.cjs +3777 -0
  735. package/node_modules/zod/v3/types.d.cts +1034 -0
  736. package/node_modules/zod/v3/types.d.ts +1034 -0
  737. package/node_modules/zod/v3/types.js +3695 -0
  738. package/node_modules/zod/v4/classic/checks.cjs +33 -0
  739. package/node_modules/zod/v4/classic/checks.d.cts +1 -0
  740. package/node_modules/zod/v4/classic/checks.d.ts +1 -0
  741. package/node_modules/zod/v4/classic/checks.js +1 -0
  742. package/node_modules/zod/v4/classic/coerce.cjs +47 -0
  743. package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
  744. package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
  745. package/node_modules/zod/v4/classic/coerce.js +17 -0
  746. package/node_modules/zod/v4/classic/compat.cjs +61 -0
  747. package/node_modules/zod/v4/classic/compat.d.cts +50 -0
  748. package/node_modules/zod/v4/classic/compat.d.ts +50 -0
  749. package/node_modules/zod/v4/classic/compat.js +31 -0
  750. package/node_modules/zod/v4/classic/errors.cjs +74 -0
  751. package/node_modules/zod/v4/classic/errors.d.cts +30 -0
  752. package/node_modules/zod/v4/classic/errors.d.ts +30 -0
  753. package/node_modules/zod/v4/classic/errors.js +48 -0
  754. package/node_modules/zod/v4/classic/external.cjs +73 -0
  755. package/node_modules/zod/v4/classic/external.d.cts +16 -0
  756. package/node_modules/zod/v4/classic/external.d.ts +16 -0
  757. package/node_modules/zod/v4/classic/external.js +20 -0
  758. package/node_modules/zod/v4/classic/from-json-schema.cjs +625 -0
  759. package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
  760. package/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
  761. package/node_modules/zod/v4/classic/from-json-schema.js +599 -0
  762. package/node_modules/zod/v4/classic/index.cjs +33 -0
  763. package/node_modules/zod/v4/classic/index.d.cts +4 -0
  764. package/node_modules/zod/v4/classic/index.d.ts +4 -0
  765. package/node_modules/zod/v4/classic/index.js +4 -0
  766. package/node_modules/zod/v4/classic/iso.cjs +60 -0
  767. package/node_modules/zod/v4/classic/iso.d.cts +22 -0
  768. package/node_modules/zod/v4/classic/iso.d.ts +22 -0
  769. package/node_modules/zod/v4/classic/iso.js +30 -0
  770. package/node_modules/zod/v4/classic/package.json +7 -0
  771. package/node_modules/zod/v4/classic/parse.cjs +41 -0
  772. package/node_modules/zod/v4/classic/parse.d.cts +31 -0
  773. package/node_modules/zod/v4/classic/parse.d.ts +31 -0
  774. package/node_modules/zod/v4/classic/parse.js +15 -0
  775. package/node_modules/zod/v4/classic/schemas.cjs +1511 -0
  776. package/node_modules/zod/v4/classic/schemas.d.cts +767 -0
  777. package/node_modules/zod/v4/classic/schemas.d.ts +767 -0
  778. package/node_modules/zod/v4/classic/schemas.js +1395 -0
  779. package/node_modules/zod/v4/core/api.cjs +1227 -0
  780. package/node_modules/zod/v4/core/api.d.cts +325 -0
  781. package/node_modules/zod/v4/core/api.d.ts +325 -0
  782. package/node_modules/zod/v4/core/api.js +1087 -0
  783. package/node_modules/zod/v4/core/checks.cjs +601 -0
  784. package/node_modules/zod/v4/core/checks.d.cts +278 -0
  785. package/node_modules/zod/v4/core/checks.d.ts +278 -0
  786. package/node_modules/zod/v4/core/checks.js +575 -0
  787. package/node_modules/zod/v4/core/core.cjs +85 -0
  788. package/node_modules/zod/v4/core/core.d.cts +70 -0
  789. package/node_modules/zod/v4/core/core.d.ts +70 -0
  790. package/node_modules/zod/v4/core/core.js +78 -0
  791. package/node_modules/zod/v4/core/doc.cjs +39 -0
  792. package/node_modules/zod/v4/core/doc.d.cts +14 -0
  793. package/node_modules/zod/v4/core/doc.d.ts +14 -0
  794. package/node_modules/zod/v4/core/doc.js +35 -0
  795. package/node_modules/zod/v4/core/errors.cjs +216 -0
  796. package/node_modules/zod/v4/core/errors.d.cts +221 -0
  797. package/node_modules/zod/v4/core/errors.d.ts +221 -0
  798. package/node_modules/zod/v4/core/errors.js +185 -0
  799. package/node_modules/zod/v4/core/index.cjs +47 -0
  800. package/node_modules/zod/v4/core/index.d.cts +16 -0
  801. package/node_modules/zod/v4/core/index.d.ts +16 -0
  802. package/node_modules/zod/v4/core/index.js +16 -0
  803. package/node_modules/zod/v4/core/json-schema-generator.cjs +99 -0
  804. package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
  805. package/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
  806. package/node_modules/zod/v4/core/json-schema-generator.js +95 -0
  807. package/node_modules/zod/v4/core/json-schema-processors.cjs +644 -0
  808. package/node_modules/zod/v4/core/json-schema-processors.d.cts +49 -0
  809. package/node_modules/zod/v4/core/json-schema-processors.d.ts +49 -0
  810. package/node_modules/zod/v4/core/json-schema-processors.js +601 -0
  811. package/node_modules/zod/v4/core/json-schema.cjs +2 -0
  812. package/node_modules/zod/v4/core/json-schema.d.cts +88 -0
  813. package/node_modules/zod/v4/core/json-schema.d.ts +88 -0
  814. package/node_modules/zod/v4/core/json-schema.js +1 -0
  815. package/node_modules/zod/v4/core/package.json +7 -0
  816. package/node_modules/zod/v4/core/parse.cjs +131 -0
  817. package/node_modules/zod/v4/core/parse.d.cts +49 -0
  818. package/node_modules/zod/v4/core/parse.d.ts +49 -0
  819. package/node_modules/zod/v4/core/parse.js +93 -0
  820. package/node_modules/zod/v4/core/regexes.cjs +172 -0
  821. package/node_modules/zod/v4/core/regexes.d.cts +85 -0
  822. package/node_modules/zod/v4/core/regexes.d.ts +85 -0
  823. package/node_modules/zod/v4/core/regexes.js +139 -0
  824. package/node_modules/zod/v4/core/registries.cjs +56 -0
  825. package/node_modules/zod/v4/core/registries.d.cts +35 -0
  826. package/node_modules/zod/v4/core/registries.d.ts +35 -0
  827. package/node_modules/zod/v4/core/registries.js +51 -0
  828. package/node_modules/zod/v4/core/schemas.cjs +2270 -0
  829. package/node_modules/zod/v4/core/schemas.d.cts +1184 -0
  830. package/node_modules/zod/v4/core/schemas.d.ts +1184 -0
  831. package/node_modules/zod/v4/core/schemas.js +2239 -0
  832. package/node_modules/zod/v4/core/standard-schema.cjs +2 -0
  833. package/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
  834. package/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
  835. package/node_modules/zod/v4/core/standard-schema.js +1 -0
  836. package/node_modules/zod/v4/core/to-json-schema.cjs +457 -0
  837. package/node_modules/zod/v4/core/to-json-schema.d.cts +114 -0
  838. package/node_modules/zod/v4/core/to-json-schema.d.ts +114 -0
  839. package/node_modules/zod/v4/core/to-json-schema.js +448 -0
  840. package/node_modules/zod/v4/core/util.cjs +734 -0
  841. package/node_modules/zod/v4/core/util.d.cts +200 -0
  842. package/node_modules/zod/v4/core/util.d.ts +200 -0
  843. package/node_modules/zod/v4/core/util.js +674 -0
  844. package/node_modules/zod/v4/core/versions.cjs +8 -0
  845. package/node_modules/zod/v4/core/versions.d.cts +5 -0
  846. package/node_modules/zod/v4/core/versions.d.ts +5 -0
  847. package/node_modules/zod/v4/core/versions.js +5 -0
  848. package/node_modules/zod/v4/index.cjs +22 -0
  849. package/node_modules/zod/v4/index.d.cts +3 -0
  850. package/node_modules/zod/v4/index.d.ts +3 -0
  851. package/node_modules/zod/v4/index.js +3 -0
  852. package/node_modules/zod/v4/locales/ar.cjs +133 -0
  853. package/node_modules/zod/v4/locales/ar.d.cts +5 -0
  854. package/node_modules/zod/v4/locales/ar.d.ts +4 -0
  855. package/node_modules/zod/v4/locales/ar.js +106 -0
  856. package/node_modules/zod/v4/locales/az.cjs +132 -0
  857. package/node_modules/zod/v4/locales/az.d.cts +5 -0
  858. package/node_modules/zod/v4/locales/az.d.ts +4 -0
  859. package/node_modules/zod/v4/locales/az.js +105 -0
  860. package/node_modules/zod/v4/locales/be.cjs +183 -0
  861. package/node_modules/zod/v4/locales/be.d.cts +5 -0
  862. package/node_modules/zod/v4/locales/be.d.ts +4 -0
  863. package/node_modules/zod/v4/locales/be.js +156 -0
  864. package/node_modules/zod/v4/locales/bg.cjs +147 -0
  865. package/node_modules/zod/v4/locales/bg.d.cts +5 -0
  866. package/node_modules/zod/v4/locales/bg.d.ts +4 -0
  867. package/node_modules/zod/v4/locales/bg.js +120 -0
  868. package/node_modules/zod/v4/locales/ca.cjs +134 -0
  869. package/node_modules/zod/v4/locales/ca.d.cts +5 -0
  870. package/node_modules/zod/v4/locales/ca.d.ts +4 -0
  871. package/node_modules/zod/v4/locales/ca.js +107 -0
  872. package/node_modules/zod/v4/locales/cs.cjs +138 -0
  873. package/node_modules/zod/v4/locales/cs.d.cts +5 -0
  874. package/node_modules/zod/v4/locales/cs.d.ts +4 -0
  875. package/node_modules/zod/v4/locales/cs.js +111 -0
  876. package/node_modules/zod/v4/locales/da.cjs +142 -0
  877. package/node_modules/zod/v4/locales/da.d.cts +5 -0
  878. package/node_modules/zod/v4/locales/da.d.ts +4 -0
  879. package/node_modules/zod/v4/locales/da.js +115 -0
  880. package/node_modules/zod/v4/locales/de.cjs +135 -0
  881. package/node_modules/zod/v4/locales/de.d.cts +5 -0
  882. package/node_modules/zod/v4/locales/de.d.ts +4 -0
  883. package/node_modules/zod/v4/locales/de.js +108 -0
  884. package/node_modules/zod/v4/locales/el.cjs +136 -0
  885. package/node_modules/zod/v4/locales/el.d.cts +5 -0
  886. package/node_modules/zod/v4/locales/el.d.ts +4 -0
  887. package/node_modules/zod/v4/locales/el.js +109 -0
  888. package/node_modules/zod/v4/locales/en.cjs +140 -0
  889. package/node_modules/zod/v4/locales/en.d.cts +5 -0
  890. package/node_modules/zod/v4/locales/en.d.ts +4 -0
  891. package/node_modules/zod/v4/locales/en.js +113 -0
  892. package/node_modules/zod/v4/locales/eo.cjs +136 -0
  893. package/node_modules/zod/v4/locales/eo.d.cts +5 -0
  894. package/node_modules/zod/v4/locales/eo.d.ts +4 -0
  895. package/node_modules/zod/v4/locales/eo.js +109 -0
  896. package/node_modules/zod/v4/locales/es.cjs +159 -0
  897. package/node_modules/zod/v4/locales/es.d.cts +5 -0
  898. package/node_modules/zod/v4/locales/es.d.ts +4 -0
  899. package/node_modules/zod/v4/locales/es.js +132 -0
  900. package/node_modules/zod/v4/locales/fa.cjs +141 -0
  901. package/node_modules/zod/v4/locales/fa.d.cts +5 -0
  902. package/node_modules/zod/v4/locales/fa.d.ts +4 -0
  903. package/node_modules/zod/v4/locales/fa.js +114 -0
  904. package/node_modules/zod/v4/locales/fi.cjs +139 -0
  905. package/node_modules/zod/v4/locales/fi.d.cts +5 -0
  906. package/node_modules/zod/v4/locales/fi.d.ts +4 -0
  907. package/node_modules/zod/v4/locales/fi.js +112 -0
  908. package/node_modules/zod/v4/locales/fr-CA.cjs +134 -0
  909. package/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
  910. package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  911. package/node_modules/zod/v4/locales/fr-CA.js +107 -0
  912. package/node_modules/zod/v4/locales/fr.cjs +152 -0
  913. package/node_modules/zod/v4/locales/fr.d.cts +5 -0
  914. package/node_modules/zod/v4/locales/fr.d.ts +4 -0
  915. package/node_modules/zod/v4/locales/fr.js +125 -0
  916. package/node_modules/zod/v4/locales/he.cjs +241 -0
  917. package/node_modules/zod/v4/locales/he.d.cts +5 -0
  918. package/node_modules/zod/v4/locales/he.d.ts +4 -0
  919. package/node_modules/zod/v4/locales/he.js +214 -0
  920. package/node_modules/zod/v4/locales/hr.cjs +149 -0
  921. package/node_modules/zod/v4/locales/hr.d.cts +5 -0
  922. package/node_modules/zod/v4/locales/hr.d.ts +4 -0
  923. package/node_modules/zod/v4/locales/hr.js +122 -0
  924. package/node_modules/zod/v4/locales/hu.cjs +135 -0
  925. package/node_modules/zod/v4/locales/hu.d.cts +5 -0
  926. package/node_modules/zod/v4/locales/hu.d.ts +4 -0
  927. package/node_modules/zod/v4/locales/hu.js +108 -0
  928. package/node_modules/zod/v4/locales/hy.cjs +174 -0
  929. package/node_modules/zod/v4/locales/hy.d.cts +5 -0
  930. package/node_modules/zod/v4/locales/hy.d.ts +4 -0
  931. package/node_modules/zod/v4/locales/hy.js +147 -0
  932. package/node_modules/zod/v4/locales/id.cjs +133 -0
  933. package/node_modules/zod/v4/locales/id.d.cts +5 -0
  934. package/node_modules/zod/v4/locales/id.d.ts +4 -0
  935. package/node_modules/zod/v4/locales/id.js +106 -0
  936. package/node_modules/zod/v4/locales/index.cjs +111 -0
  937. package/node_modules/zod/v4/locales/index.d.cts +52 -0
  938. package/node_modules/zod/v4/locales/index.d.ts +52 -0
  939. package/node_modules/zod/v4/locales/index.js +52 -0
  940. package/node_modules/zod/v4/locales/is.cjs +136 -0
  941. package/node_modules/zod/v4/locales/is.d.cts +5 -0
  942. package/node_modules/zod/v4/locales/is.d.ts +4 -0
  943. package/node_modules/zod/v4/locales/is.js +109 -0
  944. package/node_modules/zod/v4/locales/it.cjs +135 -0
  945. package/node_modules/zod/v4/locales/it.d.cts +5 -0
  946. package/node_modules/zod/v4/locales/it.d.ts +4 -0
  947. package/node_modules/zod/v4/locales/it.js +108 -0
  948. package/node_modules/zod/v4/locales/ja.cjs +134 -0
  949. package/node_modules/zod/v4/locales/ja.d.cts +5 -0
  950. package/node_modules/zod/v4/locales/ja.d.ts +4 -0
  951. package/node_modules/zod/v4/locales/ja.js +107 -0
  952. package/node_modules/zod/v4/locales/ka.cjs +139 -0
  953. package/node_modules/zod/v4/locales/ka.d.cts +5 -0
  954. package/node_modules/zod/v4/locales/ka.d.ts +4 -0
  955. package/node_modules/zod/v4/locales/ka.js +112 -0
  956. package/node_modules/zod/v4/locales/kh.cjs +12 -0
  957. package/node_modules/zod/v4/locales/kh.d.cts +5 -0
  958. package/node_modules/zod/v4/locales/kh.d.ts +5 -0
  959. package/node_modules/zod/v4/locales/kh.js +5 -0
  960. package/node_modules/zod/v4/locales/km.cjs +137 -0
  961. package/node_modules/zod/v4/locales/km.d.cts +5 -0
  962. package/node_modules/zod/v4/locales/km.d.ts +4 -0
  963. package/node_modules/zod/v4/locales/km.js +110 -0
  964. package/node_modules/zod/v4/locales/ko.cjs +138 -0
  965. package/node_modules/zod/v4/locales/ko.d.cts +5 -0
  966. package/node_modules/zod/v4/locales/ko.d.ts +4 -0
  967. package/node_modules/zod/v4/locales/ko.js +111 -0
  968. package/node_modules/zod/v4/locales/lt.cjs +230 -0
  969. package/node_modules/zod/v4/locales/lt.d.cts +5 -0
  970. package/node_modules/zod/v4/locales/lt.d.ts +4 -0
  971. package/node_modules/zod/v4/locales/lt.js +203 -0
  972. package/node_modules/zod/v4/locales/mk.cjs +136 -0
  973. package/node_modules/zod/v4/locales/mk.d.cts +5 -0
  974. package/node_modules/zod/v4/locales/mk.d.ts +4 -0
  975. package/node_modules/zod/v4/locales/mk.js +109 -0
  976. package/node_modules/zod/v4/locales/ms.cjs +134 -0
  977. package/node_modules/zod/v4/locales/ms.d.cts +5 -0
  978. package/node_modules/zod/v4/locales/ms.d.ts +4 -0
  979. package/node_modules/zod/v4/locales/ms.js +107 -0
  980. package/node_modules/zod/v4/locales/nl.cjs +137 -0
  981. package/node_modules/zod/v4/locales/nl.d.cts +5 -0
  982. package/node_modules/zod/v4/locales/nl.d.ts +4 -0
  983. package/node_modules/zod/v4/locales/nl.js +110 -0
  984. package/node_modules/zod/v4/locales/no.cjs +135 -0
  985. package/node_modules/zod/v4/locales/no.d.cts +5 -0
  986. package/node_modules/zod/v4/locales/no.d.ts +4 -0
  987. package/node_modules/zod/v4/locales/no.js +108 -0
  988. package/node_modules/zod/v4/locales/ota.cjs +136 -0
  989. package/node_modules/zod/v4/locales/ota.d.cts +5 -0
  990. package/node_modules/zod/v4/locales/ota.d.ts +4 -0
  991. package/node_modules/zod/v4/locales/ota.js +109 -0
  992. package/node_modules/zod/v4/locales/package.json +7 -0
  993. package/node_modules/zod/v4/locales/pl.cjs +136 -0
  994. package/node_modules/zod/v4/locales/pl.d.cts +5 -0
  995. package/node_modules/zod/v4/locales/pl.d.ts +4 -0
  996. package/node_modules/zod/v4/locales/pl.js +109 -0
  997. package/node_modules/zod/v4/locales/ps.cjs +141 -0
  998. package/node_modules/zod/v4/locales/ps.d.cts +5 -0
  999. package/node_modules/zod/v4/locales/ps.d.ts +4 -0
  1000. package/node_modules/zod/v4/locales/ps.js +114 -0
  1001. package/node_modules/zod/v4/locales/pt.cjs +135 -0
  1002. package/node_modules/zod/v4/locales/pt.d.cts +5 -0
  1003. package/node_modules/zod/v4/locales/pt.d.ts +4 -0
  1004. package/node_modules/zod/v4/locales/pt.js +108 -0
  1005. package/node_modules/zod/v4/locales/ro.cjs +146 -0
  1006. package/node_modules/zod/v4/locales/ro.d.cts +5 -0
  1007. package/node_modules/zod/v4/locales/ro.d.ts +4 -0
  1008. package/node_modules/zod/v4/locales/ro.js +119 -0
  1009. package/node_modules/zod/v4/locales/ru.cjs +183 -0
  1010. package/node_modules/zod/v4/locales/ru.d.cts +5 -0
  1011. package/node_modules/zod/v4/locales/ru.d.ts +4 -0
  1012. package/node_modules/zod/v4/locales/ru.js +156 -0
  1013. package/node_modules/zod/v4/locales/sl.cjs +136 -0
  1014. package/node_modules/zod/v4/locales/sl.d.cts +5 -0
  1015. package/node_modules/zod/v4/locales/sl.d.ts +4 -0
  1016. package/node_modules/zod/v4/locales/sl.js +109 -0
  1017. package/node_modules/zod/v4/locales/sv.cjs +137 -0
  1018. package/node_modules/zod/v4/locales/sv.d.cts +5 -0
  1019. package/node_modules/zod/v4/locales/sv.d.ts +4 -0
  1020. package/node_modules/zod/v4/locales/sv.js +110 -0
  1021. package/node_modules/zod/v4/locales/ta.cjs +137 -0
  1022. package/node_modules/zod/v4/locales/ta.d.cts +5 -0
  1023. package/node_modules/zod/v4/locales/ta.d.ts +4 -0
  1024. package/node_modules/zod/v4/locales/ta.js +110 -0
  1025. package/node_modules/zod/v4/locales/th.cjs +137 -0
  1026. package/node_modules/zod/v4/locales/th.d.cts +5 -0
  1027. package/node_modules/zod/v4/locales/th.d.ts +4 -0
  1028. package/node_modules/zod/v4/locales/th.js +110 -0
  1029. package/node_modules/zod/v4/locales/tr.cjs +132 -0
  1030. package/node_modules/zod/v4/locales/tr.d.cts +5 -0
  1031. package/node_modules/zod/v4/locales/tr.d.ts +4 -0
  1032. package/node_modules/zod/v4/locales/tr.js +105 -0
  1033. package/node_modules/zod/v4/locales/ua.cjs +12 -0
  1034. package/node_modules/zod/v4/locales/ua.d.cts +5 -0
  1035. package/node_modules/zod/v4/locales/ua.d.ts +5 -0
  1036. package/node_modules/zod/v4/locales/ua.js +5 -0
  1037. package/node_modules/zod/v4/locales/uk.cjs +135 -0
  1038. package/node_modules/zod/v4/locales/uk.d.cts +5 -0
  1039. package/node_modules/zod/v4/locales/uk.d.ts +4 -0
  1040. package/node_modules/zod/v4/locales/uk.js +108 -0
  1041. package/node_modules/zod/v4/locales/ur.cjs +137 -0
  1042. package/node_modules/zod/v4/locales/ur.d.cts +5 -0
  1043. package/node_modules/zod/v4/locales/ur.d.ts +4 -0
  1044. package/node_modules/zod/v4/locales/ur.js +110 -0
  1045. package/node_modules/zod/v4/locales/uz.cjs +137 -0
  1046. package/node_modules/zod/v4/locales/uz.d.cts +5 -0
  1047. package/node_modules/zod/v4/locales/uz.d.ts +4 -0
  1048. package/node_modules/zod/v4/locales/uz.js +110 -0
  1049. package/node_modules/zod/v4/locales/vi.cjs +135 -0
  1050. package/node_modules/zod/v4/locales/vi.d.cts +5 -0
  1051. package/node_modules/zod/v4/locales/vi.d.ts +4 -0
  1052. package/node_modules/zod/v4/locales/vi.js +108 -0
  1053. package/node_modules/zod/v4/locales/yo.cjs +134 -0
  1054. package/node_modules/zod/v4/locales/yo.d.cts +5 -0
  1055. package/node_modules/zod/v4/locales/yo.d.ts +4 -0
  1056. package/node_modules/zod/v4/locales/yo.js +107 -0
  1057. package/node_modules/zod/v4/locales/zh-CN.cjs +136 -0
  1058. package/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
  1059. package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  1060. package/node_modules/zod/v4/locales/zh-CN.js +109 -0
  1061. package/node_modules/zod/v4/locales/zh-TW.cjs +134 -0
  1062. package/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
  1063. package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  1064. package/node_modules/zod/v4/locales/zh-TW.js +107 -0
  1065. package/node_modules/zod/v4/mini/checks.cjs +34 -0
  1066. package/node_modules/zod/v4/mini/checks.d.cts +1 -0
  1067. package/node_modules/zod/v4/mini/checks.d.ts +1 -0
  1068. package/node_modules/zod/v4/mini/checks.js +1 -0
  1069. package/node_modules/zod/v4/mini/coerce.cjs +52 -0
  1070. package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
  1071. package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
  1072. package/node_modules/zod/v4/mini/coerce.js +22 -0
  1073. package/node_modules/zod/v4/mini/external.cjs +63 -0
  1074. package/node_modules/zod/v4/mini/external.d.cts +13 -0
  1075. package/node_modules/zod/v4/mini/external.d.ts +13 -0
  1076. package/node_modules/zod/v4/mini/external.js +14 -0
  1077. package/node_modules/zod/v4/mini/index.cjs +32 -0
  1078. package/node_modules/zod/v4/mini/index.d.cts +3 -0
  1079. package/node_modules/zod/v4/mini/index.d.ts +3 -0
  1080. package/node_modules/zod/v4/mini/index.js +3 -0
  1081. package/node_modules/zod/v4/mini/iso.cjs +64 -0
  1082. package/node_modules/zod/v4/mini/iso.d.cts +22 -0
  1083. package/node_modules/zod/v4/mini/iso.d.ts +22 -0
  1084. package/node_modules/zod/v4/mini/iso.js +34 -0
  1085. package/node_modules/zod/v4/mini/package.json +7 -0
  1086. package/node_modules/zod/v4/mini/parse.cjs +16 -0
  1087. package/node_modules/zod/v4/mini/parse.d.cts +1 -0
  1088. package/node_modules/zod/v4/mini/parse.d.ts +1 -0
  1089. package/node_modules/zod/v4/mini/parse.js +1 -0
  1090. package/node_modules/zod/v4/mini/schemas.cjs +1083 -0
  1091. package/node_modules/zod/v4/mini/schemas.d.cts +445 -0
  1092. package/node_modules/zod/v4/mini/schemas.d.ts +445 -0
  1093. package/node_modules/zod/v4/mini/schemas.js +961 -0
  1094. package/node_modules/zod/v4/package.json +7 -0
  1095. package/node_modules/zod/v4-mini/index.cjs +32 -0
  1096. package/node_modules/zod/v4-mini/index.d.cts +3 -0
  1097. package/node_modules/zod/v4-mini/index.d.ts +3 -0
  1098. package/node_modules/zod/v4-mini/index.js +3 -0
  1099. package/node_modules/zod/v4-mini/package.json +7 -0
  1100. package/npm-shrinkwrap.json +314 -0
  1101. package/package.json +11 -9
@@ -0,0 +1,199 @@
1
+ "use strict";
2
+ // Copyright 2024 Google LLC
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // http://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.DefaultAwsSecurityCredentialsSupplier = void 0;
17
+ const authclient_1 = require("./authclient");
18
+ /**
19
+ * Internal AWS security credentials supplier implementation used by {@link AwsClient}
20
+ * when a credential source is provided instead of a user defined supplier.
21
+ * The logic is summarized as:
22
+ * 1. If imdsv2_session_token_url is provided in the credential source, then
23
+ * fetch the aws session token and include it in the headers of the
24
+ * metadata requests. This is a requirement for IDMSv2 but optional
25
+ * for IDMSv1.
26
+ * 2. Retrieve AWS region from availability-zone.
27
+ * 3a. Check AWS credentials in environment variables. If not found, get
28
+ * from security-credentials endpoint.
29
+ * 3b. Get AWS credentials from security-credentials endpoint. In order
30
+ * to retrieve this, the AWS role needs to be determined by calling
31
+ * security-credentials endpoint without any argument. Then the
32
+ * credentials can be retrieved via: security-credentials/role_name
33
+ * 4. Generate the signed request to AWS STS GetCallerIdentity action.
34
+ * 5. Inject x-goog-cloud-target-resource into header and serialize the
35
+ * signed request. This will be the subject-token to pass to GCP STS.
36
+ */
37
+ class DefaultAwsSecurityCredentialsSupplier {
38
+ regionUrl;
39
+ securityCredentialsUrl;
40
+ imdsV2SessionTokenUrl;
41
+ additionalGaxiosOptions;
42
+ /**
43
+ * Instantiates a new DefaultAwsSecurityCredentialsSupplier using information
44
+ * from the credential_source stored in the ADC file.
45
+ * @param opts The default aws security credentials supplier options object to
46
+ * build the supplier with.
47
+ */
48
+ constructor(opts) {
49
+ this.regionUrl = opts.regionUrl;
50
+ this.securityCredentialsUrl = opts.securityCredentialsUrl;
51
+ this.imdsV2SessionTokenUrl = opts.imdsV2SessionTokenUrl;
52
+ this.additionalGaxiosOptions = opts.additionalGaxiosOptions;
53
+ }
54
+ /**
55
+ * Returns the active AWS region. This first checks to see if the region
56
+ * is available as an environment variable. If it is not, then the supplier
57
+ * will call the region URL.
58
+ * @param context {@link ExternalAccountSupplierContext} from the calling
59
+ * {@link AwsClient}, contains the requested audience and subject token type
60
+ * for the external account identity.
61
+ * @return A promise that resolves with the AWS region string.
62
+ */
63
+ async getAwsRegion(context) {
64
+ // Priority order for region determination:
65
+ // AWS_REGION > AWS_DEFAULT_REGION > metadata server.
66
+ if (this.#regionFromEnv) {
67
+ return this.#regionFromEnv;
68
+ }
69
+ const metadataHeaders = new Headers();
70
+ if (!this.#regionFromEnv && this.imdsV2SessionTokenUrl) {
71
+ metadataHeaders.set('x-aws-ec2-metadata-token', await this.#getImdsV2SessionToken(context.transporter));
72
+ }
73
+ if (!this.regionUrl) {
74
+ throw new RangeError('Unable to determine AWS region due to missing ' +
75
+ '"options.credential_source.region_url"');
76
+ }
77
+ const opts = {
78
+ ...this.additionalGaxiosOptions,
79
+ url: this.regionUrl,
80
+ method: 'GET',
81
+ responseType: 'text',
82
+ headers: metadataHeaders,
83
+ };
84
+ authclient_1.AuthClient.setMethodName(opts, 'getAwsRegion');
85
+ const response = await context.transporter.request(opts);
86
+ // Remove last character. For example, if us-east-2b is returned,
87
+ // the region would be us-east-2.
88
+ return response.data.substr(0, response.data.length - 1);
89
+ }
90
+ /**
91
+ * Returns AWS security credentials. This first checks to see if the credentials
92
+ * is available as environment variables. If it is not, then the supplier
93
+ * will call the security credentials URL.
94
+ * @param context {@link ExternalAccountSupplierContext} from the calling
95
+ * {@link AwsClient}, contains the requested audience and subject token type
96
+ * for the external account identity.
97
+ * @return A promise that resolves with the AWS security credentials.
98
+ */
99
+ async getAwsSecurityCredentials(context) {
100
+ // Check environment variables for permanent credentials first.
101
+ // https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html
102
+ if (this.#securityCredentialsFromEnv) {
103
+ return this.#securityCredentialsFromEnv;
104
+ }
105
+ const metadataHeaders = new Headers();
106
+ if (this.imdsV2SessionTokenUrl) {
107
+ metadataHeaders.set('x-aws-ec2-metadata-token', await this.#getImdsV2SessionToken(context.transporter));
108
+ }
109
+ // Since the role on a VM can change, we don't need to cache it.
110
+ const roleName = await this.#getAwsRoleName(metadataHeaders, context.transporter);
111
+ // Temporary credentials typically last for several hours.
112
+ // Expiration is returned in response.
113
+ // Consider future optimization of this logic to cache AWS tokens
114
+ // until their natural expiration.
115
+ const awsCreds = await this.#retrieveAwsSecurityCredentials(roleName, metadataHeaders, context.transporter);
116
+ return {
117
+ accessKeyId: awsCreds.AccessKeyId,
118
+ secretAccessKey: awsCreds.SecretAccessKey,
119
+ token: awsCreds.Token,
120
+ };
121
+ }
122
+ /**
123
+ * @param transporter The transporter to use for requests.
124
+ * @return A promise that resolves with the IMDSv2 Session Token.
125
+ */
126
+ async #getImdsV2SessionToken(transporter) {
127
+ const opts = {
128
+ ...this.additionalGaxiosOptions,
129
+ url: this.imdsV2SessionTokenUrl,
130
+ method: 'PUT',
131
+ responseType: 'text',
132
+ headers: { 'x-aws-ec2-metadata-token-ttl-seconds': '300' },
133
+ };
134
+ authclient_1.AuthClient.setMethodName(opts, '#getImdsV2SessionToken');
135
+ const response = await transporter.request(opts);
136
+ return response.data;
137
+ }
138
+ /**
139
+ * @param headers The headers to be used in the metadata request.
140
+ * @param transporter The transporter to use for requests.
141
+ * @return A promise that resolves with the assigned role to the current
142
+ * AWS VM. This is needed for calling the security-credentials endpoint.
143
+ */
144
+ async #getAwsRoleName(headers, transporter) {
145
+ if (!this.securityCredentialsUrl) {
146
+ throw new Error('Unable to determine AWS role name due to missing ' +
147
+ '"options.credential_source.url"');
148
+ }
149
+ const opts = {
150
+ ...this.additionalGaxiosOptions,
151
+ url: this.securityCredentialsUrl,
152
+ method: 'GET',
153
+ responseType: 'text',
154
+ headers: headers,
155
+ };
156
+ authclient_1.AuthClient.setMethodName(opts, '#getAwsRoleName');
157
+ const response = await transporter.request(opts);
158
+ return response.data;
159
+ }
160
+ /**
161
+ * Retrieves the temporary AWS credentials by calling the security-credentials
162
+ * endpoint as specified in the `credential_source` object.
163
+ * @param roleName The role attached to the current VM.
164
+ * @param headers The headers to be used in the metadata request.
165
+ * @param transporter The transporter to use for requests.
166
+ * @return A promise that resolves with the temporary AWS credentials
167
+ * needed for creating the GetCallerIdentity signed request.
168
+ */
169
+ async #retrieveAwsSecurityCredentials(roleName, headers, transporter) {
170
+ const opts = {
171
+ ...this.additionalGaxiosOptions,
172
+ url: `${this.securityCredentialsUrl}/${roleName}`,
173
+ headers: headers,
174
+ responseType: 'json',
175
+ };
176
+ authclient_1.AuthClient.setMethodName(opts, '#retrieveAwsSecurityCredentials');
177
+ const response = await transporter.request(opts);
178
+ return response.data;
179
+ }
180
+ get #regionFromEnv() {
181
+ // The AWS region can be provided through AWS_REGION or AWS_DEFAULT_REGION.
182
+ // Only one is required.
183
+ return (process.env['AWS_REGION'] || process.env['AWS_DEFAULT_REGION'] || null);
184
+ }
185
+ get #securityCredentialsFromEnv() {
186
+ // Both AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY are required.
187
+ if (process.env['AWS_ACCESS_KEY_ID'] &&
188
+ process.env['AWS_SECRET_ACCESS_KEY']) {
189
+ return {
190
+ accessKeyId: process.env['AWS_ACCESS_KEY_ID'],
191
+ secretAccessKey: process.env['AWS_SECRET_ACCESS_KEY'],
192
+ token: process.env['AWS_SESSION_TOKEN'],
193
+ };
194
+ }
195
+ return null;
196
+ }
197
+ }
198
+ exports.DefaultAwsSecurityCredentialsSupplier = DefaultAwsSecurityCredentialsSupplier;
199
+ //# sourceMappingURL=defaultawssecuritycredentialssupplier.js.map
@@ -0,0 +1,149 @@
1
+ import { GaxiosOptions, GaxiosPromise, GaxiosResponse } from 'gaxios';
2
+ import { Credentials } from './credentials';
3
+ import { AuthClient, AuthClientOptions, GetAccessTokenResponse, BodyResponseCallback } from './authclient';
4
+ /**
5
+ * The maximum number of access boundary rules a Credential Access Boundary
6
+ * can contain.
7
+ */
8
+ export declare const MAX_ACCESS_BOUNDARY_RULES_COUNT = 10;
9
+ /**
10
+ * Offset to take into account network delays and server clock skews.
11
+ */
12
+ export declare const EXPIRATION_TIME_OFFSET: number;
13
+ /**
14
+ * Internal interface for tracking the access token expiration time.
15
+ */
16
+ interface CredentialsWithResponse extends Credentials {
17
+ res?: GaxiosResponse | null;
18
+ }
19
+ /**
20
+ * Internal interface for tracking and returning the Downscoped access token
21
+ * expiration time in epoch time (seconds).
22
+ */
23
+ interface DownscopedAccessTokenResponse extends GetAccessTokenResponse {
24
+ expirationTime?: number | null;
25
+ }
26
+ /**
27
+ * Defines an upper bound of permissions available for a GCP credential.
28
+ */
29
+ export interface CredentialAccessBoundary {
30
+ accessBoundary: {
31
+ accessBoundaryRules: AccessBoundaryRule[];
32
+ };
33
+ }
34
+ /** Defines an upper bound of permissions on a particular resource. */
35
+ interface AccessBoundaryRule {
36
+ availablePermissions: string[];
37
+ availableResource: string;
38
+ availabilityCondition?: AvailabilityCondition;
39
+ }
40
+ /**
41
+ * An optional condition that can be used as part of a
42
+ * CredentialAccessBoundary to further restrict permissions.
43
+ */
44
+ interface AvailabilityCondition {
45
+ expression: string;
46
+ title?: string;
47
+ description?: string;
48
+ }
49
+ export interface DownscopedClientOptions extends AuthClientOptions {
50
+ /**
51
+ * The source AuthClient to be downscoped based on the provided Credential Access Boundary rules.
52
+ */
53
+ authClient: AuthClient;
54
+ /**
55
+ * The Credential Access Boundary which contains a list of access boundary rules.
56
+ * Each rule contains information on the resource that the rule applies to, the upper bound of the
57
+ * permissions that are available on that resource and an optional
58
+ * condition to further restrict permissions.
59
+ */
60
+ credentialAccessBoundary: CredentialAccessBoundary;
61
+ }
62
+ /**
63
+ * Defines a set of Google credentials that are downscoped from an existing set
64
+ * of Google OAuth2 credentials. This is useful to restrict the Identity and
65
+ * Access Management (IAM) permissions that a short-lived credential can use.
66
+ * The common pattern of usage is to have a token broker with elevated access
67
+ * generate these downscoped credentials from higher access source credentials
68
+ * and pass the downscoped short-lived access tokens to a token consumer via
69
+ * some secure authenticated channel for limited access to Google Cloud Storage
70
+ * resources.
71
+ */
72
+ export declare class DownscopedClient extends AuthClient {
73
+ private readonly authClient;
74
+ private readonly credentialAccessBoundary;
75
+ private cachedDownscopedAccessToken;
76
+ private readonly stsCredential;
77
+ /**
78
+ * Instantiates a downscoped client object using the provided source
79
+ * AuthClient and credential access boundary rules.
80
+ * To downscope permissions of a source AuthClient, a Credential Access
81
+ * Boundary that specifies which resources the new credential can access, as
82
+ * well as an upper bound on the permissions that are available on each
83
+ * resource, has to be defined. A downscoped client can then be instantiated
84
+ * using the source AuthClient and the Credential Access Boundary.
85
+ * @param options the {@link DownscopedClientOptions `DownscopedClientOptions`} to use. Passing an `AuthClient` directly is **@DEPRECATED**.
86
+ * @param credentialAccessBoundary **@DEPRECATED**. Provide a {@link DownscopedClientOptions `DownscopedClientOptions`} object in the first parameter instead.
87
+ */
88
+ constructor(
89
+ /**
90
+ * AuthClient is for backwards-compatibility.
91
+ */
92
+ options: AuthClient | DownscopedClientOptions,
93
+ /**
94
+ * @deprecated - provide a {@link DownscopedClientOptions `DownscopedClientOptions`} object in the first parameter instead
95
+ */
96
+ credentialAccessBoundary?: CredentialAccessBoundary);
97
+ /**
98
+ * Provides a mechanism to inject Downscoped access tokens directly.
99
+ * The expiry_date field is required to facilitate determination of the token
100
+ * expiration which would make it easier for the token consumer to handle.
101
+ * @param credentials The Credentials object to set on the current client.
102
+ */
103
+ setCredentials(credentials: Credentials): void;
104
+ getAccessToken(): Promise<DownscopedAccessTokenResponse>;
105
+ /**
106
+ * The main authentication interface. It takes an optional url which when
107
+ * present is the endpoint being accessed, and returns a Promise which
108
+ * resolves with authorization header fields.
109
+ *
110
+ * The result has the form:
111
+ * { authorization: 'Bearer <access_token_value>' }
112
+ */
113
+ getRequestHeaders(): Promise<Headers>;
114
+ /**
115
+ * Provides a request implementation with OAuth 2.0 flow. In cases of
116
+ * HTTP 401 and 403 responses, it automatically asks for a new access token
117
+ * and replays the unsuccessful request.
118
+ * @param opts Request options.
119
+ * @param callback callback.
120
+ * @return A promise that resolves with the HTTP response when no callback
121
+ * is provided.
122
+ */
123
+ request<T>(opts: GaxiosOptions): GaxiosPromise<T>;
124
+ request<T>(opts: GaxiosOptions, callback: BodyResponseCallback<T>): void;
125
+ /**
126
+ * Authenticates the provided HTTP request, processes it and resolves with the
127
+ * returned response.
128
+ * @param opts The HTTP request options.
129
+ * @param reAuthRetried Whether the current attempt is a retry after a failed attempt due to an auth failure
130
+ * @return A promise that resolves with the successful response.
131
+ */
132
+ protected requestAsync<T>(opts: GaxiosOptions, reAuthRetried?: boolean): Promise<GaxiosResponse<T>>;
133
+ /**
134
+ * Forces token refresh, even if unexpired tokens are currently cached.
135
+ * GCP access tokens are retrieved from authclient object/source credential.
136
+ * Then GCP access tokens are exchanged for downscoped access tokens via the
137
+ * token exchange endpoint.
138
+ * @return A promise that resolves with the fresh downscoped access token.
139
+ */
140
+ protected refreshAccessTokenAsync(): Promise<CredentialsWithResponse>;
141
+ /**
142
+ * Returns whether the provided credentials are expired or not.
143
+ * If there is no expiry time, assumes the token is not expired or expiring.
144
+ * @param downscopedAccessToken The credentials to check for expiration.
145
+ * @return Whether the credentials are expired or not.
146
+ */
147
+ private isExpired;
148
+ }
149
+ export {};
@@ -0,0 +1,273 @@
1
+ "use strict";
2
+ // Copyright 2021 Google LLC
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // http://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.DownscopedClient = exports.EXPIRATION_TIME_OFFSET = exports.MAX_ACCESS_BOUNDARY_RULES_COUNT = void 0;
17
+ const gaxios_1 = require("gaxios");
18
+ const stream = require("stream");
19
+ const authclient_1 = require("./authclient");
20
+ const sts = require("./stscredentials");
21
+ /**
22
+ * The required token exchange grant_type: rfc8693#section-2.1
23
+ */
24
+ const STS_GRANT_TYPE = 'urn:ietf:params:oauth:grant-type:token-exchange';
25
+ /**
26
+ * The requested token exchange requested_token_type: rfc8693#section-2.1
27
+ */
28
+ const STS_REQUEST_TOKEN_TYPE = 'urn:ietf:params:oauth:token-type:access_token';
29
+ /**
30
+ * The requested token exchange subject_token_type: rfc8693#section-2.1
31
+ */
32
+ const STS_SUBJECT_TOKEN_TYPE = 'urn:ietf:params:oauth:token-type:access_token';
33
+ /**
34
+ * The maximum number of access boundary rules a Credential Access Boundary
35
+ * can contain.
36
+ */
37
+ exports.MAX_ACCESS_BOUNDARY_RULES_COUNT = 10;
38
+ /**
39
+ * Offset to take into account network delays and server clock skews.
40
+ */
41
+ exports.EXPIRATION_TIME_OFFSET = 5 * 60 * 1000;
42
+ /**
43
+ * Defines a set of Google credentials that are downscoped from an existing set
44
+ * of Google OAuth2 credentials. This is useful to restrict the Identity and
45
+ * Access Management (IAM) permissions that a short-lived credential can use.
46
+ * The common pattern of usage is to have a token broker with elevated access
47
+ * generate these downscoped credentials from higher access source credentials
48
+ * and pass the downscoped short-lived access tokens to a token consumer via
49
+ * some secure authenticated channel for limited access to Google Cloud Storage
50
+ * resources.
51
+ */
52
+ class DownscopedClient extends authclient_1.AuthClient {
53
+ authClient;
54
+ credentialAccessBoundary;
55
+ cachedDownscopedAccessToken;
56
+ stsCredential;
57
+ /**
58
+ * Instantiates a downscoped client object using the provided source
59
+ * AuthClient and credential access boundary rules.
60
+ * To downscope permissions of a source AuthClient, a Credential Access
61
+ * Boundary that specifies which resources the new credential can access, as
62
+ * well as an upper bound on the permissions that are available on each
63
+ * resource, has to be defined. A downscoped client can then be instantiated
64
+ * using the source AuthClient and the Credential Access Boundary.
65
+ * @param options the {@link DownscopedClientOptions `DownscopedClientOptions`} to use. Passing an `AuthClient` directly is **@DEPRECATED**.
66
+ * @param credentialAccessBoundary **@DEPRECATED**. Provide a {@link DownscopedClientOptions `DownscopedClientOptions`} object in the first parameter instead.
67
+ */
68
+ constructor(
69
+ /**
70
+ * AuthClient is for backwards-compatibility.
71
+ */
72
+ options,
73
+ /**
74
+ * @deprecated - provide a {@link DownscopedClientOptions `DownscopedClientOptions`} object in the first parameter instead
75
+ */
76
+ credentialAccessBoundary = {
77
+ accessBoundary: {
78
+ accessBoundaryRules: [],
79
+ },
80
+ }) {
81
+ super(options instanceof authclient_1.AuthClient ? {} : options);
82
+ if (options instanceof authclient_1.AuthClient) {
83
+ this.authClient = options;
84
+ this.credentialAccessBoundary = credentialAccessBoundary;
85
+ }
86
+ else {
87
+ this.authClient = options.authClient;
88
+ this.credentialAccessBoundary = options.credentialAccessBoundary;
89
+ }
90
+ // Check 1-10 Access Boundary Rules are defined within Credential Access
91
+ // Boundary.
92
+ if (this.credentialAccessBoundary.accessBoundary.accessBoundaryRules
93
+ .length === 0) {
94
+ throw new Error('At least one access boundary rule needs to be defined.');
95
+ }
96
+ else if (this.credentialAccessBoundary.accessBoundary.accessBoundaryRules.length >
97
+ exports.MAX_ACCESS_BOUNDARY_RULES_COUNT) {
98
+ throw new Error('The provided access boundary has more than ' +
99
+ `${exports.MAX_ACCESS_BOUNDARY_RULES_COUNT} access boundary rules.`);
100
+ }
101
+ // Check at least one permission should be defined in each Access Boundary
102
+ // Rule.
103
+ for (const rule of this.credentialAccessBoundary.accessBoundary
104
+ .accessBoundaryRules) {
105
+ if (rule.availablePermissions.length === 0) {
106
+ throw new Error('At least one permission should be defined in access boundary rules.');
107
+ }
108
+ }
109
+ this.stsCredential = new sts.StsCredentials({
110
+ tokenExchangeEndpoint: `https://sts.${this.universeDomain}/v1/token`,
111
+ });
112
+ this.cachedDownscopedAccessToken = null;
113
+ }
114
+ /**
115
+ * Provides a mechanism to inject Downscoped access tokens directly.
116
+ * The expiry_date field is required to facilitate determination of the token
117
+ * expiration which would make it easier for the token consumer to handle.
118
+ * @param credentials The Credentials object to set on the current client.
119
+ */
120
+ setCredentials(credentials) {
121
+ if (!credentials.expiry_date) {
122
+ throw new Error('The access token expiry_date field is missing in the provided ' +
123
+ 'credentials.');
124
+ }
125
+ super.setCredentials(credentials);
126
+ this.cachedDownscopedAccessToken = credentials;
127
+ }
128
+ async getAccessToken() {
129
+ // If the cached access token is unavailable or expired, force refresh.
130
+ // The Downscoped access token will be returned in
131
+ // DownscopedAccessTokenResponse format.
132
+ if (!this.cachedDownscopedAccessToken ||
133
+ this.isExpired(this.cachedDownscopedAccessToken)) {
134
+ await this.refreshAccessTokenAsync();
135
+ }
136
+ // Return Downscoped access token in DownscopedAccessTokenResponse format.
137
+ return {
138
+ token: this.cachedDownscopedAccessToken.access_token,
139
+ expirationTime: this.cachedDownscopedAccessToken.expiry_date,
140
+ res: this.cachedDownscopedAccessToken.res,
141
+ };
142
+ }
143
+ /**
144
+ * The main authentication interface. It takes an optional url which when
145
+ * present is the endpoint being accessed, and returns a Promise which
146
+ * resolves with authorization header fields.
147
+ *
148
+ * The result has the form:
149
+ * { authorization: 'Bearer <access_token_value>' }
150
+ */
151
+ async getRequestHeaders() {
152
+ const accessTokenResponse = await this.getAccessToken();
153
+ const headers = new Headers({
154
+ authorization: `Bearer ${accessTokenResponse.token}`,
155
+ });
156
+ return this.addSharedMetadataHeaders(headers);
157
+ }
158
+ request(opts, callback) {
159
+ if (callback) {
160
+ this.requestAsync(opts).then(r => callback(null, r), e => {
161
+ return callback(e, e.response);
162
+ });
163
+ }
164
+ else {
165
+ return this.requestAsync(opts);
166
+ }
167
+ }
168
+ /**
169
+ * Authenticates the provided HTTP request, processes it and resolves with the
170
+ * returned response.
171
+ * @param opts The HTTP request options.
172
+ * @param reAuthRetried Whether the current attempt is a retry after a failed attempt due to an auth failure
173
+ * @return A promise that resolves with the successful response.
174
+ */
175
+ async requestAsync(opts, reAuthRetried = false) {
176
+ let response;
177
+ try {
178
+ const requestHeaders = await this.getRequestHeaders();
179
+ opts.headers = gaxios_1.Gaxios.mergeHeaders(opts.headers);
180
+ this.addUserProjectAndAuthHeaders(opts.headers, requestHeaders);
181
+ response = await this.transporter.request(opts);
182
+ }
183
+ catch (e) {
184
+ const res = e.response;
185
+ if (res) {
186
+ const statusCode = res.status;
187
+ // Retry the request for metadata if the following criteria are true:
188
+ // - We haven't already retried. It only makes sense to retry once.
189
+ // - The response was a 401 or a 403
190
+ // - The request didn't send a readableStream
191
+ // - forceRefreshOnFailure is true
192
+ const isReadableStream = res.config.data instanceof stream.Readable;
193
+ const isAuthErr = statusCode === 401 || statusCode === 403;
194
+ if (!reAuthRetried &&
195
+ isAuthErr &&
196
+ !isReadableStream &&
197
+ this.forceRefreshOnFailure) {
198
+ await this.refreshAccessTokenAsync();
199
+ return await this.requestAsync(opts, true);
200
+ }
201
+ }
202
+ throw e;
203
+ }
204
+ return response;
205
+ }
206
+ /**
207
+ * Forces token refresh, even if unexpired tokens are currently cached.
208
+ * GCP access tokens are retrieved from authclient object/source credential.
209
+ * Then GCP access tokens are exchanged for downscoped access tokens via the
210
+ * token exchange endpoint.
211
+ * @return A promise that resolves with the fresh downscoped access token.
212
+ */
213
+ async refreshAccessTokenAsync() {
214
+ // Retrieve GCP access token from source credential.
215
+ const subjectToken = (await this.authClient.getAccessToken()).token;
216
+ // Construct the STS credentials options.
217
+ const stsCredentialsOptions = {
218
+ grantType: STS_GRANT_TYPE,
219
+ requestedTokenType: STS_REQUEST_TOKEN_TYPE,
220
+ subjectToken: subjectToken,
221
+ subjectTokenType: STS_SUBJECT_TOKEN_TYPE,
222
+ };
223
+ // Exchange the source AuthClient access token for a Downscoped access
224
+ // token.
225
+ const stsResponse = await this.stsCredential.exchangeToken(stsCredentialsOptions, undefined, this.credentialAccessBoundary);
226
+ /**
227
+ * The STS endpoint will only return the expiration time for the downscoped
228
+ * access token if the original access token represents a service account.
229
+ * The downscoped token's expiration time will always match the source
230
+ * credential expiration. When no expires_in is returned, we can copy the
231
+ * source credential's expiration time.
232
+ */
233
+ const sourceCredExpireDate = this.authClient.credentials?.expiry_date || null;
234
+ const expiryDate = stsResponse.expires_in
235
+ ? new Date().getTime() + stsResponse.expires_in * 1000
236
+ : sourceCredExpireDate;
237
+ // Save response in cached access token.
238
+ this.cachedDownscopedAccessToken = {
239
+ access_token: stsResponse.access_token,
240
+ expiry_date: expiryDate,
241
+ res: stsResponse.res,
242
+ };
243
+ // Save credentials.
244
+ this.credentials = {};
245
+ Object.assign(this.credentials, this.cachedDownscopedAccessToken);
246
+ delete this.credentials.res;
247
+ // Trigger tokens event to notify external listeners.
248
+ this.emit('tokens', {
249
+ refresh_token: null,
250
+ expiry_date: this.cachedDownscopedAccessToken.expiry_date,
251
+ access_token: this.cachedDownscopedAccessToken.access_token,
252
+ token_type: 'Bearer',
253
+ id_token: null,
254
+ });
255
+ // Return the cached access token.
256
+ return this.cachedDownscopedAccessToken;
257
+ }
258
+ /**
259
+ * Returns whether the provided credentials are expired or not.
260
+ * If there is no expiry time, assumes the token is not expired or expiring.
261
+ * @param downscopedAccessToken The credentials to check for expiration.
262
+ * @return Whether the credentials are expired or not.
263
+ */
264
+ isExpired(downscopedAccessToken) {
265
+ const now = new Date().getTime();
266
+ return downscopedAccessToken.expiry_date
267
+ ? now >=
268
+ downscopedAccessToken.expiry_date - this.eagerRefreshThresholdMillis
269
+ : false;
270
+ }
271
+ }
272
+ exports.DownscopedClient = DownscopedClient;
273
+ //# sourceMappingURL=downscopedclient.js.map
@@ -0,0 +1,11 @@
1
+ export declare enum GCPEnv {
2
+ APP_ENGINE = "APP_ENGINE",
3
+ KUBERNETES_ENGINE = "KUBERNETES_ENGINE",
4
+ CLOUD_FUNCTIONS = "CLOUD_FUNCTIONS",
5
+ COMPUTE_ENGINE = "COMPUTE_ENGINE",
6
+ CLOUD_RUN = "CLOUD_RUN",
7
+ CLOUD_RUN_JOBS = "CLOUD_RUN_JOBS",
8
+ NONE = "NONE"
9
+ }
10
+ export declare function clear(): void;
11
+ export declare function getEnv(): Promise<GCPEnv>;