@openclaw/googlechat 2026.5.20 → 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,477 @@
1
+ "use strict";
2
+ // Copyright 2021 Google LLC
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // http://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.BaseExternalAccountClient = exports.CLOUD_RESOURCE_MANAGER = exports.EXTERNAL_ACCOUNT_TYPE = exports.EXPIRATION_TIME_OFFSET = void 0;
17
+ const gaxios_1 = require("gaxios");
18
+ const stream = require("stream");
19
+ const authclient_1 = require("./authclient");
20
+ const sts = require("./stscredentials");
21
+ const util_1 = require("../util");
22
+ const shared_cjs_1 = require("../shared.cjs");
23
+ /**
24
+ * The required token exchange grant_type: rfc8693#section-2.1
25
+ */
26
+ const STS_GRANT_TYPE = 'urn:ietf:params:oauth:grant-type:token-exchange';
27
+ /**
28
+ * The requested token exchange requested_token_type: rfc8693#section-2.1
29
+ */
30
+ const STS_REQUEST_TOKEN_TYPE = 'urn:ietf:params:oauth:token-type:access_token';
31
+ /** The default OAuth scope to request when none is provided. */
32
+ const DEFAULT_OAUTH_SCOPE = 'https://www.googleapis.com/auth/cloud-platform';
33
+ /** Default impersonated token lifespan in seconds.*/
34
+ const DEFAULT_TOKEN_LIFESPAN = 3600;
35
+ /**
36
+ * Offset to take into account network delays and server clock skews.
37
+ */
38
+ exports.EXPIRATION_TIME_OFFSET = 5 * 60 * 1000;
39
+ /**
40
+ * The credentials JSON file type for external account clients.
41
+ * There are 3 types of JSON configs:
42
+ * 1. authorized_user => Google end user credential
43
+ * 2. service_account => Google service account credential
44
+ * 3. external_Account => non-GCP service (eg. AWS, Azure, K8s)
45
+ */
46
+ exports.EXTERNAL_ACCOUNT_TYPE = 'external_account';
47
+ /**
48
+ * Cloud resource manager URL used to retrieve project information.
49
+ *
50
+ * @deprecated use {@link BaseExternalAccountClient.cloudResourceManagerURL} instead
51
+ **/
52
+ exports.CLOUD_RESOURCE_MANAGER = 'https://cloudresourcemanager.googleapis.com/v1/projects/';
53
+ /** The workforce audience pattern. */
54
+ const WORKFORCE_AUDIENCE_PATTERN = '//iam\\.googleapis\\.com/locations/[^/]+/workforcePools/[^/]+/providers/.+';
55
+ const DEFAULT_TOKEN_URL = 'https://sts.{universeDomain}/v1/token';
56
+ /**
57
+ * Base external account client. This is used to instantiate AuthClients for
58
+ * exchanging external account credentials for GCP access token and authorizing
59
+ * requests to GCP APIs.
60
+ * The base class implements common logic for exchanging various type of
61
+ * external credentials for GCP access token. The logic of determining and
62
+ * retrieving the external credential based on the environment and
63
+ * credential_source will be left for the subclasses.
64
+ */
65
+ class BaseExternalAccountClient extends authclient_1.AuthClient {
66
+ /**
67
+ * OAuth scopes for the GCP access token to use. When not provided,
68
+ * the default https://www.googleapis.com/auth/cloud-platform is
69
+ * used.
70
+ */
71
+ scopes;
72
+ projectNumber;
73
+ audience;
74
+ subjectTokenType;
75
+ stsCredential;
76
+ clientAuth;
77
+ credentialSourceType;
78
+ cachedAccessToken;
79
+ serviceAccountImpersonationUrl;
80
+ serviceAccountImpersonationLifetime;
81
+ workforcePoolUserProject;
82
+ configLifetimeRequested;
83
+ tokenUrl;
84
+ /**
85
+ * @example
86
+ * ```ts
87
+ * new URL('https://cloudresourcemanager.googleapis.com/v1/projects/');
88
+ * ```
89
+ */
90
+ cloudResourceManagerURL;
91
+ supplierContext;
92
+ /**
93
+ * A pending access token request. Used for concurrent calls.
94
+ */
95
+ #pendingAccessToken = null;
96
+ /**
97
+ * Instantiate a BaseExternalAccountClient instance using the provided JSON
98
+ * object loaded from an external account credentials file.
99
+ * @param options The external account options object typically loaded
100
+ * from the external account JSON credential file. The camelCased options
101
+ * are aliases for the snake_cased options.
102
+ */
103
+ constructor(options) {
104
+ super(options);
105
+ const opts = (0, util_1.originalOrCamelOptions)(options);
106
+ const type = opts.get('type');
107
+ if (type && type !== exports.EXTERNAL_ACCOUNT_TYPE) {
108
+ throw new Error(`Expected "${exports.EXTERNAL_ACCOUNT_TYPE}" type but ` +
109
+ `received "${options.type}"`);
110
+ }
111
+ const clientId = opts.get('client_id');
112
+ const clientSecret = opts.get('client_secret');
113
+ this.tokenUrl =
114
+ opts.get('token_url') ??
115
+ DEFAULT_TOKEN_URL.replace('{universeDomain}', this.universeDomain);
116
+ const subjectTokenType = opts.get('subject_token_type');
117
+ const workforcePoolUserProject = opts.get('workforce_pool_user_project');
118
+ const serviceAccountImpersonationUrl = opts.get('service_account_impersonation_url');
119
+ const serviceAccountImpersonation = opts.get('service_account_impersonation');
120
+ const serviceAccountImpersonationLifetime = (0, util_1.originalOrCamelOptions)(serviceAccountImpersonation).get('token_lifetime_seconds');
121
+ this.cloudResourceManagerURL = new URL(opts.get('cloud_resource_manager_url') ||
122
+ `https://cloudresourcemanager.${this.universeDomain}/v1/projects/`);
123
+ if (clientId) {
124
+ this.clientAuth = {
125
+ confidentialClientType: 'basic',
126
+ clientId,
127
+ clientSecret,
128
+ };
129
+ }
130
+ this.stsCredential = new sts.StsCredentials({
131
+ tokenExchangeEndpoint: this.tokenUrl,
132
+ clientAuthentication: this.clientAuth,
133
+ });
134
+ this.scopes = opts.get('scopes') || [DEFAULT_OAUTH_SCOPE];
135
+ this.cachedAccessToken = null;
136
+ this.audience = opts.get('audience');
137
+ this.subjectTokenType = subjectTokenType;
138
+ this.workforcePoolUserProject = workforcePoolUserProject;
139
+ const workforceAudiencePattern = new RegExp(WORKFORCE_AUDIENCE_PATTERN);
140
+ if (this.workforcePoolUserProject &&
141
+ !this.audience.match(workforceAudiencePattern)) {
142
+ throw new Error('workforcePoolUserProject should not be set for non-workforce pool ' +
143
+ 'credentials.');
144
+ }
145
+ this.serviceAccountImpersonationUrl = serviceAccountImpersonationUrl;
146
+ this.serviceAccountImpersonationLifetime =
147
+ serviceAccountImpersonationLifetime;
148
+ if (this.serviceAccountImpersonationLifetime) {
149
+ this.configLifetimeRequested = true;
150
+ }
151
+ else {
152
+ this.configLifetimeRequested = false;
153
+ this.serviceAccountImpersonationLifetime = DEFAULT_TOKEN_LIFESPAN;
154
+ }
155
+ this.projectNumber = this.getProjectNumber(this.audience);
156
+ this.supplierContext = {
157
+ audience: this.audience,
158
+ subjectTokenType: this.subjectTokenType,
159
+ transporter: this.transporter,
160
+ };
161
+ }
162
+ /** The service account email to be impersonated, if available. */
163
+ getServiceAccountEmail() {
164
+ if (this.serviceAccountImpersonationUrl) {
165
+ if (this.serviceAccountImpersonationUrl.length > 256) {
166
+ /**
167
+ * Prevents DOS attacks.
168
+ * @see {@link https://github.com/googleapis/google-auth-library-nodejs/security/code-scanning/84}
169
+ **/
170
+ throw new RangeError(`URL is too long: ${this.serviceAccountImpersonationUrl}`);
171
+ }
172
+ // Parse email from URL. The formal looks as follows:
173
+ // https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/name@project-id.iam.gserviceaccount.com:generateAccessToken
174
+ const re = /serviceAccounts\/(?<email>[^:]+):generateAccessToken$/;
175
+ const result = re.exec(this.serviceAccountImpersonationUrl);
176
+ return result?.groups?.email || null;
177
+ }
178
+ return null;
179
+ }
180
+ /**
181
+ * Provides a mechanism to inject GCP access tokens directly.
182
+ * When the provided credential expires, a new credential, using the
183
+ * external account options, is retrieved.
184
+ * @param credentials The Credentials object to set on the current client.
185
+ */
186
+ setCredentials(credentials) {
187
+ super.setCredentials(credentials);
188
+ this.cachedAccessToken = credentials;
189
+ }
190
+ /**
191
+ * @return A promise that resolves with the current GCP access token
192
+ * response. If the current credential is expired, a new one is retrieved.
193
+ */
194
+ async getAccessToken() {
195
+ // If cached access token is unavailable or expired, force refresh.
196
+ if (!this.cachedAccessToken || this.isExpired(this.cachedAccessToken)) {
197
+ await this.refreshAccessTokenAsync();
198
+ }
199
+ // Return GCP access token in GetAccessTokenResponse format.
200
+ return {
201
+ token: this.cachedAccessToken.access_token,
202
+ res: this.cachedAccessToken.res,
203
+ };
204
+ }
205
+ /**
206
+ * The main authentication interface. It takes an optional url which when
207
+ * present is the endpoint being accessed, and returns a Promise which
208
+ * resolves with authorization header fields.
209
+ *
210
+ * The result has the form:
211
+ * { authorization: 'Bearer <access_token_value>' }
212
+ */
213
+ async getRequestHeaders() {
214
+ const accessTokenResponse = await this.getAccessToken();
215
+ const headers = new Headers({
216
+ authorization: `Bearer ${accessTokenResponse.token}`,
217
+ });
218
+ return this.addSharedMetadataHeaders(headers);
219
+ }
220
+ request(opts, callback) {
221
+ if (callback) {
222
+ this.requestAsync(opts).then(r => callback(null, r), e => {
223
+ return callback(e, e.response);
224
+ });
225
+ }
226
+ else {
227
+ return this.requestAsync(opts);
228
+ }
229
+ }
230
+ /**
231
+ * @return A promise that resolves with the project ID corresponding to the
232
+ * current workload identity pool or current workforce pool if
233
+ * determinable. For workforce pool credential, it returns the project ID
234
+ * corresponding to the workforcePoolUserProject.
235
+ * This is introduced to match the current pattern of using the Auth
236
+ * library:
237
+ * const projectId = await auth.getProjectId();
238
+ * const url = `https://dns.googleapis.com/dns/v1/projects/${projectId}`;
239
+ * const res = await client.request({ url });
240
+ * The resource may not have permission
241
+ * (resourcemanager.projects.get) to call this API or the required
242
+ * scopes may not be selected:
243
+ * https://cloud.google.com/resource-manager/reference/rest/v1/projects/get#authorization-scopes
244
+ */
245
+ async getProjectId() {
246
+ const projectNumber = this.projectNumber || this.workforcePoolUserProject;
247
+ if (this.projectId) {
248
+ // Return previously determined project ID.
249
+ return this.projectId;
250
+ }
251
+ else if (projectNumber) {
252
+ // Preferable not to use request() to avoid retrial policies.
253
+ const headers = await this.getRequestHeaders();
254
+ const opts = {
255
+ ...BaseExternalAccountClient.RETRY_CONFIG,
256
+ headers,
257
+ url: `${this.cloudResourceManagerURL.toString()}${projectNumber}`,
258
+ responseType: 'json',
259
+ };
260
+ authclient_1.AuthClient.setMethodName(opts, 'getProjectId');
261
+ const response = await this.transporter.request(opts);
262
+ this.projectId = response.data.projectId;
263
+ return this.projectId;
264
+ }
265
+ return null;
266
+ }
267
+ /**
268
+ * Authenticates the provided HTTP request, processes it and resolves with the
269
+ * returned response.
270
+ * @param opts The HTTP request options.
271
+ * @param reAuthRetried Whether the current attempt is a retry after a failed attempt due to an auth failure.
272
+ * @return A promise that resolves with the successful response.
273
+ */
274
+ async requestAsync(opts, reAuthRetried = false) {
275
+ let response;
276
+ try {
277
+ const requestHeaders = await this.getRequestHeaders();
278
+ opts.headers = gaxios_1.Gaxios.mergeHeaders(opts.headers);
279
+ this.addUserProjectAndAuthHeaders(opts.headers, requestHeaders);
280
+ response = await this.transporter.request(opts);
281
+ }
282
+ catch (e) {
283
+ const res = e.response;
284
+ if (res) {
285
+ const statusCode = res.status;
286
+ // Retry the request for metadata if the following criteria are true:
287
+ // - We haven't already retried. It only makes sense to retry once.
288
+ // - The response was a 401 or a 403
289
+ // - The request didn't send a readableStream
290
+ // - forceRefreshOnFailure is true
291
+ const isReadableStream = res.config.data instanceof stream.Readable;
292
+ const isAuthErr = statusCode === 401 || statusCode === 403;
293
+ if (!reAuthRetried &&
294
+ isAuthErr &&
295
+ !isReadableStream &&
296
+ this.forceRefreshOnFailure) {
297
+ await this.refreshAccessTokenAsync();
298
+ return await this.requestAsync(opts, true);
299
+ }
300
+ }
301
+ throw e;
302
+ }
303
+ return response;
304
+ }
305
+ /**
306
+ * Forces token refresh, even if unexpired tokens are currently cached.
307
+ * External credentials are exchanged for GCP access tokens via the token
308
+ * exchange endpoint and other settings provided in the client options
309
+ * object.
310
+ * If the service_account_impersonation_url is provided, an additional
311
+ * step to exchange the external account GCP access token for a service
312
+ * account impersonated token is performed.
313
+ * @return A promise that resolves with the fresh GCP access tokens.
314
+ */
315
+ async refreshAccessTokenAsync() {
316
+ // Use an existing access token request, or cache a new one
317
+ this.#pendingAccessToken =
318
+ this.#pendingAccessToken || this.#internalRefreshAccessTokenAsync();
319
+ try {
320
+ return await this.#pendingAccessToken;
321
+ }
322
+ finally {
323
+ // clear pending access token for future requests
324
+ this.#pendingAccessToken = null;
325
+ }
326
+ }
327
+ async #internalRefreshAccessTokenAsync() {
328
+ // Retrieve the external credential.
329
+ const subjectToken = await this.retrieveSubjectToken();
330
+ // Construct the STS credentials options.
331
+ const stsCredentialsOptions = {
332
+ grantType: STS_GRANT_TYPE,
333
+ audience: this.audience,
334
+ requestedTokenType: STS_REQUEST_TOKEN_TYPE,
335
+ subjectToken,
336
+ subjectTokenType: this.subjectTokenType,
337
+ // generateAccessToken requires the provided access token to have
338
+ // scopes:
339
+ // https://www.googleapis.com/auth/iam or
340
+ // https://www.googleapis.com/auth/cloud-platform
341
+ // The new service account access token scopes will match the user
342
+ // provided ones.
343
+ scope: this.serviceAccountImpersonationUrl
344
+ ? [DEFAULT_OAUTH_SCOPE]
345
+ : this.getScopesArray(),
346
+ };
347
+ // Exchange the external credentials for a GCP access token.
348
+ // Client auth is prioritized over passing the workforcePoolUserProject
349
+ // parameter for STS token exchange.
350
+ const additionalOptions = !this.clientAuth && this.workforcePoolUserProject
351
+ ? { userProject: this.workforcePoolUserProject }
352
+ : undefined;
353
+ const additionalHeaders = new Headers({
354
+ 'x-goog-api-client': this.getMetricsHeaderValue(),
355
+ });
356
+ const stsResponse = await this.stsCredential.exchangeToken(stsCredentialsOptions, additionalHeaders, additionalOptions);
357
+ if (this.serviceAccountImpersonationUrl) {
358
+ this.cachedAccessToken = await this.getImpersonatedAccessToken(stsResponse.access_token);
359
+ }
360
+ else if (stsResponse.expires_in) {
361
+ // Save response in cached access token.
362
+ this.cachedAccessToken = {
363
+ access_token: stsResponse.access_token,
364
+ expiry_date: new Date().getTime() + stsResponse.expires_in * 1000,
365
+ res: stsResponse.res,
366
+ };
367
+ }
368
+ else {
369
+ // Save response in cached access token.
370
+ this.cachedAccessToken = {
371
+ access_token: stsResponse.access_token,
372
+ res: stsResponse.res,
373
+ };
374
+ }
375
+ // Save credentials.
376
+ this.credentials = {};
377
+ Object.assign(this.credentials, this.cachedAccessToken);
378
+ delete this.credentials.res;
379
+ // Trigger tokens event to notify external listeners.
380
+ this.emit('tokens', {
381
+ refresh_token: null,
382
+ expiry_date: this.cachedAccessToken.expiry_date,
383
+ access_token: this.cachedAccessToken.access_token,
384
+ token_type: 'Bearer',
385
+ id_token: null,
386
+ });
387
+ // Return the cached access token.
388
+ return this.cachedAccessToken;
389
+ }
390
+ /**
391
+ * Returns the workload identity pool project number if it is determinable
392
+ * from the audience resource name.
393
+ * @param audience The STS audience used to determine the project number.
394
+ * @return The project number associated with the workload identity pool, if
395
+ * this can be determined from the STS audience field. Otherwise, null is
396
+ * returned.
397
+ */
398
+ getProjectNumber(audience) {
399
+ // STS audience pattern:
400
+ // //iam.googleapis.com/projects/$PROJECT_NUMBER/locations/...
401
+ const match = audience.match(/\/projects\/([^/]+)/);
402
+ if (!match) {
403
+ return null;
404
+ }
405
+ return match[1];
406
+ }
407
+ /**
408
+ * Exchanges an external account GCP access token for a service
409
+ * account impersonated access token using iamcredentials
410
+ * GenerateAccessToken API.
411
+ * @param token The access token to exchange for a service account access
412
+ * token.
413
+ * @return A promise that resolves with the service account impersonated
414
+ * credentials response.
415
+ */
416
+ async getImpersonatedAccessToken(token) {
417
+ const opts = {
418
+ ...BaseExternalAccountClient.RETRY_CONFIG,
419
+ url: this.serviceAccountImpersonationUrl,
420
+ method: 'POST',
421
+ headers: {
422
+ 'content-type': 'application/json',
423
+ authorization: `Bearer ${token}`,
424
+ },
425
+ data: {
426
+ scope: this.getScopesArray(),
427
+ lifetime: this.serviceAccountImpersonationLifetime + 's',
428
+ },
429
+ responseType: 'json',
430
+ };
431
+ authclient_1.AuthClient.setMethodName(opts, 'getImpersonatedAccessToken');
432
+ const response = await this.transporter.request(opts);
433
+ const successResponse = response.data;
434
+ return {
435
+ access_token: successResponse.accessToken,
436
+ // Convert from ISO format to timestamp.
437
+ expiry_date: new Date(successResponse.expireTime).getTime(),
438
+ res: response,
439
+ };
440
+ }
441
+ /**
442
+ * Returns whether the provided credentials are expired or not.
443
+ * If there is no expiry time, assumes the token is not expired or expiring.
444
+ * @param accessToken The credentials to check for expiration.
445
+ * @return Whether the credentials are expired or not.
446
+ */
447
+ isExpired(accessToken) {
448
+ const now = new Date().getTime();
449
+ return accessToken.expiry_date
450
+ ? now >= accessToken.expiry_date - this.eagerRefreshThresholdMillis
451
+ : false;
452
+ }
453
+ /**
454
+ * @return The list of scopes for the requested GCP access token.
455
+ */
456
+ getScopesArray() {
457
+ // Since scopes can be provided as string or array, the type should
458
+ // be normalized.
459
+ if (typeof this.scopes === 'string') {
460
+ return [this.scopes];
461
+ }
462
+ return this.scopes || [DEFAULT_OAUTH_SCOPE];
463
+ }
464
+ getMetricsHeaderValue() {
465
+ const nodeVersion = process.version.replace(/^v/, '');
466
+ const saImpersonation = this.serviceAccountImpersonationUrl !== undefined;
467
+ const credentialSourceType = this.credentialSourceType
468
+ ? this.credentialSourceType
469
+ : 'unknown';
470
+ return `gl-node/${nodeVersion} auth/${shared_cjs_1.pkg.version} google-byoid-sdk source/${credentialSourceType} sa-impersonation/${saImpersonation} config-lifetime/${this.configLifetimeRequested}`;
471
+ }
472
+ getTokenUrl() {
473
+ return this.tokenUrl;
474
+ }
475
+ }
476
+ exports.BaseExternalAccountClient = BaseExternalAccountClient;
477
+ //# sourceMappingURL=baseexternalclient.js.map
@@ -0,0 +1,60 @@
1
+ import { SubjectTokenSupplier } from './identitypoolclient';
2
+ import * as https from 'https';
3
+ export declare const CERTIFICATE_CONFIGURATION_ENV_VARIABLE = "GOOGLE_API_CERTIFICATE_CONFIG";
4
+ /**
5
+ * Thrown when the certificate source cannot be located or accessed.
6
+ */
7
+ export declare class CertificateSourceUnavailableError extends Error {
8
+ constructor(message: string);
9
+ }
10
+ /**
11
+ * Thrown for invalid configuration that is not related to file availability.
12
+ */
13
+ export declare class InvalidConfigurationError extends Error {
14
+ constructor(message: string);
15
+ }
16
+ /**
17
+ * Defines options for creating a {@link CertificateSubjectTokenSupplier}.
18
+ */
19
+ export interface CertificateSubjectTokenSupplierOptions {
20
+ /**
21
+ * If true, uses the default well-known location for the certificate config.
22
+ * Either this or `certificateConfigLocation` must be provided.
23
+ */
24
+ useDefaultCertificateConfig?: boolean;
25
+ /**
26
+ * The file path to the certificate configuration JSON file.
27
+ * Required if `useDefaultCertificateConfig` is not true.
28
+ */
29
+ certificateConfigLocation?: string;
30
+ /**
31
+ * The file path to the trust chain (PEM format).
32
+ */
33
+ trustChainPath?: string;
34
+ }
35
+ /**
36
+ * A subject token supplier that uses a client certificate for authentication.
37
+ * It provides the certificate chain as the subject token for identity federation.
38
+ */
39
+ export declare class CertificateSubjectTokenSupplier implements SubjectTokenSupplier {
40
+ #private;
41
+ private certificateConfigPath;
42
+ private readonly trustChainPath?;
43
+ private cert?;
44
+ private key?;
45
+ /**
46
+ * Initializes a new instance of the CertificateSubjectTokenSupplier.
47
+ * @param opts The configuration options for the supplier.
48
+ */
49
+ constructor(opts: CertificateSubjectTokenSupplierOptions);
50
+ /**
51
+ * Creates an HTTPS agent configured with the client certificate and private key for mTLS.
52
+ * @returns An mTLS-configured https.Agent.
53
+ */
54
+ createMtlsHttpsAgent(): Promise<https.Agent>;
55
+ /**
56
+ * Constructs the subject token, which is the base64-encoded certificate chain.
57
+ * @returns A promise that resolves with the subject token.
58
+ */
59
+ getSubjectToken(): Promise<string>;
60
+ }