@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,197 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2021 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.Impersonated = exports.IMPERSONATED_ACCOUNT_TYPE = void 0;
19
+ const oauth2client_1 = require("./oauth2client");
20
+ const gaxios_1 = require("gaxios");
21
+ const util_1 = require("../util");
22
+ exports.IMPERSONATED_ACCOUNT_TYPE = 'impersonated_service_account';
23
+ class Impersonated extends oauth2client_1.OAuth2Client {
24
+ sourceClient;
25
+ targetPrincipal;
26
+ targetScopes;
27
+ delegates;
28
+ lifetime;
29
+ endpoint;
30
+ /**
31
+ * Impersonated service account credentials.
32
+ *
33
+ * Create a new access token by impersonating another service account.
34
+ *
35
+ * Impersonated Credentials allowing credentials issued to a user or
36
+ * service account to impersonate another. The source project using
37
+ * Impersonated Credentials must enable the "IAMCredentials" API.
38
+ * Also, the target service account must grant the orginating principal
39
+ * the "Service Account Token Creator" IAM role.
40
+ *
41
+ * **IMPORTANT**: This method does not validate the credential configuration.
42
+ * A security risk occurs when a credential configuration configured with
43
+ * malicious URLs is used. When the credential configuration is accepted from
44
+ * an untrusted source, you should validate it before using it with this
45
+ * method. For more details, see
46
+ * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials.
47
+ *
48
+ * @param {object} options - The configuration object.
49
+ * @param {object} [options.sourceClient] the source credential used as to
50
+ * acquire the impersonated credentials.
51
+ * @param {string} [options.targetPrincipal] the service account to
52
+ * impersonate.
53
+ * @param {string[]} [options.delegates] the chained list of delegates
54
+ * required to grant the final access_token. If set, the sequence of
55
+ * identities must have "Service Account Token Creator" capability granted to
56
+ * the preceding identity. For example, if set to [serviceAccountB,
57
+ * serviceAccountC], the sourceCredential must have the Token Creator role on
58
+ * serviceAccountB. serviceAccountB must have the Token Creator on
59
+ * serviceAccountC. Finally, C must have Token Creator on target_principal.
60
+ * If left unset, sourceCredential must have that role on targetPrincipal.
61
+ * @param {string[]} [options.targetScopes] scopes to request during the
62
+ * authorization grant.
63
+ * @param {number} [options.lifetime] number of seconds the delegated
64
+ * credential should be valid for up to 3600 seconds by default, or 43,200
65
+ * seconds by extending the token's lifetime, see:
66
+ * https://cloud.google.com/iam/docs/creating-short-lived-service-account-credentials#sa-credentials-oauth
67
+ * @param {string} [options.endpoint] api endpoint override.
68
+ */
69
+ constructor(options = {}) {
70
+ super(options);
71
+ // Start with an expired refresh token, which will automatically be
72
+ // refreshed before the first API call is made.
73
+ this.credentials = {
74
+ expiry_date: 1,
75
+ refresh_token: 'impersonated-placeholder',
76
+ };
77
+ this.sourceClient = options.sourceClient ?? new oauth2client_1.OAuth2Client();
78
+ this.targetPrincipal = options.targetPrincipal ?? '';
79
+ this.delegates = options.delegates ?? [];
80
+ this.targetScopes = options.targetScopes ?? [];
81
+ this.lifetime = options.lifetime ?? 3600;
82
+ const usingExplicitUniverseDomain = !!(0, util_1.originalOrCamelOptions)(options).get('universe_domain');
83
+ if (!usingExplicitUniverseDomain) {
84
+ // override the default universe with the source's universe
85
+ this.universeDomain = this.sourceClient.universeDomain;
86
+ }
87
+ else if (this.sourceClient.universeDomain !== this.universeDomain) {
88
+ // non-default universe and is not matching the source - this could be a credential leak
89
+ throw new RangeError(`Universe domain ${this.sourceClient.universeDomain} in source credentials does not match ${this.universeDomain} universe domain set for impersonated credentials.`);
90
+ }
91
+ this.endpoint =
92
+ options.endpoint ?? `https://iamcredentials.${this.universeDomain}`;
93
+ }
94
+ /**
95
+ * Signs some bytes.
96
+ *
97
+ * {@link https://cloud.google.com/iam/docs/reference/credentials/rest/v1/projects.serviceAccounts/signBlob Reference Documentation}
98
+ * @param blobToSign String to sign.
99
+ *
100
+ * @returns A {@link SignBlobResponse} denoting the keyID and signedBlob in base64 string
101
+ */
102
+ async sign(blobToSign) {
103
+ await this.sourceClient.getAccessToken();
104
+ const name = `projects/-/serviceAccounts/${this.targetPrincipal}`;
105
+ const u = `${this.endpoint}/v1/${name}:signBlob`;
106
+ const body = {
107
+ delegates: this.delegates,
108
+ payload: Buffer.from(blobToSign).toString('base64'),
109
+ };
110
+ const res = await this.sourceClient.request({
111
+ ...Impersonated.RETRY_CONFIG,
112
+ url: u,
113
+ data: body,
114
+ method: 'POST',
115
+ });
116
+ return res.data;
117
+ }
118
+ /** The service account email to be impersonated. */
119
+ getTargetPrincipal() {
120
+ return this.targetPrincipal;
121
+ }
122
+ /**
123
+ * Refreshes the access token.
124
+ */
125
+ async refreshToken() {
126
+ try {
127
+ await this.sourceClient.getAccessToken();
128
+ const name = 'projects/-/serviceAccounts/' + this.targetPrincipal;
129
+ const u = `${this.endpoint}/v1/${name}:generateAccessToken`;
130
+ const body = {
131
+ delegates: this.delegates,
132
+ scope: this.targetScopes,
133
+ lifetime: this.lifetime + 's',
134
+ };
135
+ const res = await this.sourceClient.request({
136
+ ...Impersonated.RETRY_CONFIG,
137
+ url: u,
138
+ data: body,
139
+ method: 'POST',
140
+ });
141
+ const tokenResponse = res.data;
142
+ this.credentials.access_token = tokenResponse.accessToken;
143
+ this.credentials.expiry_date = Date.parse(tokenResponse.expireTime);
144
+ return {
145
+ tokens: this.credentials,
146
+ res,
147
+ };
148
+ }
149
+ catch (error) {
150
+ if (!(error instanceof Error))
151
+ throw error;
152
+ let status = 0;
153
+ let message = '';
154
+ if (error instanceof gaxios_1.GaxiosError) {
155
+ status = error?.response?.data?.error?.status;
156
+ message = error?.response?.data?.error?.message;
157
+ }
158
+ if (status && message) {
159
+ error.message = `${status}: unable to impersonate: ${message}`;
160
+ throw error;
161
+ }
162
+ else {
163
+ error.message = `unable to impersonate: ${error}`;
164
+ throw error;
165
+ }
166
+ }
167
+ }
168
+ /**
169
+ * Generates an OpenID Connect ID token for a service account.
170
+ *
171
+ * {@link https://cloud.google.com/iam/docs/reference/credentials/rest/v1/projects.serviceAccounts/generateIdToken Reference Documentation}
172
+ *
173
+ * @param targetAudience the audience for the fetched ID token.
174
+ * @param options the for the request
175
+ * @return an OpenID Connect ID token
176
+ */
177
+ async fetchIdToken(targetAudience, options) {
178
+ await this.sourceClient.getAccessToken();
179
+ const name = `projects/-/serviceAccounts/${this.targetPrincipal}`;
180
+ const u = `${this.endpoint}/v1/${name}:generateIdToken`;
181
+ const body = {
182
+ delegates: this.delegates,
183
+ audience: targetAudience,
184
+ includeEmail: options?.includeEmail ?? true,
185
+ useEmailAzp: options?.includeEmail ?? true,
186
+ };
187
+ const res = await this.sourceClient.request({
188
+ ...Impersonated.RETRY_CONFIG,
189
+ url: u,
190
+ data: body,
191
+ method: 'POST',
192
+ });
193
+ return res.data.token;
194
+ }
195
+ }
196
+ exports.Impersonated = Impersonated;
197
+ //# sourceMappingURL=impersonated.js.map
@@ -0,0 +1,61 @@
1
+ import * as stream from 'stream';
2
+ import { JWTInput } from './credentials';
3
+ export interface Claims {
4
+ [index: string]: string;
5
+ }
6
+ export declare class JWTAccess {
7
+ email?: string | null;
8
+ key?: string | null;
9
+ keyId?: string | null;
10
+ projectId?: string;
11
+ eagerRefreshThresholdMillis: number;
12
+ private cache;
13
+ /**
14
+ * JWTAccess service account credentials.
15
+ *
16
+ * Create a new access token by using the credential to create a new JWT token
17
+ * that's recognized as the access token.
18
+ *
19
+ * @param email the service account email address.
20
+ * @param key the private key that will be used to sign the token.
21
+ * @param keyId the ID of the private key used to sign the token.
22
+ */
23
+ constructor(email?: string | null, key?: string | null, keyId?: string | null, eagerRefreshThresholdMillis?: number);
24
+ /**
25
+ * Ensures that we're caching a key appropriately, giving precedence to scopes vs. url
26
+ *
27
+ * @param url The URI being authorized.
28
+ * @param scopes The scope or scopes being authorized
29
+ * @returns A string that returns the cached key.
30
+ */
31
+ getCachedKey(url?: string, scopes?: string | string[]): string;
32
+ /**
33
+ * Get a non-expired access token, after refreshing if necessary.
34
+ *
35
+ * @param url The URI being authorized.
36
+ * @param additionalClaims An object with a set of additional claims to
37
+ * include in the payload.
38
+ * @returns An object that includes the authorization header.
39
+ */
40
+ getRequestHeaders(url?: string, additionalClaims?: Claims, scopes?: string | string[]): Headers;
41
+ /**
42
+ * Returns an expiration time for the JWT token.
43
+ *
44
+ * @param iat The issued at time for the JWT.
45
+ * @returns An expiration time for the JWT.
46
+ */
47
+ private static getExpirationTime;
48
+ /**
49
+ * Create a JWTAccess credentials instance using the given input options.
50
+ * @param json The input object.
51
+ */
52
+ fromJSON(json: JWTInput): void;
53
+ /**
54
+ * Create a JWTAccess credentials instance using the given input stream.
55
+ * @param inputStream The input stream.
56
+ * @param callback Optional callback.
57
+ */
58
+ fromStream(inputStream: stream.Readable): Promise<void>;
59
+ fromStream(inputStream: stream.Readable, callback: (err?: Error) => void): void;
60
+ private fromStreamAsync;
61
+ }
@@ -0,0 +1,201 @@
1
+ "use strict";
2
+ // Copyright 2015 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.JWTAccess = void 0;
17
+ const jws = require("jws");
18
+ const util_1 = require("../util");
19
+ const DEFAULT_HEADER = {
20
+ alg: 'RS256',
21
+ typ: 'JWT',
22
+ };
23
+ class JWTAccess {
24
+ email;
25
+ key;
26
+ keyId;
27
+ projectId;
28
+ eagerRefreshThresholdMillis;
29
+ cache = new util_1.LRUCache({
30
+ capacity: 500,
31
+ maxAge: 60 * 60 * 1000,
32
+ });
33
+ /**
34
+ * JWTAccess service account credentials.
35
+ *
36
+ * Create a new access token by using the credential to create a new JWT token
37
+ * that's recognized as the access token.
38
+ *
39
+ * @param email the service account email address.
40
+ * @param key the private key that will be used to sign the token.
41
+ * @param keyId the ID of the private key used to sign the token.
42
+ */
43
+ constructor(email, key, keyId, eagerRefreshThresholdMillis) {
44
+ this.email = email;
45
+ this.key = key;
46
+ this.keyId = keyId;
47
+ this.eagerRefreshThresholdMillis =
48
+ eagerRefreshThresholdMillis ?? 5 * 60 * 1000;
49
+ }
50
+ /**
51
+ * Ensures that we're caching a key appropriately, giving precedence to scopes vs. url
52
+ *
53
+ * @param url The URI being authorized.
54
+ * @param scopes The scope or scopes being authorized
55
+ * @returns A string that returns the cached key.
56
+ */
57
+ getCachedKey(url, scopes) {
58
+ let cacheKey = url;
59
+ if (scopes && Array.isArray(scopes) && scopes.length) {
60
+ cacheKey = url ? `${url}_${scopes.join('_')}` : `${scopes.join('_')}`;
61
+ }
62
+ else if (typeof scopes === 'string') {
63
+ cacheKey = url ? `${url}_${scopes}` : scopes;
64
+ }
65
+ if (!cacheKey) {
66
+ throw Error('Scopes or url must be provided');
67
+ }
68
+ return cacheKey;
69
+ }
70
+ /**
71
+ * Get a non-expired access token, after refreshing if necessary.
72
+ *
73
+ * @param url The URI being authorized.
74
+ * @param additionalClaims An object with a set of additional claims to
75
+ * include in the payload.
76
+ * @returns An object that includes the authorization header.
77
+ */
78
+ getRequestHeaders(url, additionalClaims, scopes) {
79
+ // Return cached authorization headers, unless we are within
80
+ // eagerRefreshThresholdMillis ms of them expiring:
81
+ const key = this.getCachedKey(url, scopes);
82
+ const cachedToken = this.cache.get(key);
83
+ const now = Date.now();
84
+ if (cachedToken &&
85
+ cachedToken.expiration - now > this.eagerRefreshThresholdMillis) {
86
+ // Copying headers into a new `Headers` object to avoid potential leakage -
87
+ // as this is a cache it is possible for multiple requests to reference this
88
+ // same value.
89
+ return new Headers(cachedToken.headers);
90
+ }
91
+ const iat = Math.floor(Date.now() / 1000);
92
+ const exp = JWTAccess.getExpirationTime(iat);
93
+ let defaultClaims;
94
+ // Turn scopes into space-separated string
95
+ if (Array.isArray(scopes)) {
96
+ scopes = scopes.join(' ');
97
+ }
98
+ // If scopes are specified, sign with scopes
99
+ if (scopes) {
100
+ defaultClaims = {
101
+ iss: this.email,
102
+ sub: this.email,
103
+ scope: scopes,
104
+ exp,
105
+ iat,
106
+ };
107
+ }
108
+ else {
109
+ defaultClaims = {
110
+ iss: this.email,
111
+ sub: this.email,
112
+ aud: url,
113
+ exp,
114
+ iat,
115
+ };
116
+ }
117
+ // if additionalClaims are provided, ensure they do not collide with
118
+ // other required claims.
119
+ if (additionalClaims) {
120
+ for (const claim in defaultClaims) {
121
+ if (additionalClaims[claim]) {
122
+ throw new Error(`The '${claim}' property is not allowed when passing additionalClaims. This claim is included in the JWT by default.`);
123
+ }
124
+ }
125
+ }
126
+ const header = this.keyId
127
+ ? { ...DEFAULT_HEADER, kid: this.keyId }
128
+ : DEFAULT_HEADER;
129
+ const payload = Object.assign(defaultClaims, additionalClaims);
130
+ // Sign the jwt and add it to the cache
131
+ const signedJWT = jws.sign({ header, payload, secret: this.key });
132
+ const headers = new Headers({ authorization: `Bearer ${signedJWT}` });
133
+ this.cache.set(key, {
134
+ expiration: exp * 1000,
135
+ headers,
136
+ });
137
+ return headers;
138
+ }
139
+ /**
140
+ * Returns an expiration time for the JWT token.
141
+ *
142
+ * @param iat The issued at time for the JWT.
143
+ * @returns An expiration time for the JWT.
144
+ */
145
+ static getExpirationTime(iat) {
146
+ const exp = iat + 3600; // 3600 seconds = 1 hour
147
+ return exp;
148
+ }
149
+ /**
150
+ * Create a JWTAccess credentials instance using the given input options.
151
+ * @param json The input object.
152
+ */
153
+ fromJSON(json) {
154
+ if (!json) {
155
+ throw new Error('Must pass in a JSON object containing the service account auth settings.');
156
+ }
157
+ if (!json.client_email) {
158
+ throw new Error('The incoming JSON object does not contain a client_email field');
159
+ }
160
+ if (!json.private_key) {
161
+ throw new Error('The incoming JSON object does not contain a private_key field');
162
+ }
163
+ // Extract the relevant information from the json key file.
164
+ this.email = json.client_email;
165
+ this.key = json.private_key;
166
+ this.keyId = json.private_key_id;
167
+ this.projectId = json.project_id;
168
+ }
169
+ fromStream(inputStream, callback) {
170
+ if (callback) {
171
+ this.fromStreamAsync(inputStream).then(() => callback(), callback);
172
+ }
173
+ else {
174
+ return this.fromStreamAsync(inputStream);
175
+ }
176
+ }
177
+ fromStreamAsync(inputStream) {
178
+ return new Promise((resolve, reject) => {
179
+ if (!inputStream) {
180
+ reject(new Error('Must pass in a stream containing the service account auth settings.'));
181
+ }
182
+ let s = '';
183
+ inputStream
184
+ .setEncoding('utf8')
185
+ .on('data', chunk => (s += chunk))
186
+ .on('error', reject)
187
+ .on('end', () => {
188
+ try {
189
+ const data = JSON.parse(s);
190
+ this.fromJSON(data);
191
+ resolve();
192
+ }
193
+ catch (err) {
194
+ reject(err);
195
+ }
196
+ });
197
+ });
198
+ }
199
+ }
200
+ exports.JWTAccess = JWTAccess;
201
+ //# sourceMappingURL=jwtaccess.js.map
@@ -0,0 +1,137 @@
1
+ import { GoogleToken } from '../gtoken/googleToken';
2
+ import * as stream from 'stream';
3
+ import { CredentialBody, Credentials, JWTInput } from './credentials';
4
+ import { IdTokenProvider } from './idtokenclient';
5
+ import { GetTokenResponse, OAuth2Client, OAuth2ClientOptions, RequestMetadataResponse } from './oauth2client';
6
+ export interface JWTOptions extends OAuth2ClientOptions {
7
+ /**
8
+ * The service account email address.
9
+ */
10
+ email?: string;
11
+ /**
12
+ * The path to private key file. Not necessary if {@link JWTOptions.key} has been provided.
13
+ */
14
+ keyFile?: string;
15
+ /**
16
+ * The value of key. Not necessary if {@link JWTOptions.keyFile} has been provided.
17
+ */
18
+ key?: string;
19
+ /**
20
+ * The list of requested scopes or a single scope.
21
+ */
22
+ keyId?: string;
23
+ /**
24
+ * The impersonated account's email address.
25
+ */
26
+ scopes?: string | string[];
27
+ /**
28
+ * The ID of the key.
29
+ */
30
+ subject?: string;
31
+ /**
32
+ * Additional claims, such as target audience.
33
+ *
34
+ * @example
35
+ * ```
36
+ * {target_audience: 'targetAudience'}
37
+ * ```
38
+ */
39
+ additionalClaims?: {};
40
+ }
41
+ export declare class JWT extends OAuth2Client implements IdTokenProvider {
42
+ email?: string;
43
+ keyFile?: string;
44
+ key?: string;
45
+ keyId?: string;
46
+ defaultScopes?: string | string[];
47
+ scopes?: string | string[];
48
+ scope?: string;
49
+ subject?: string;
50
+ gtoken?: GoogleToken;
51
+ additionalClaims?: {};
52
+ useJWTAccessWithScope?: boolean;
53
+ defaultServicePath?: string;
54
+ private access?;
55
+ /**
56
+ * JWT service account credentials.
57
+ *
58
+ * Retrieve access token using gtoken.
59
+ *
60
+ * @param options the
61
+ */
62
+ constructor(options?: JWTOptions);
63
+ /**
64
+ * Creates a copy of the credential with the specified scopes.
65
+ * @param scopes List of requested scopes or a single scope.
66
+ * @return The cloned instance.
67
+ */
68
+ createScoped(scopes?: string | string[]): JWT;
69
+ /**
70
+ * Obtains the metadata to be sent with the request.
71
+ *
72
+ * @param url the URI being authorized.
73
+ */
74
+ protected getRequestMetadataAsync(url?: string | null): Promise<RequestMetadataResponse>;
75
+ /**
76
+ * Fetches an ID token.
77
+ * @param targetAudience the audience for the fetched ID token.
78
+ */
79
+ fetchIdToken(targetAudience: string): Promise<string>;
80
+ /**
81
+ * Determine if there are currently scopes available.
82
+ */
83
+ private hasUserScopes;
84
+ /**
85
+ * Are there any default or user scopes defined.
86
+ */
87
+ private hasAnyScopes;
88
+ /**
89
+ * Get the initial access token using gToken.
90
+ * @param callback Optional callback.
91
+ * @returns Promise that resolves with credentials
92
+ */
93
+ authorize(): Promise<Credentials>;
94
+ authorize(callback: (err: Error | null, result?: Credentials) => void): void;
95
+ private authorizeAsync;
96
+ /**
97
+ * Refreshes the access token.
98
+ * @param refreshToken ignored
99
+ * @private
100
+ */
101
+ protected refreshTokenNoCache(): Promise<GetTokenResponse>;
102
+ /**
103
+ * Create a gToken if it doesn't already exist.
104
+ */
105
+ private createGToken;
106
+ /**
107
+ * Create a JWT credentials instance using the given input options.
108
+ * @param json The input object.
109
+ *
110
+ * @remarks
111
+ *
112
+ * **Important**: If you accept a credential configuration (credential JSON/File/Stream) from an external source for authentication to Google Cloud, you must validate it before providing it to any Google API or library. Providing an unvalidated credential configuration to Google APIs can compromise the security of your systems and data. For more information, refer to {@link https://cloud.google.com/docs/authentication/external/externally-sourced-credentials Validate credential configurations from external sources}.
113
+ */
114
+ fromJSON(json: JWTInput): void;
115
+ /**
116
+ * Create a JWT credentials instance using the given input stream.
117
+ * @param inputStream The input stream.
118
+ * @param callback Optional callback.
119
+ *
120
+ * @remarks
121
+ *
122
+ * **Important**: If you accept a credential configuration (credential JSON/File/Stream) from an external source for authentication to Google Cloud, you must validate it before providing it to any Google API or library. Providing an unvalidated credential configuration to Google APIs can compromise the security of your systems and data. For more information, refer to {@link https://cloud.google.com/docs/authentication/external/externally-sourced-credentials Validate credential configurations from external sources}.
123
+ */
124
+ fromStream(inputStream: stream.Readable): Promise<void>;
125
+ fromStream(inputStream: stream.Readable, callback: (err?: Error | null) => void): void;
126
+ private fromStreamAsync;
127
+ /**
128
+ * Creates a JWT credentials instance using an API Key for authentication.
129
+ * @param apiKey The API Key in string form.
130
+ */
131
+ fromAPIKey(apiKey: string): void;
132
+ /**
133
+ * Using the key or keyFile on the JWT client, obtain an object that contains
134
+ * the key and the client email.
135
+ */
136
+ getCredentials(): Promise<CredentialBody>;
137
+ }