@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.
- package/node_modules/agent-base/LICENSE +22 -0
- package/node_modules/agent-base/README.md +69 -0
- package/node_modules/agent-base/dist/helpers.d.ts +15 -0
- package/node_modules/agent-base/dist/helpers.d.ts.map +1 -0
- package/node_modules/agent-base/dist/helpers.js +66 -0
- package/node_modules/agent-base/dist/helpers.js.map +1 -0
- package/node_modules/agent-base/dist/index.d.ts +41 -0
- package/node_modules/agent-base/dist/index.d.ts.map +1 -0
- package/node_modules/agent-base/dist/index.js +178 -0
- package/node_modules/agent-base/dist/index.js.map +1 -0
- package/node_modules/agent-base/package.json +46 -0
- package/node_modules/base64-js/LICENSE +21 -0
- package/node_modules/base64-js/README.md +34 -0
- package/node_modules/base64-js/base64js.min.js +1 -0
- package/node_modules/base64-js/index.d.ts +3 -0
- package/node_modules/base64-js/index.js +150 -0
- package/node_modules/base64-js/package.json +47 -0
- package/node_modules/bignumber.js/CHANGELOG.md +381 -0
- package/node_modules/bignumber.js/LICENCE.md +26 -0
- package/node_modules/bignumber.js/README.md +289 -0
- package/node_modules/bignumber.js/bignumber.d.mts +6 -0
- package/node_modules/bignumber.js/bignumber.d.ts +5 -0
- package/node_modules/bignumber.js/bignumber.js +2922 -0
- package/node_modules/bignumber.js/bignumber.mjs +2907 -0
- package/node_modules/bignumber.js/doc/API.html +2249 -0
- package/node_modules/bignumber.js/package.json +60 -0
- package/node_modules/bignumber.js/types.d.ts +1821 -0
- package/node_modules/buffer-equal-constant-time/.npmignore +2 -0
- package/node_modules/buffer-equal-constant-time/.travis.yml +4 -0
- package/node_modules/buffer-equal-constant-time/LICENSE.txt +12 -0
- package/node_modules/buffer-equal-constant-time/README.md +50 -0
- package/node_modules/buffer-equal-constant-time/index.js +41 -0
- package/node_modules/buffer-equal-constant-time/package.json +21 -0
- package/node_modules/buffer-equal-constant-time/test.js +42 -0
- package/node_modules/data-uri-to-buffer/README.md +88 -0
- package/node_modules/data-uri-to-buffer/dist/index.d.ts +15 -0
- package/node_modules/data-uri-to-buffer/dist/index.js +53 -0
- package/node_modules/data-uri-to-buffer/dist/index.js.map +1 -0
- package/node_modules/data-uri-to-buffer/package.json +62 -0
- package/node_modules/data-uri-to-buffer/src/index.ts +68 -0
- package/node_modules/debug/LICENSE +20 -0
- package/node_modules/debug/README.md +481 -0
- package/node_modules/debug/package.json +64 -0
- package/node_modules/debug/src/browser.js +272 -0
- package/node_modules/debug/src/common.js +292 -0
- package/node_modules/debug/src/index.js +10 -0
- package/node_modules/debug/src/node.js +263 -0
- package/node_modules/ecdsa-sig-formatter/CODEOWNERS +1 -0
- package/node_modules/ecdsa-sig-formatter/LICENSE +201 -0
- package/node_modules/ecdsa-sig-formatter/README.md +65 -0
- package/node_modules/ecdsa-sig-formatter/package.json +46 -0
- package/node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.d.ts +17 -0
- package/node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.js +187 -0
- package/node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js +23 -0
- package/node_modules/extend/.editorconfig +20 -0
- package/node_modules/extend/.eslintrc +17 -0
- package/node_modules/extend/.jscs.json +175 -0
- package/node_modules/extend/.travis.yml +230 -0
- package/node_modules/extend/CHANGELOG.md +83 -0
- package/node_modules/extend/LICENSE +23 -0
- package/node_modules/extend/README.md +81 -0
- package/node_modules/extend/component.json +32 -0
- package/node_modules/extend/index.js +117 -0
- package/node_modules/extend/package.json +42 -0
- package/node_modules/fetch-blob/LICENSE +21 -0
- package/node_modules/fetch-blob/README.md +106 -0
- package/node_modules/fetch-blob/file.d.ts +2 -0
- package/node_modules/fetch-blob/file.js +49 -0
- package/node_modules/fetch-blob/from.d.ts +26 -0
- package/node_modules/fetch-blob/from.js +100 -0
- package/node_modules/fetch-blob/index.d.ts +3 -0
- package/node_modules/fetch-blob/index.js +250 -0
- package/node_modules/fetch-blob/package.json +56 -0
- package/node_modules/fetch-blob/streams.cjs +51 -0
- package/node_modules/formdata-polyfill/FormData.js +441 -0
- package/node_modules/formdata-polyfill/LICENSE +21 -0
- package/node_modules/formdata-polyfill/README.md +145 -0
- package/node_modules/formdata-polyfill/esm.min.d.ts +5 -0
- package/node_modules/formdata-polyfill/esm.min.js +40 -0
- package/node_modules/formdata-polyfill/formdata-to-blob.js +39 -0
- package/node_modules/formdata-polyfill/formdata.min.js +21 -0
- package/node_modules/formdata-polyfill/package.json +50 -0
- package/node_modules/gaxios/LICENSE +202 -0
- package/node_modules/gaxios/README.md +240 -0
- package/node_modules/gaxios/build/cjs/browser-test/browser-test-runner.d.ts +1 -0
- package/node_modules/gaxios/build/cjs/browser-test/browser-test-runner.js +109 -0
- package/node_modules/gaxios/build/cjs/browser-test/browser-test-runner.js.map +1 -0
- package/node_modules/gaxios/build/cjs/browser-test/test.browser.d.ts +1 -0
- package/node_modules/gaxios/build/cjs/browser-test/test.browser.js +81 -0
- package/node_modules/gaxios/build/cjs/browser-test/test.browser.js.map +1 -0
- package/node_modules/gaxios/build/cjs/src/common.d.ts +329 -0
- package/node_modules/gaxios/build/cjs/src/common.js +311 -0
- package/node_modules/gaxios/build/cjs/src/common.js.map +1 -0
- package/node_modules/gaxios/build/cjs/src/gaxios.d.ts +104 -0
- package/node_modules/gaxios/build/cjs/src/gaxios.js +564 -0
- package/node_modules/gaxios/build/cjs/src/gaxios.js.map +1 -0
- package/node_modules/gaxios/build/cjs/src/index.d.ts +15 -0
- package/node_modules/gaxios/build/cjs/src/index.js +48 -0
- package/node_modules/gaxios/build/cjs/src/index.js.map +1 -0
- package/node_modules/gaxios/build/cjs/src/interceptor.d.ts +25 -0
- package/node_modules/gaxios/build/cjs/src/interceptor.js +22 -0
- package/node_modules/gaxios/build/cjs/src/interceptor.js.map +1 -0
- package/node_modules/gaxios/build/cjs/src/retry.d.ts +8 -0
- package/node_modules/gaxios/build/cjs/src/retry.js +165 -0
- package/node_modules/gaxios/build/cjs/src/retry.js.map +1 -0
- package/node_modules/gaxios/build/cjs/src/util.cjs +16 -0
- package/node_modules/gaxios/build/cjs/src/util.cjs.map +1 -0
- package/node_modules/gaxios/build/cjs/src/util.d.cts +7 -0
- package/node_modules/gaxios/build/cjs/system-test/test.install.d.ts +1 -0
- package/node_modules/gaxios/build/cjs/system-test/test.install.js +128 -0
- package/node_modules/gaxios/build/cjs/system-test/test.install.js.map +1 -0
- package/node_modules/gaxios/build/cjs/test/test.getch.d.ts +1 -0
- package/node_modules/gaxios/build/cjs/test/test.getch.js +1444 -0
- package/node_modules/gaxios/build/cjs/test/test.getch.js.map +1 -0
- package/node_modules/gaxios/build/cjs/test/test.index.d.ts +1 -0
- package/node_modules/gaxios/build/cjs/test/test.index.js +61 -0
- package/node_modules/gaxios/build/cjs/test/test.index.js.map +1 -0
- package/node_modules/gaxios/build/cjs/test/test.retry.d.ts +1 -0
- package/node_modules/gaxios/build/cjs/test/test.retry.js +367 -0
- package/node_modules/gaxios/build/cjs/test/test.retry.js.map +1 -0
- package/node_modules/gaxios/build/cjs/tsconfig.cjs.tsbuildinfo +1 -0
- package/node_modules/gaxios/build/esm/browser-test/browser-test-runner.d.ts +1 -0
- package/node_modules/gaxios/build/esm/browser-test/browser-test-runner.js +71 -0
- package/node_modules/gaxios/build/esm/browser-test/browser-test-runner.js.map +1 -0
- package/node_modules/gaxios/build/esm/browser-test/test.browser.d.ts +1 -0
- package/node_modules/gaxios/build/esm/browser-test/test.browser.js +76 -0
- package/node_modules/gaxios/build/esm/browser-test/test.browser.js.map +1 -0
- package/node_modules/gaxios/build/esm/package.json +1 -0
- package/node_modules/gaxios/build/esm/src/common.d.ts +329 -0
- package/node_modules/gaxios/build/esm/src/common.js +303 -0
- package/node_modules/gaxios/build/esm/src/common.js.map +1 -0
- package/node_modules/gaxios/build/esm/src/gaxios.d.ts +104 -0
- package/node_modules/gaxios/build/esm/src/gaxios.js +557 -0
- package/node_modules/gaxios/build/esm/src/gaxios.js.map +1 -0
- package/node_modules/gaxios/build/esm/src/index.d.ts +15 -0
- package/node_modules/gaxios/build/esm/src/index.js +29 -0
- package/node_modules/gaxios/build/esm/src/index.js.map +1 -0
- package/node_modules/gaxios/build/esm/src/interceptor.d.ts +25 -0
- package/node_modules/gaxios/build/esm/src/interceptor.js +18 -0
- package/node_modules/gaxios/build/esm/src/interceptor.js.map +1 -0
- package/node_modules/gaxios/build/esm/src/retry.d.ts +8 -0
- package/node_modules/gaxios/build/esm/src/retry.js +162 -0
- package/node_modules/gaxios/build/esm/src/retry.js.map +1 -0
- package/node_modules/gaxios/build/esm/src/util.cjs +15 -0
- package/node_modules/gaxios/build/esm/src/util.cjs.map +1 -0
- package/node_modules/gaxios/build/esm/src/util.d.cts +7 -0
- package/node_modules/gaxios/build/esm/system-test/test.install.d.ts +1 -0
- package/node_modules/gaxios/build/esm/system-test/test.install.js +123 -0
- package/node_modules/gaxios/build/esm/system-test/test.install.js.map +1 -0
- package/node_modules/gaxios/build/esm/test/test.getch.d.ts +1 -0
- package/node_modules/gaxios/build/esm/test/test.getch.js +1406 -0
- package/node_modules/gaxios/build/esm/test/test.getch.js.map +1 -0
- package/node_modules/gaxios/build/esm/test/test.index.d.ts +1 -0
- package/node_modules/gaxios/build/esm/test/test.index.js +23 -0
- package/node_modules/gaxios/build/esm/test/test.index.js.map +1 -0
- package/node_modules/gaxios/build/esm/test/test.retry.d.ts +1 -0
- package/node_modules/gaxios/build/esm/test/test.retry.js +362 -0
- package/node_modules/gaxios/build/esm/test/test.retry.js.map +1 -0
- package/node_modules/gaxios/build/esm/tsconfig.tsbuildinfo +1 -0
- package/node_modules/gaxios/package.json +107 -0
- package/node_modules/gcp-metadata/LICENSE +202 -0
- package/node_modules/gcp-metadata/README.md +235 -0
- package/node_modules/gcp-metadata/build/src/gcp-residency.d.ts +57 -0
- package/node_modules/gcp-metadata/build/src/gcp-residency.js +114 -0
- package/node_modules/gcp-metadata/build/src/gcp-residency.js.map +1 -0
- package/node_modules/gcp-metadata/build/src/index.d.ts +141 -0
- package/node_modules/gcp-metadata/build/src/index.js +402 -0
- package/node_modules/gcp-metadata/build/src/index.js.map +1 -0
- package/node_modules/gcp-metadata/package.json +77 -0
- package/node_modules/google-auth-library/LICENSE +202 -0
- package/node_modules/google-auth-library/README.md +1504 -0
- package/node_modules/google-auth-library/build/src/auth/authclient.d.ts +298 -0
- package/node_modules/google-auth-library/build/src/auth/authclient.js +286 -0
- package/node_modules/google-auth-library/build/src/auth/awsclient.d.ts +115 -0
- package/node_modules/google-auth-library/build/src/auth/awsclient.js +154 -0
- package/node_modules/google-auth-library/build/src/auth/awsrequestsigner.d.ts +40 -0
- package/node_modules/google-auth-library/build/src/auth/awsrequestsigner.js +213 -0
- package/node_modules/google-auth-library/build/src/auth/baseexternalclient.d.ts +318 -0
- package/node_modules/google-auth-library/build/src/auth/baseexternalclient.js +477 -0
- package/node_modules/google-auth-library/build/src/auth/certificatesubjecttokensupplier.d.ts +60 -0
- package/node_modules/google-auth-library/build/src/auth/certificatesubjecttokensupplier.js +223 -0
- package/node_modules/google-auth-library/build/src/auth/computeclient.d.ts +37 -0
- package/node_modules/google-auth-library/build/src/auth/computeclient.js +118 -0
- package/node_modules/google-auth-library/build/src/auth/credentials.d.ts +76 -0
- package/node_modules/google-auth-library/build/src/auth/credentials.js +16 -0
- package/node_modules/google-auth-library/build/src/auth/defaultawssecuritycredentialssupplier.d.ts +79 -0
- package/node_modules/google-auth-library/build/src/auth/defaultawssecuritycredentialssupplier.js +199 -0
- package/node_modules/google-auth-library/build/src/auth/downscopedclient.d.ts +149 -0
- package/node_modules/google-auth-library/build/src/auth/downscopedclient.js +273 -0
- package/node_modules/google-auth-library/build/src/auth/envDetect.d.ts +11 -0
- package/node_modules/google-auth-library/build/src/auth/envDetect.js +97 -0
- package/node_modules/google-auth-library/build/src/auth/executable-response.d.ts +137 -0
- package/node_modules/google-auth-library/build/src/auth/executable-response.js +178 -0
- package/node_modules/google-auth-library/build/src/auth/externalAccountAuthorizedUserClient.d.ts +72 -0
- package/node_modules/google-auth-library/build/src/auth/externalAccountAuthorizedUserClient.js +233 -0
- package/node_modules/google-auth-library/build/src/auth/externalclient.d.ts +29 -0
- package/node_modules/google-auth-library/build/src/auth/externalclient.js +68 -0
- package/node_modules/google-auth-library/build/src/auth/filesubjecttokensupplier.d.ts +41 -0
- package/node_modules/google-auth-library/build/src/auth/filesubjecttokensupplier.js +84 -0
- package/node_modules/google-auth-library/build/src/auth/googleauth.d.ts +527 -0
- package/node_modules/google-auth-library/build/src/auth/googleauth.js +899 -0
- package/node_modules/google-auth-library/build/src/auth/iam.d.ts +23 -0
- package/node_modules/google-auth-library/build/src/auth/iam.js +44 -0
- package/node_modules/google-auth-library/build/src/auth/identitypoolclient.d.ts +132 -0
- package/node_modules/google-auth-library/build/src/auth/identitypoolclient.js +131 -0
- package/node_modules/google-auth-library/build/src/auth/idtokenclient.d.ts +27 -0
- package/node_modules/google-auth-library/build/src/auth/idtokenclient.js +56 -0
- package/node_modules/google-auth-library/build/src/auth/impersonated.d.ts +134 -0
- package/node_modules/google-auth-library/build/src/auth/impersonated.js +197 -0
- package/node_modules/google-auth-library/build/src/auth/jwtaccess.d.ts +61 -0
- package/node_modules/google-auth-library/build/src/auth/jwtaccess.js +201 -0
- package/node_modules/google-auth-library/build/src/auth/jwtclient.d.ts +137 -0
- package/node_modules/google-auth-library/build/src/auth/jwtclient.js +301 -0
- package/node_modules/google-auth-library/build/src/auth/loginticket.d.ts +140 -0
- package/node_modules/google-auth-library/build/src/auth/loginticket.js +60 -0
- package/node_modules/google-auth-library/build/src/auth/oauth2client.d.ts +610 -0
- package/node_modules/google-auth-library/build/src/auth/oauth2client.js +820 -0
- package/node_modules/google-auth-library/build/src/auth/oauth2common.d.ts +103 -0
- package/node_modules/google-auth-library/build/src/auth/oauth2common.js +189 -0
- package/node_modules/google-auth-library/build/src/auth/passthrough.d.ts +37 -0
- package/node_modules/google-auth-library/build/src/auth/passthrough.js +60 -0
- package/node_modules/google-auth-library/build/src/auth/pluggable-auth-client.d.ts +141 -0
- package/node_modules/google-auth-library/build/src/auth/pluggable-auth-client.js +220 -0
- package/node_modules/google-auth-library/build/src/auth/pluggable-auth-handler.d.ts +61 -0
- package/node_modules/google-auth-library/build/src/auth/pluggable-auth-handler.js +174 -0
- package/node_modules/google-auth-library/build/src/auth/refreshclient.d.ts +75 -0
- package/node_modules/google-auth-library/build/src/auth/refreshclient.js +160 -0
- package/node_modules/google-auth-library/build/src/auth/stscredentials.d.ts +125 -0
- package/node_modules/google-auth-library/build/src/auth/stscredentials.js +107 -0
- package/node_modules/google-auth-library/build/src/auth/urlsubjecttokensupplier.d.ts +57 -0
- package/node_modules/google-auth-library/build/src/auth/urlsubjecttokensupplier.js +71 -0
- package/node_modules/google-auth-library/build/src/crypto/browser/crypto.d.ts +27 -0
- package/node_modules/google-auth-library/build/src/crypto/browser/crypto.js +127 -0
- package/node_modules/google-auth-library/build/src/crypto/crypto.d.ts +8 -0
- package/node_modules/google-auth-library/build/src/crypto/crypto.js +54 -0
- package/node_modules/google-auth-library/build/src/crypto/node/crypto.d.ts +25 -0
- package/node_modules/google-auth-library/build/src/crypto/node/crypto.js +88 -0
- package/node_modules/google-auth-library/build/src/crypto/shared.d.ts +47 -0
- package/node_modules/google-auth-library/build/src/crypto/shared.js +32 -0
- package/node_modules/google-auth-library/build/src/gtoken/errorWithCode.d.ts +5 -0
- package/node_modules/google-auth-library/build/src/gtoken/errorWithCode.js +25 -0
- package/node_modules/google-auth-library/build/src/gtoken/getCredentials.d.ts +14 -0
- package/node_modules/google-auth-library/build/src/gtoken/getCredentials.js +132 -0
- package/node_modules/google-auth-library/build/src/gtoken/getToken.d.ts +23 -0
- package/node_modules/google-auth-library/build/src/gtoken/getToken.js +66 -0
- package/node_modules/google-auth-library/build/src/gtoken/googleToken.d.ts +73 -0
- package/node_modules/google-auth-library/build/src/gtoken/googleToken.js +125 -0
- package/node_modules/google-auth-library/build/src/gtoken/jwsSign.d.ts +33 -0
- package/node_modules/google-auth-library/build/src/gtoken/jwsSign.js +54 -0
- package/node_modules/google-auth-library/build/src/gtoken/revokeToken.d.ts +9 -0
- package/node_modules/google-auth-library/build/src/gtoken/revokeToken.js +34 -0
- package/node_modules/google-auth-library/build/src/gtoken/tokenHandler.d.ts +43 -0
- package/node_modules/google-auth-library/build/src/gtoken/tokenHandler.js +97 -0
- package/node_modules/google-auth-library/build/src/gtoken/tokenOptions.d.ts +44 -0
- package/node_modules/google-auth-library/build/src/gtoken/tokenOptions.js +16 -0
- package/node_modules/google-auth-library/build/src/index.d.ts +38 -0
- package/node_modules/google-auth-library/build/src/index.js +85 -0
- package/node_modules/google-auth-library/build/src/shared.cjs +22 -0
- package/node_modules/google-auth-library/build/src/shared.d.cts +7 -0
- package/node_modules/google-auth-library/build/src/util.d.ts +151 -0
- package/node_modules/google-auth-library/build/src/util.js +176 -0
- package/node_modules/google-auth-library/package.json +92 -0
- package/node_modules/google-logging-utils/LICENSE +202 -0
- package/node_modules/google-logging-utils/README.md +73 -0
- package/node_modules/google-logging-utils/build/src/colours.d.ts +29 -0
- package/node_modules/google-logging-utils/build/src/colours.js +81 -0
- package/node_modules/google-logging-utils/build/src/colours.js.map +1 -0
- package/node_modules/google-logging-utils/build/src/index.d.ts +1 -0
- package/node_modules/google-logging-utils/build/src/index.js +31 -0
- package/node_modules/google-logging-utils/build/src/index.js.map +1 -0
- package/node_modules/google-logging-utils/build/src/logging-utils.d.ts +222 -0
- package/node_modules/google-logging-utils/build/src/logging-utils.js +437 -0
- package/node_modules/google-logging-utils/build/src/logging-utils.js.map +1 -0
- package/node_modules/google-logging-utils/build/src/temporal.d.ts +45 -0
- package/node_modules/google-logging-utils/build/src/temporal.js +68 -0
- package/node_modules/google-logging-utils/build/src/temporal.js.map +1 -0
- package/node_modules/google-logging-utils/package.json +45 -0
- package/node_modules/https-proxy-agent/LICENSE +22 -0
- package/node_modules/https-proxy-agent/README.md +70 -0
- package/node_modules/https-proxy-agent/dist/index.d.ts +47 -0
- package/node_modules/https-proxy-agent/dist/index.d.ts.map +1 -0
- package/node_modules/https-proxy-agent/dist/index.js +180 -0
- package/node_modules/https-proxy-agent/dist/index.js.map +1 -0
- package/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +15 -0
- package/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts.map +1 -0
- package/node_modules/https-proxy-agent/dist/parse-proxy-response.js +101 -0
- package/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +1 -0
- package/node_modules/https-proxy-agent/package.json +50 -0
- package/node_modules/json-bigint/LICENSE +20 -0
- package/node_modules/json-bigint/README.md +240 -0
- package/node_modules/json-bigint/index.js +12 -0
- package/node_modules/json-bigint/lib/parse.js +443 -0
- package/node_modules/json-bigint/lib/stringify.js +384 -0
- package/node_modules/json-bigint/package.json +34 -0
- package/node_modules/jwa/LICENSE +17 -0
- package/node_modules/jwa/README.md +150 -0
- package/node_modules/jwa/index.js +266 -0
- package/node_modules/jwa/opslevel.yml +6 -0
- package/node_modules/jwa/package.json +37 -0
- package/node_modules/jws/CHANGELOG.md +56 -0
- package/node_modules/jws/LICENSE +17 -0
- package/node_modules/jws/index.js +22 -0
- package/node_modules/jws/lib/data-stream.js +55 -0
- package/node_modules/jws/lib/sign-stream.js +83 -0
- package/node_modules/jws/lib/tostring.js +10 -0
- package/node_modules/jws/lib/verify-stream.js +125 -0
- package/node_modules/jws/opslevel.yml +6 -0
- package/node_modules/jws/package.json +34 -0
- package/node_modules/jws/readme.md +255 -0
- package/node_modules/ms/index.js +162 -0
- package/node_modules/ms/license.md +21 -0
- package/node_modules/ms/package.json +38 -0
- package/node_modules/ms/readme.md +59 -0
- package/node_modules/node-domexception/LICENSE +21 -0
- package/node_modules/node-domexception/index.js +2 -0
- package/node_modules/node-domexception/package.json +19 -0
- package/node_modules/node-fetch/@types/index.d.ts +219 -0
- package/node_modules/node-fetch/LICENSE.md +22 -0
- package/node_modules/node-fetch/README.md +872 -0
- package/node_modules/node-fetch/package.json +131 -0
- package/node_modules/node-fetch/src/body.js +397 -0
- package/node_modules/node-fetch/src/errors/abort-error.js +10 -0
- package/node_modules/node-fetch/src/errors/base.js +17 -0
- package/node_modules/node-fetch/src/errors/fetch-error.js +26 -0
- package/node_modules/node-fetch/src/headers.js +267 -0
- package/node_modules/node-fetch/src/index.js +417 -0
- package/node_modules/node-fetch/src/request.js +313 -0
- package/node_modules/node-fetch/src/response.js +160 -0
- package/node_modules/node-fetch/src/utils/get-search.js +9 -0
- package/node_modules/node-fetch/src/utils/is-redirect.js +11 -0
- package/node_modules/node-fetch/src/utils/is.js +87 -0
- package/node_modules/node-fetch/src/utils/multipart-parser.js +432 -0
- package/node_modules/node-fetch/src/utils/referrer.js +340 -0
- package/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/safe-buffer/index.js +65 -0
- package/node_modules/safe-buffer/package.json +51 -0
- package/node_modules/web-streams-polyfill/LICENSE +22 -0
- package/node_modules/web-streams-polyfill/README.md +110 -0
- package/node_modules/web-streams-polyfill/dist/polyfill.es2018.js +4765 -0
- package/node_modules/web-streams-polyfill/dist/polyfill.es2018.js.map +1 -0
- package/node_modules/web-streams-polyfill/dist/polyfill.es2018.min.js +9 -0
- package/node_modules/web-streams-polyfill/dist/polyfill.es2018.min.js.map +1 -0
- package/node_modules/web-streams-polyfill/dist/polyfill.es2018.mjs +4745 -0
- package/node_modules/web-streams-polyfill/dist/polyfill.es2018.mjs.map +1 -0
- package/node_modules/web-streams-polyfill/dist/polyfill.es6.js +4838 -0
- package/node_modules/web-streams-polyfill/dist/polyfill.es6.js.map +1 -0
- package/node_modules/web-streams-polyfill/dist/polyfill.es6.min.js +9 -0
- package/node_modules/web-streams-polyfill/dist/polyfill.es6.min.js.map +1 -0
- package/node_modules/web-streams-polyfill/dist/polyfill.es6.mjs +4818 -0
- package/node_modules/web-streams-polyfill/dist/polyfill.es6.mjs.map +1 -0
- package/node_modules/web-streams-polyfill/dist/polyfill.js +5011 -0
- package/node_modules/web-streams-polyfill/dist/polyfill.js.map +1 -0
- package/node_modules/web-streams-polyfill/dist/polyfill.min.js +9 -0
- package/node_modules/web-streams-polyfill/dist/polyfill.min.js.map +1 -0
- package/node_modules/web-streams-polyfill/dist/polyfill.mjs +4991 -0
- package/node_modules/web-streams-polyfill/dist/polyfill.mjs.map +1 -0
- package/node_modules/web-streams-polyfill/dist/ponyfill.es2018.js +4737 -0
- package/node_modules/web-streams-polyfill/dist/ponyfill.es2018.js.map +1 -0
- package/node_modules/web-streams-polyfill/dist/ponyfill.es2018.mjs +4717 -0
- package/node_modules/web-streams-polyfill/dist/ponyfill.es2018.mjs.map +1 -0
- package/node_modules/web-streams-polyfill/dist/ponyfill.es6.js +4810 -0
- package/node_modules/web-streams-polyfill/dist/ponyfill.es6.js.map +1 -0
- package/node_modules/web-streams-polyfill/dist/ponyfill.es6.mjs +4790 -0
- package/node_modules/web-streams-polyfill/dist/ponyfill.es6.mjs.map +1 -0
- package/node_modules/web-streams-polyfill/dist/ponyfill.js +4983 -0
- package/node_modules/web-streams-polyfill/dist/ponyfill.js.map +1 -0
- package/node_modules/web-streams-polyfill/dist/ponyfill.mjs +4963 -0
- package/node_modules/web-streams-polyfill/dist/ponyfill.mjs.map +1 -0
- package/node_modules/web-streams-polyfill/dist/types/polyfill.d.ts +24 -0
- package/node_modules/web-streams-polyfill/dist/types/ponyfill.d.ts +780 -0
- package/node_modules/web-streams-polyfill/dist/types/ts3.6/polyfill.d.ts +28 -0
- package/node_modules/web-streams-polyfill/dist/types/ts3.6/ponyfill.d.ts +821 -0
- package/node_modules/web-streams-polyfill/dist/types/tsdoc-metadata.json +11 -0
- package/node_modules/web-streams-polyfill/es2018/package.json +14 -0
- package/node_modules/web-streams-polyfill/es6/package.json +14 -0
- package/node_modules/web-streams-polyfill/package.json +83 -0
- package/node_modules/web-streams-polyfill/ponyfill/es2018/package.json +13 -0
- package/node_modules/web-streams-polyfill/ponyfill/es6/package.json +13 -0
- package/node_modules/web-streams-polyfill/ponyfill/package.json +13 -0
- package/node_modules/zod/LICENSE +21 -0
- package/node_modules/zod/README.md +191 -0
- package/node_modules/zod/index.cjs +33 -0
- package/node_modules/zod/index.d.cts +4 -0
- package/node_modules/zod/index.d.ts +4 -0
- package/node_modules/zod/index.js +4 -0
- package/node_modules/zod/locales/index.cjs +17 -0
- package/node_modules/zod/locales/index.d.cts +1 -0
- package/node_modules/zod/locales/index.d.ts +1 -0
- package/node_modules/zod/locales/index.js +1 -0
- package/node_modules/zod/locales/package.json +7 -0
- package/node_modules/zod/mini/index.cjs +32 -0
- package/node_modules/zod/mini/index.d.cts +3 -0
- package/node_modules/zod/mini/index.d.ts +3 -0
- package/node_modules/zod/mini/index.js +3 -0
- package/node_modules/zod/mini/package.json +7 -0
- package/node_modules/zod/package.json +135 -0
- package/node_modules/zod/src/index.ts +4 -0
- package/node_modules/zod/src/locales/index.ts +1 -0
- package/node_modules/zod/src/mini/index.ts +3 -0
- package/node_modules/zod/src/v3/ZodError.ts +330 -0
- package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/node_modules/zod/src/v3/errors.ts +13 -0
- package/node_modules/zod/src/v3/external.ts +6 -0
- package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/node_modules/zod/src/v3/index.ts +4 -0
- package/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
- package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/node_modules/zod/src/v3/tests/error.test.ts +551 -0
- package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/node_modules/zod/src/v3/tests/function.test.ts +261 -0
- package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
- package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
- package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object.test.ts +434 -0
- package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
- package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/node_modules/zod/src/v3/tests/string.test.ts +916 -0
- package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/node_modules/zod/src/v3/types.ts +5138 -0
- package/node_modules/zod/src/v4/classic/checks.ts +32 -0
- package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/node_modules/zod/src/v4/classic/compat.ts +70 -0
- package/node_modules/zod/src/v4/classic/errors.ts +82 -0
- package/node_modules/zod/src/v4/classic/external.ts +52 -0
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +659 -0
- package/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/node_modules/zod/src/v4/classic/iso.ts +90 -0
- package/node_modules/zod/src/v4/classic/parse.ts +82 -0
- package/node_modules/zod/src/v4/classic/schemas.ts +2672 -0
- package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/apply.test.ts +59 -0
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +216 -0
- package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +326 -0
- package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +573 -0
- package/node_modules/zod/src/v4/classic/tests/codec.test.ts +703 -0
- package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
- package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +62 -0
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +302 -0
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +409 -0
- package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
- package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +197 -0
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +694 -0
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +807 -0
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
- package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +895 -0
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +360 -0
- package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +39 -0
- package/node_modules/zod/src/v4/classic/tests/hash.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +939 -0
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +60 -0
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +198 -0
- package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +46 -0
- package/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +117 -0
- package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
- package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +330 -0
- package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
- package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +325 -0
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +717 -0
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +333 -0
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +450 -0
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +74 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +351 -0
- package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +717 -0
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +631 -0
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +633 -0
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +181 -0
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +134 -0
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +1224 -0
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +106 -0
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +771 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +3125 -0
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +378 -0
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +496 -0
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +273 -0
- package/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/node_modules/zod/src/v4/core/api.ts +1823 -0
- package/node_modules/zod/src/v4/core/checks.ts +1293 -0
- package/node_modules/zod/src/v4/core/config.ts +15 -0
- package/node_modules/zod/src/v4/core/core.ts +153 -0
- package/node_modules/zod/src/v4/core/doc.ts +44 -0
- package/node_modules/zod/src/v4/core/errors.ts +455 -0
- package/node_modules/zod/src/v4/core/index.ts +16 -0
- package/node_modules/zod/src/v4/core/json-schema-generator.ts +126 -0
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +666 -0
- package/node_modules/zod/src/v4/core/json-schema.ts +147 -0
- package/node_modules/zod/src/v4/core/parse.ts +195 -0
- package/node_modules/zod/src/v4/core/regexes.ts +190 -0
- package/node_modules/zod/src/v4/core/registries.ts +105 -0
- package/node_modules/zod/src/v4/core/schemas.ts +4730 -0
- package/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
- package/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
- package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +215 -0
- package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +181 -0
- package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
- package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
- package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
- package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
- package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
- package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
- package/node_modules/zod/src/v4/core/to-json-schema.ts +622 -0
- package/node_modules/zod/src/v4/core/util.ts +983 -0
- package/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/node_modules/zod/src/v4/index.ts +4 -0
- package/node_modules/zod/src/v4/locales/ar.ts +115 -0
- package/node_modules/zod/src/v4/locales/az.ts +111 -0
- package/node_modules/zod/src/v4/locales/be.ts +176 -0
- package/node_modules/zod/src/v4/locales/bg.ts +128 -0
- package/node_modules/zod/src/v4/locales/ca.ts +116 -0
- package/node_modules/zod/src/v4/locales/cs.ts +118 -0
- package/node_modules/zod/src/v4/locales/da.ts +123 -0
- package/node_modules/zod/src/v4/locales/de.ts +116 -0
- package/node_modules/zod/src/v4/locales/el.ts +121 -0
- package/node_modules/zod/src/v4/locales/en.ts +123 -0
- package/node_modules/zod/src/v4/locales/eo.ts +118 -0
- package/node_modules/zod/src/v4/locales/es.ts +141 -0
- package/node_modules/zod/src/v4/locales/fa.ts +126 -0
- package/node_modules/zod/src/v4/locales/fi.ts +121 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +116 -0
- package/node_modules/zod/src/v4/locales/fr.ts +132 -0
- package/node_modules/zod/src/v4/locales/he.ts +246 -0
- package/node_modules/zod/src/v4/locales/hr.ts +131 -0
- package/node_modules/zod/src/v4/locales/hu.ts +117 -0
- package/node_modules/zod/src/v4/locales/hy.ts +164 -0
- package/node_modules/zod/src/v4/locales/id.ts +115 -0
- package/node_modules/zod/src/v4/locales/index.ts +52 -0
- package/node_modules/zod/src/v4/locales/is.ts +119 -0
- package/node_modules/zod/src/v4/locales/it.ts +116 -0
- package/node_modules/zod/src/v4/locales/ja.ts +114 -0
- package/node_modules/zod/src/v4/locales/ka.ts +123 -0
- package/node_modules/zod/src/v4/locales/kh.ts +7 -0
- package/node_modules/zod/src/v4/locales/km.ts +119 -0
- package/node_modules/zod/src/v4/locales/ko.ts +121 -0
- package/node_modules/zod/src/v4/locales/lt.ts +239 -0
- package/node_modules/zod/src/v4/locales/mk.ts +118 -0
- package/node_modules/zod/src/v4/locales/ms.ts +115 -0
- package/node_modules/zod/src/v4/locales/nl.ts +121 -0
- package/node_modules/zod/src/v4/locales/no.ts +116 -0
- package/node_modules/zod/src/v4/locales/ota.ts +117 -0
- package/node_modules/zod/src/v4/locales/pl.ts +118 -0
- package/node_modules/zod/src/v4/locales/ps.ts +126 -0
- package/node_modules/zod/src/v4/locales/pt.ts +116 -0
- package/node_modules/zod/src/v4/locales/ro.ts +129 -0
- package/node_modules/zod/src/v4/locales/ru.ts +176 -0
- package/node_modules/zod/src/v4/locales/sl.ts +118 -0
- package/node_modules/zod/src/v4/locales/sv.ts +119 -0
- package/node_modules/zod/src/v4/locales/ta.ts +118 -0
- package/node_modules/zod/src/v4/locales/th.ts +119 -0
- package/node_modules/zod/src/v4/locales/tr.ts +111 -0
- package/node_modules/zod/src/v4/locales/ua.ts +7 -0
- package/node_modules/zod/src/v4/locales/uk.ts +117 -0
- package/node_modules/zod/src/v4/locales/ur.ts +119 -0
- package/node_modules/zod/src/v4/locales/uz.ts +117 -0
- package/node_modules/zod/src/v4/locales/vi.ts +117 -0
- package/node_modules/zod/src/v4/locales/yo.ts +124 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +116 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +115 -0
- package/node_modules/zod/src/v4/mini/checks.ts +32 -0
- package/node_modules/zod/src/v4/mini/coerce.ts +27 -0
- package/node_modules/zod/src/v4/mini/external.ts +41 -0
- package/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/node_modules/zod/src/v4/mini/iso.ts +66 -0
- package/node_modules/zod/src/v4/mini/parse.ts +14 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +1947 -0
- package/node_modules/zod/src/v4/mini/tests/apply.test.ts +24 -0
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
- package/node_modules/zod/src/v4/mini/tests/codec.test.ts +548 -0
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +5 -0
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +993 -0
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +227 -0
- package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +325 -0
- package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +352 -0
- package/node_modules/zod/src/v4-mini/index.ts +3 -0
- package/node_modules/zod/v3/ZodError.cjs +138 -0
- package/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/node_modules/zod/v3/ZodError.js +133 -0
- package/node_modules/zod/v3/errors.cjs +17 -0
- package/node_modules/zod/v3/errors.d.cts +5 -0
- package/node_modules/zod/v3/errors.d.ts +5 -0
- package/node_modules/zod/v3/errors.js +9 -0
- package/node_modules/zod/v3/external.cjs +22 -0
- package/node_modules/zod/v3/external.d.cts +6 -0
- package/node_modules/zod/v3/external.d.ts +6 -0
- package/node_modules/zod/v3/external.js +6 -0
- package/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/node_modules/zod/v3/helpers/util.cjs +137 -0
- package/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/node_modules/zod/v3/helpers/util.js +133 -0
- package/node_modules/zod/v3/index.cjs +33 -0
- package/node_modules/zod/v3/index.d.cts +4 -0
- package/node_modules/zod/v3/index.d.ts +4 -0
- package/node_modules/zod/v3/index.js +4 -0
- package/node_modules/zod/v3/locales/en.cjs +112 -0
- package/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/node_modules/zod/v3/locales/en.js +109 -0
- package/node_modules/zod/v3/package.json +7 -0
- package/node_modules/zod/v3/standard-schema.cjs +2 -0
- package/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/node_modules/zod/v3/standard-schema.js +1 -0
- package/node_modules/zod/v3/types.cjs +3777 -0
- package/node_modules/zod/v3/types.d.cts +1034 -0
- package/node_modules/zod/v3/types.d.ts +1034 -0
- package/node_modules/zod/v3/types.js +3695 -0
- package/node_modules/zod/v4/classic/checks.cjs +33 -0
- package/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/node_modules/zod/v4/classic/checks.js +1 -0
- package/node_modules/zod/v4/classic/coerce.cjs +47 -0
- package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/node_modules/zod/v4/classic/coerce.js +17 -0
- package/node_modules/zod/v4/classic/compat.cjs +61 -0
- package/node_modules/zod/v4/classic/compat.d.cts +50 -0
- package/node_modules/zod/v4/classic/compat.d.ts +50 -0
- package/node_modules/zod/v4/classic/compat.js +31 -0
- package/node_modules/zod/v4/classic/errors.cjs +74 -0
- package/node_modules/zod/v4/classic/errors.d.cts +30 -0
- package/node_modules/zod/v4/classic/errors.d.ts +30 -0
- package/node_modules/zod/v4/classic/errors.js +48 -0
- package/node_modules/zod/v4/classic/external.cjs +73 -0
- package/node_modules/zod/v4/classic/external.d.cts +16 -0
- package/node_modules/zod/v4/classic/external.d.ts +16 -0
- package/node_modules/zod/v4/classic/external.js +20 -0
- package/node_modules/zod/v4/classic/from-json-schema.cjs +625 -0
- package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
- package/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
- package/node_modules/zod/v4/classic/from-json-schema.js +599 -0
- package/node_modules/zod/v4/classic/index.cjs +33 -0
- package/node_modules/zod/v4/classic/index.d.cts +4 -0
- package/node_modules/zod/v4/classic/index.d.ts +4 -0
- package/node_modules/zod/v4/classic/index.js +4 -0
- package/node_modules/zod/v4/classic/iso.cjs +60 -0
- package/node_modules/zod/v4/classic/iso.d.cts +22 -0
- package/node_modules/zod/v4/classic/iso.d.ts +22 -0
- package/node_modules/zod/v4/classic/iso.js +30 -0
- package/node_modules/zod/v4/classic/package.json +7 -0
- package/node_modules/zod/v4/classic/parse.cjs +41 -0
- package/node_modules/zod/v4/classic/parse.d.cts +31 -0
- package/node_modules/zod/v4/classic/parse.d.ts +31 -0
- package/node_modules/zod/v4/classic/parse.js +15 -0
- package/node_modules/zod/v4/classic/schemas.cjs +1511 -0
- package/node_modules/zod/v4/classic/schemas.d.cts +767 -0
- package/node_modules/zod/v4/classic/schemas.d.ts +767 -0
- package/node_modules/zod/v4/classic/schemas.js +1395 -0
- package/node_modules/zod/v4/core/api.cjs +1227 -0
- package/node_modules/zod/v4/core/api.d.cts +325 -0
- package/node_modules/zod/v4/core/api.d.ts +325 -0
- package/node_modules/zod/v4/core/api.js +1087 -0
- package/node_modules/zod/v4/core/checks.cjs +601 -0
- package/node_modules/zod/v4/core/checks.d.cts +278 -0
- package/node_modules/zod/v4/core/checks.d.ts +278 -0
- package/node_modules/zod/v4/core/checks.js +575 -0
- package/node_modules/zod/v4/core/core.cjs +85 -0
- package/node_modules/zod/v4/core/core.d.cts +70 -0
- package/node_modules/zod/v4/core/core.d.ts +70 -0
- package/node_modules/zod/v4/core/core.js +78 -0
- package/node_modules/zod/v4/core/doc.cjs +39 -0
- package/node_modules/zod/v4/core/doc.d.cts +14 -0
- package/node_modules/zod/v4/core/doc.d.ts +14 -0
- package/node_modules/zod/v4/core/doc.js +35 -0
- package/node_modules/zod/v4/core/errors.cjs +216 -0
- package/node_modules/zod/v4/core/errors.d.cts +221 -0
- package/node_modules/zod/v4/core/errors.d.ts +221 -0
- package/node_modules/zod/v4/core/errors.js +185 -0
- package/node_modules/zod/v4/core/index.cjs +47 -0
- package/node_modules/zod/v4/core/index.d.cts +16 -0
- package/node_modules/zod/v4/core/index.d.ts +16 -0
- package/node_modules/zod/v4/core/index.js +16 -0
- package/node_modules/zod/v4/core/json-schema-generator.cjs +99 -0
- package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
- package/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
- package/node_modules/zod/v4/core/json-schema-generator.js +95 -0
- package/node_modules/zod/v4/core/json-schema-processors.cjs +644 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.cts +49 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.ts +49 -0
- package/node_modules/zod/v4/core/json-schema-processors.js +601 -0
- package/node_modules/zod/v4/core/json-schema.cjs +2 -0
- package/node_modules/zod/v4/core/json-schema.d.cts +88 -0
- package/node_modules/zod/v4/core/json-schema.d.ts +88 -0
- package/node_modules/zod/v4/core/json-schema.js +1 -0
- package/node_modules/zod/v4/core/package.json +7 -0
- package/node_modules/zod/v4/core/parse.cjs +131 -0
- package/node_modules/zod/v4/core/parse.d.cts +49 -0
- package/node_modules/zod/v4/core/parse.d.ts +49 -0
- package/node_modules/zod/v4/core/parse.js +93 -0
- package/node_modules/zod/v4/core/regexes.cjs +172 -0
- package/node_modules/zod/v4/core/regexes.d.cts +85 -0
- package/node_modules/zod/v4/core/regexes.d.ts +85 -0
- package/node_modules/zod/v4/core/regexes.js +139 -0
- package/node_modules/zod/v4/core/registries.cjs +56 -0
- package/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/node_modules/zod/v4/core/registries.js +51 -0
- package/node_modules/zod/v4/core/schemas.cjs +2270 -0
- package/node_modules/zod/v4/core/schemas.d.cts +1184 -0
- package/node_modules/zod/v4/core/schemas.d.ts +1184 -0
- package/node_modules/zod/v4/core/schemas.js +2239 -0
- package/node_modules/zod/v4/core/standard-schema.cjs +2 -0
- package/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
- package/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
- package/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/node_modules/zod/v4/core/to-json-schema.cjs +457 -0
- package/node_modules/zod/v4/core/to-json-schema.d.cts +114 -0
- package/node_modules/zod/v4/core/to-json-schema.d.ts +114 -0
- package/node_modules/zod/v4/core/to-json-schema.js +448 -0
- package/node_modules/zod/v4/core/util.cjs +734 -0
- package/node_modules/zod/v4/core/util.d.cts +200 -0
- package/node_modules/zod/v4/core/util.d.ts +200 -0
- package/node_modules/zod/v4/core/util.js +674 -0
- package/node_modules/zod/v4/core/versions.cjs +8 -0
- package/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/node_modules/zod/v4/core/versions.js +5 -0
- package/node_modules/zod/v4/index.cjs +22 -0
- package/node_modules/zod/v4/index.d.cts +3 -0
- package/node_modules/zod/v4/index.d.ts +3 -0
- package/node_modules/zod/v4/index.js +3 -0
- package/node_modules/zod/v4/locales/ar.cjs +133 -0
- package/node_modules/zod/v4/locales/ar.d.cts +5 -0
- package/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/node_modules/zod/v4/locales/ar.js +106 -0
- package/node_modules/zod/v4/locales/az.cjs +132 -0
- package/node_modules/zod/v4/locales/az.d.cts +5 -0
- package/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/node_modules/zod/v4/locales/az.js +105 -0
- package/node_modules/zod/v4/locales/be.cjs +183 -0
- package/node_modules/zod/v4/locales/be.d.cts +5 -0
- package/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/node_modules/zod/v4/locales/be.js +156 -0
- package/node_modules/zod/v4/locales/bg.cjs +147 -0
- package/node_modules/zod/v4/locales/bg.d.cts +5 -0
- package/node_modules/zod/v4/locales/bg.d.ts +4 -0
- package/node_modules/zod/v4/locales/bg.js +120 -0
- package/node_modules/zod/v4/locales/ca.cjs +134 -0
- package/node_modules/zod/v4/locales/ca.d.cts +5 -0
- package/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/node_modules/zod/v4/locales/ca.js +107 -0
- package/node_modules/zod/v4/locales/cs.cjs +138 -0
- package/node_modules/zod/v4/locales/cs.d.cts +5 -0
- package/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/node_modules/zod/v4/locales/cs.js +111 -0
- package/node_modules/zod/v4/locales/da.cjs +142 -0
- package/node_modules/zod/v4/locales/da.d.cts +5 -0
- package/node_modules/zod/v4/locales/da.d.ts +4 -0
- package/node_modules/zod/v4/locales/da.js +115 -0
- package/node_modules/zod/v4/locales/de.cjs +135 -0
- package/node_modules/zod/v4/locales/de.d.cts +5 -0
- package/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/node_modules/zod/v4/locales/de.js +108 -0
- package/node_modules/zod/v4/locales/el.cjs +136 -0
- package/node_modules/zod/v4/locales/el.d.cts +5 -0
- package/node_modules/zod/v4/locales/el.d.ts +4 -0
- package/node_modules/zod/v4/locales/el.js +109 -0
- package/node_modules/zod/v4/locales/en.cjs +140 -0
- package/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/node_modules/zod/v4/locales/en.d.ts +4 -0
- package/node_modules/zod/v4/locales/en.js +113 -0
- package/node_modules/zod/v4/locales/eo.cjs +136 -0
- package/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/node_modules/zod/v4/locales/eo.d.ts +4 -0
- package/node_modules/zod/v4/locales/eo.js +109 -0
- package/node_modules/zod/v4/locales/es.cjs +159 -0
- package/node_modules/zod/v4/locales/es.d.cts +5 -0
- package/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/node_modules/zod/v4/locales/es.js +132 -0
- package/node_modules/zod/v4/locales/fa.cjs +141 -0
- package/node_modules/zod/v4/locales/fa.d.cts +5 -0
- package/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/node_modules/zod/v4/locales/fa.js +114 -0
- package/node_modules/zod/v4/locales/fi.cjs +139 -0
- package/node_modules/zod/v4/locales/fi.d.cts +5 -0
- package/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/node_modules/zod/v4/locales/fi.js +112 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +134 -0
- package/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
- package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr-CA.js +107 -0
- package/node_modules/zod/v4/locales/fr.cjs +152 -0
- package/node_modules/zod/v4/locales/fr.d.cts +5 -0
- package/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr.js +125 -0
- package/node_modules/zod/v4/locales/he.cjs +241 -0
- package/node_modules/zod/v4/locales/he.d.cts +5 -0
- package/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/node_modules/zod/v4/locales/he.js +214 -0
- package/node_modules/zod/v4/locales/hr.cjs +149 -0
- package/node_modules/zod/v4/locales/hr.d.cts +5 -0
- package/node_modules/zod/v4/locales/hr.d.ts +4 -0
- package/node_modules/zod/v4/locales/hr.js +122 -0
- package/node_modules/zod/v4/locales/hu.cjs +135 -0
- package/node_modules/zod/v4/locales/hu.d.cts +5 -0
- package/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/node_modules/zod/v4/locales/hu.js +108 -0
- package/node_modules/zod/v4/locales/hy.cjs +174 -0
- package/node_modules/zod/v4/locales/hy.d.cts +5 -0
- package/node_modules/zod/v4/locales/hy.d.ts +4 -0
- package/node_modules/zod/v4/locales/hy.js +147 -0
- package/node_modules/zod/v4/locales/id.cjs +133 -0
- package/node_modules/zod/v4/locales/id.d.cts +5 -0
- package/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/node_modules/zod/v4/locales/id.js +106 -0
- package/node_modules/zod/v4/locales/index.cjs +111 -0
- package/node_modules/zod/v4/locales/index.d.cts +52 -0
- package/node_modules/zod/v4/locales/index.d.ts +52 -0
- package/node_modules/zod/v4/locales/index.js +52 -0
- package/node_modules/zod/v4/locales/is.cjs +136 -0
- package/node_modules/zod/v4/locales/is.d.cts +5 -0
- package/node_modules/zod/v4/locales/is.d.ts +4 -0
- package/node_modules/zod/v4/locales/is.js +109 -0
- package/node_modules/zod/v4/locales/it.cjs +135 -0
- package/node_modules/zod/v4/locales/it.d.cts +5 -0
- package/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/node_modules/zod/v4/locales/it.js +108 -0
- package/node_modules/zod/v4/locales/ja.cjs +134 -0
- package/node_modules/zod/v4/locales/ja.d.cts +5 -0
- package/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/node_modules/zod/v4/locales/ja.js +107 -0
- package/node_modules/zod/v4/locales/ka.cjs +139 -0
- package/node_modules/zod/v4/locales/ka.d.cts +5 -0
- package/node_modules/zod/v4/locales/ka.d.ts +4 -0
- package/node_modules/zod/v4/locales/ka.js +112 -0
- package/node_modules/zod/v4/locales/kh.cjs +12 -0
- package/node_modules/zod/v4/locales/kh.d.cts +5 -0
- package/node_modules/zod/v4/locales/kh.d.ts +5 -0
- package/node_modules/zod/v4/locales/kh.js +5 -0
- package/node_modules/zod/v4/locales/km.cjs +137 -0
- package/node_modules/zod/v4/locales/km.d.cts +5 -0
- package/node_modules/zod/v4/locales/km.d.ts +4 -0
- package/node_modules/zod/v4/locales/km.js +110 -0
- package/node_modules/zod/v4/locales/ko.cjs +138 -0
- package/node_modules/zod/v4/locales/ko.d.cts +5 -0
- package/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/node_modules/zod/v4/locales/ko.js +111 -0
- package/node_modules/zod/v4/locales/lt.cjs +230 -0
- package/node_modules/zod/v4/locales/lt.d.cts +5 -0
- package/node_modules/zod/v4/locales/lt.d.ts +4 -0
- package/node_modules/zod/v4/locales/lt.js +203 -0
- package/node_modules/zod/v4/locales/mk.cjs +136 -0
- package/node_modules/zod/v4/locales/mk.d.cts +5 -0
- package/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/node_modules/zod/v4/locales/mk.js +109 -0
- package/node_modules/zod/v4/locales/ms.cjs +134 -0
- package/node_modules/zod/v4/locales/ms.d.cts +5 -0
- package/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/node_modules/zod/v4/locales/ms.js +107 -0
- package/node_modules/zod/v4/locales/nl.cjs +137 -0
- package/node_modules/zod/v4/locales/nl.d.cts +5 -0
- package/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/node_modules/zod/v4/locales/nl.js +110 -0
- package/node_modules/zod/v4/locales/no.cjs +135 -0
- package/node_modules/zod/v4/locales/no.d.cts +5 -0
- package/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/node_modules/zod/v4/locales/no.js +108 -0
- package/node_modules/zod/v4/locales/ota.cjs +136 -0
- package/node_modules/zod/v4/locales/ota.d.cts +5 -0
- package/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/node_modules/zod/v4/locales/ota.js +109 -0
- package/node_modules/zod/v4/locales/package.json +7 -0
- package/node_modules/zod/v4/locales/pl.cjs +136 -0
- package/node_modules/zod/v4/locales/pl.d.cts +5 -0
- package/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/node_modules/zod/v4/locales/pl.js +109 -0
- package/node_modules/zod/v4/locales/ps.cjs +141 -0
- package/node_modules/zod/v4/locales/ps.d.cts +5 -0
- package/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/node_modules/zod/v4/locales/ps.js +114 -0
- package/node_modules/zod/v4/locales/pt.cjs +135 -0
- package/node_modules/zod/v4/locales/pt.d.cts +5 -0
- package/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt.js +108 -0
- package/node_modules/zod/v4/locales/ro.cjs +146 -0
- package/node_modules/zod/v4/locales/ro.d.cts +5 -0
- package/node_modules/zod/v4/locales/ro.d.ts +4 -0
- package/node_modules/zod/v4/locales/ro.js +119 -0
- package/node_modules/zod/v4/locales/ru.cjs +183 -0
- package/node_modules/zod/v4/locales/ru.d.cts +5 -0
- package/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/node_modules/zod/v4/locales/ru.js +156 -0
- package/node_modules/zod/v4/locales/sl.cjs +136 -0
- package/node_modules/zod/v4/locales/sl.d.cts +5 -0
- package/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/node_modules/zod/v4/locales/sl.js +109 -0
- package/node_modules/zod/v4/locales/sv.cjs +137 -0
- package/node_modules/zod/v4/locales/sv.d.cts +5 -0
- package/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/node_modules/zod/v4/locales/sv.js +110 -0
- package/node_modules/zod/v4/locales/ta.cjs +137 -0
- package/node_modules/zod/v4/locales/ta.d.cts +5 -0
- package/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/node_modules/zod/v4/locales/ta.js +110 -0
- package/node_modules/zod/v4/locales/th.cjs +137 -0
- package/node_modules/zod/v4/locales/th.d.cts +5 -0
- package/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/node_modules/zod/v4/locales/th.js +110 -0
- package/node_modules/zod/v4/locales/tr.cjs +132 -0
- package/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/node_modules/zod/v4/locales/tr.d.ts +4 -0
- package/node_modules/zod/v4/locales/tr.js +105 -0
- package/node_modules/zod/v4/locales/ua.cjs +12 -0
- package/node_modules/zod/v4/locales/ua.d.cts +5 -0
- package/node_modules/zod/v4/locales/ua.d.ts +5 -0
- package/node_modules/zod/v4/locales/ua.js +5 -0
- package/node_modules/zod/v4/locales/uk.cjs +135 -0
- package/node_modules/zod/v4/locales/uk.d.cts +5 -0
- package/node_modules/zod/v4/locales/uk.d.ts +4 -0
- package/node_modules/zod/v4/locales/uk.js +108 -0
- package/node_modules/zod/v4/locales/ur.cjs +137 -0
- package/node_modules/zod/v4/locales/ur.d.cts +5 -0
- package/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/node_modules/zod/v4/locales/ur.js +110 -0
- package/node_modules/zod/v4/locales/uz.cjs +137 -0
- package/node_modules/zod/v4/locales/uz.d.cts +5 -0
- package/node_modules/zod/v4/locales/uz.d.ts +4 -0
- package/node_modules/zod/v4/locales/uz.js +110 -0
- package/node_modules/zod/v4/locales/vi.cjs +135 -0
- package/node_modules/zod/v4/locales/vi.d.cts +5 -0
- package/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/node_modules/zod/v4/locales/vi.js +108 -0
- package/node_modules/zod/v4/locales/yo.cjs +134 -0
- package/node_modules/zod/v4/locales/yo.d.cts +5 -0
- package/node_modules/zod/v4/locales/yo.d.ts +4 -0
- package/node_modules/zod/v4/locales/yo.js +107 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +136 -0
- package/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
- package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-CN.js +109 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +134 -0
- package/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
- package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-TW.js +107 -0
- package/node_modules/zod/v4/mini/checks.cjs +34 -0
- package/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/node_modules/zod/v4/mini/checks.js +1 -0
- package/node_modules/zod/v4/mini/coerce.cjs +52 -0
- package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/node_modules/zod/v4/mini/coerce.js +22 -0
- package/node_modules/zod/v4/mini/external.cjs +63 -0
- package/node_modules/zod/v4/mini/external.d.cts +13 -0
- package/node_modules/zod/v4/mini/external.d.ts +13 -0
- package/node_modules/zod/v4/mini/external.js +14 -0
- package/node_modules/zod/v4/mini/index.cjs +32 -0
- package/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/node_modules/zod/v4/mini/index.js +3 -0
- package/node_modules/zod/v4/mini/iso.cjs +64 -0
- package/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/node_modules/zod/v4/mini/iso.js +34 -0
- package/node_modules/zod/v4/mini/package.json +7 -0
- package/node_modules/zod/v4/mini/parse.cjs +16 -0
- package/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/node_modules/zod/v4/mini/parse.js +1 -0
- package/node_modules/zod/v4/mini/schemas.cjs +1083 -0
- package/node_modules/zod/v4/mini/schemas.d.cts +445 -0
- package/node_modules/zod/v4/mini/schemas.d.ts +445 -0
- package/node_modules/zod/v4/mini/schemas.js +961 -0
- package/node_modules/zod/v4/package.json +7 -0
- package/node_modules/zod/v4-mini/index.cjs +32 -0
- package/node_modules/zod/v4-mini/index.d.cts +3 -0
- package/node_modules/zod/v4-mini/index.d.ts +3 -0
- package/node_modules/zod/v4-mini/index.js +3 -0
- package/node_modules/zod/v4-mini/package.json +7 -0
- package/npm-shrinkwrap.json +314 -0
- package/package.json +11 -9
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Crypto } from './shared';
|
|
2
|
+
export * from './shared';
|
|
3
|
+
export interface CryptoSigner {
|
|
4
|
+
update(data: string): void;
|
|
5
|
+
sign(key: string, outputFormat: string): string;
|
|
6
|
+
}
|
|
7
|
+
export declare function createCrypto(): Crypto;
|
|
8
|
+
export declare function hasBrowserCrypto(): boolean;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2019 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
|
+
/* global window */
|
|
16
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
17
|
+
if (k2 === undefined) k2 = k;
|
|
18
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
19
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
20
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
21
|
+
}
|
|
22
|
+
Object.defineProperty(o, k2, desc);
|
|
23
|
+
}) : (function(o, m, k, k2) {
|
|
24
|
+
if (k2 === undefined) k2 = k;
|
|
25
|
+
o[k2] = m[k];
|
|
26
|
+
}));
|
|
27
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
28
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
29
|
+
};
|
|
30
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
+
exports.createCrypto = createCrypto;
|
|
32
|
+
exports.hasBrowserCrypto = hasBrowserCrypto;
|
|
33
|
+
const crypto_1 = require("./browser/crypto");
|
|
34
|
+
const crypto_2 = require("./node/crypto");
|
|
35
|
+
__exportStar(require("./shared"), exports);
|
|
36
|
+
// Crypto interface will provide required crypto functions.
|
|
37
|
+
// Use `createCrypto()` factory function to create an instance
|
|
38
|
+
// of Crypto. It will either use Node.js `crypto` module, or
|
|
39
|
+
// use browser's SubtleCrypto interface. Since most of the
|
|
40
|
+
// SubtleCrypto methods return promises, we must make those
|
|
41
|
+
// methods return promises here as well, even though in Node.js
|
|
42
|
+
// they are synchronous.
|
|
43
|
+
function createCrypto() {
|
|
44
|
+
if (hasBrowserCrypto()) {
|
|
45
|
+
return new crypto_1.BrowserCrypto();
|
|
46
|
+
}
|
|
47
|
+
return new crypto_2.NodeCrypto();
|
|
48
|
+
}
|
|
49
|
+
function hasBrowserCrypto() {
|
|
50
|
+
return (typeof window !== 'undefined' &&
|
|
51
|
+
typeof window.crypto !== 'undefined' &&
|
|
52
|
+
typeof window.crypto.subtle !== 'undefined');
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=crypto.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Crypto } from '../shared';
|
|
2
|
+
export declare class NodeCrypto implements Crypto {
|
|
3
|
+
sha256DigestBase64(str: string): Promise<string>;
|
|
4
|
+
randomBytesBase64(count: number): string;
|
|
5
|
+
verify(pubkey: string, data: string | Buffer, signature: string): Promise<boolean>;
|
|
6
|
+
sign(privateKey: string, data: string | Buffer): Promise<string>;
|
|
7
|
+
decodeBase64StringUtf8(base64: string): string;
|
|
8
|
+
encodeBase64StringUtf8(text: string): string;
|
|
9
|
+
/**
|
|
10
|
+
* Computes the SHA-256 hash of the provided string.
|
|
11
|
+
* @param str The plain text string to hash.
|
|
12
|
+
* @return A promise that resolves with the SHA-256 hash of the provided
|
|
13
|
+
* string in hexadecimal encoding.
|
|
14
|
+
*/
|
|
15
|
+
sha256DigestHex(str: string): Promise<string>;
|
|
16
|
+
/**
|
|
17
|
+
* Computes the HMAC hash of a message using the provided crypto key and the
|
|
18
|
+
* SHA-256 algorithm.
|
|
19
|
+
* @param key The secret crypto key in utf-8 or ArrayBuffer format.
|
|
20
|
+
* @param msg The plain text message.
|
|
21
|
+
* @return A promise that resolves with the HMAC-SHA256 hash in ArrayBuffer
|
|
22
|
+
* format.
|
|
23
|
+
*/
|
|
24
|
+
signWithHmacSha256(key: string | ArrayBuffer, msg: string): Promise<ArrayBuffer>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2019 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.NodeCrypto = void 0;
|
|
17
|
+
const crypto = require("crypto");
|
|
18
|
+
class NodeCrypto {
|
|
19
|
+
async sha256DigestBase64(str) {
|
|
20
|
+
return crypto.createHash('sha256').update(str).digest('base64');
|
|
21
|
+
}
|
|
22
|
+
randomBytesBase64(count) {
|
|
23
|
+
return crypto.randomBytes(count).toString('base64');
|
|
24
|
+
}
|
|
25
|
+
async verify(pubkey, data, signature) {
|
|
26
|
+
const verifier = crypto.createVerify('RSA-SHA256');
|
|
27
|
+
verifier.update(data);
|
|
28
|
+
verifier.end();
|
|
29
|
+
return verifier.verify(pubkey, signature, 'base64');
|
|
30
|
+
}
|
|
31
|
+
async sign(privateKey, data) {
|
|
32
|
+
const signer = crypto.createSign('RSA-SHA256');
|
|
33
|
+
signer.update(data);
|
|
34
|
+
signer.end();
|
|
35
|
+
return signer.sign(privateKey, 'base64');
|
|
36
|
+
}
|
|
37
|
+
decodeBase64StringUtf8(base64) {
|
|
38
|
+
return Buffer.from(base64, 'base64').toString('utf-8');
|
|
39
|
+
}
|
|
40
|
+
encodeBase64StringUtf8(text) {
|
|
41
|
+
return Buffer.from(text, 'utf-8').toString('base64');
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Computes the SHA-256 hash of the provided string.
|
|
45
|
+
* @param str The plain text string to hash.
|
|
46
|
+
* @return A promise that resolves with the SHA-256 hash of the provided
|
|
47
|
+
* string in hexadecimal encoding.
|
|
48
|
+
*/
|
|
49
|
+
async sha256DigestHex(str) {
|
|
50
|
+
return crypto.createHash('sha256').update(str).digest('hex');
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Computes the HMAC hash of a message using the provided crypto key and the
|
|
54
|
+
* SHA-256 algorithm.
|
|
55
|
+
* @param key The secret crypto key in utf-8 or ArrayBuffer format.
|
|
56
|
+
* @param msg The plain text message.
|
|
57
|
+
* @return A promise that resolves with the HMAC-SHA256 hash in ArrayBuffer
|
|
58
|
+
* format.
|
|
59
|
+
*/
|
|
60
|
+
async signWithHmacSha256(key, msg) {
|
|
61
|
+
const cryptoKey = typeof key === 'string' ? key : toBuffer(key);
|
|
62
|
+
return toArrayBuffer(crypto.createHmac('sha256', cryptoKey).update(msg).digest());
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.NodeCrypto = NodeCrypto;
|
|
66
|
+
/**
|
|
67
|
+
* Converts a Node.js Buffer to an ArrayBuffer.
|
|
68
|
+
* https://stackoverflow.com/questions/8609289/convert-a-binary-nodejs-buffer-to-javascript-arraybuffer
|
|
69
|
+
* @param buffer The Buffer input to covert.
|
|
70
|
+
* @return The ArrayBuffer representation of the input.
|
|
71
|
+
*/
|
|
72
|
+
function toArrayBuffer(buffer) {
|
|
73
|
+
const ab = new ArrayBuffer(buffer.length);
|
|
74
|
+
const view = new Uint8Array(ab);
|
|
75
|
+
for (let i = 0; i < buffer.length; ++i) {
|
|
76
|
+
view[i] = buffer[i];
|
|
77
|
+
}
|
|
78
|
+
return ab;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Converts an ArrayBuffer to a Node.js Buffer.
|
|
82
|
+
* @param arrayBuffer The ArrayBuffer input to covert.
|
|
83
|
+
* @return The Buffer representation of the input.
|
|
84
|
+
*/
|
|
85
|
+
function toBuffer(arrayBuffer) {
|
|
86
|
+
return Buffer.from(arrayBuffer);
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=crypto.js.map
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Crypto interface will provide required crypto functions.
|
|
3
|
+
* Use `createCrypto()` factory function to create an instance
|
|
4
|
+
* of Crypto. It will either use Node.js `crypto` module, or
|
|
5
|
+
* use browser's SubtleCrypto interface. Since most of the
|
|
6
|
+
* SubtleCrypto methods return promises, we must make those
|
|
7
|
+
* methods return promises here as well, even though in Node.js
|
|
8
|
+
* they are synchronous.
|
|
9
|
+
*/
|
|
10
|
+
export interface Crypto {
|
|
11
|
+
sha256DigestBase64(str: string): Promise<string>;
|
|
12
|
+
randomBytesBase64(n: number): string;
|
|
13
|
+
verify(pubkey: string | JwkCertificate, data: string | Buffer, signature: string): Promise<boolean>;
|
|
14
|
+
sign(privateKey: string | JwkCertificate, data: string | Buffer): Promise<string>;
|
|
15
|
+
decodeBase64StringUtf8(base64: string): string;
|
|
16
|
+
encodeBase64StringUtf8(text: string): string;
|
|
17
|
+
/**
|
|
18
|
+
* Computes the SHA-256 hash of the provided string.
|
|
19
|
+
* @param str The plain text string to hash.
|
|
20
|
+
* @return A promise that resolves with the SHA-256 hash of the provided
|
|
21
|
+
* string in hexadecimal encoding.
|
|
22
|
+
*/
|
|
23
|
+
sha256DigestHex(str: string): Promise<string>;
|
|
24
|
+
/**
|
|
25
|
+
* Computes the HMAC hash of a message using the provided crypto key and the
|
|
26
|
+
* SHA-256 algorithm.
|
|
27
|
+
* @param key The secret crypto key in utf-8 or ArrayBuffer format.
|
|
28
|
+
* @param msg The plain text message.
|
|
29
|
+
* @return A promise that resolves with the HMAC-SHA256 hash in ArrayBuffer
|
|
30
|
+
* format.
|
|
31
|
+
*/
|
|
32
|
+
signWithHmacSha256(key: string | ArrayBuffer, msg: string): Promise<ArrayBuffer>;
|
|
33
|
+
}
|
|
34
|
+
export interface JwkCertificate {
|
|
35
|
+
kty: string;
|
|
36
|
+
alg: string;
|
|
37
|
+
use?: string;
|
|
38
|
+
kid: string;
|
|
39
|
+
n: string;
|
|
40
|
+
e: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Converts an ArrayBuffer to a hexadecimal string.
|
|
44
|
+
* @param arrayBuffer The ArrayBuffer to convert to hexadecimal string.
|
|
45
|
+
* @return The hexadecimal encoding of the ArrayBuffer.
|
|
46
|
+
*/
|
|
47
|
+
export declare function fromArrayBufferToHex(arrayBuffer: ArrayBuffer): string;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2025 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.fromArrayBufferToHex = fromArrayBufferToHex;
|
|
17
|
+
/**
|
|
18
|
+
* Converts an ArrayBuffer to a hexadecimal string.
|
|
19
|
+
* @param arrayBuffer The ArrayBuffer to convert to hexadecimal string.
|
|
20
|
+
* @return The hexadecimal encoding of the ArrayBuffer.
|
|
21
|
+
*/
|
|
22
|
+
function fromArrayBufferToHex(arrayBuffer) {
|
|
23
|
+
// Convert buffer to byte array.
|
|
24
|
+
const byteArray = Array.from(new Uint8Array(arrayBuffer));
|
|
25
|
+
// Convert bytes to hex string.
|
|
26
|
+
return byteArray
|
|
27
|
+
.map(byte => {
|
|
28
|
+
return byte.toString(16).padStart(2, '0');
|
|
29
|
+
})
|
|
30
|
+
.join('');
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=shared.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2025 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.ErrorWithCode = void 0;
|
|
17
|
+
class ErrorWithCode extends Error {
|
|
18
|
+
code;
|
|
19
|
+
constructor(message, code) {
|
|
20
|
+
super(message);
|
|
21
|
+
this.code = code;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.ErrorWithCode = ErrorWithCode;
|
|
25
|
+
//# sourceMappingURL=errorWithCode.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Credentials object.
|
|
3
|
+
*/
|
|
4
|
+
interface Credentials {
|
|
5
|
+
privateKey: string;
|
|
6
|
+
clientEmail?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Given a keyFile, extract the key and client email if available
|
|
10
|
+
* @param keyFile Path to a json, pem, or p12 file that contains the key.
|
|
11
|
+
* @returns an object with privateKey and clientEmail properties
|
|
12
|
+
*/
|
|
13
|
+
declare function getCredentials(keyFilePath: string): Promise<Credentials>;
|
|
14
|
+
export { getCredentials, Credentials };
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2025 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.getCredentials = getCredentials;
|
|
17
|
+
const path = require("path");
|
|
18
|
+
const fs = require("fs");
|
|
19
|
+
const util_1 = require("util");
|
|
20
|
+
const errorWithCode_1 = require("./errorWithCode");
|
|
21
|
+
const readFile = fs.readFile
|
|
22
|
+
? (0, util_1.promisify)(fs.readFile)
|
|
23
|
+
: async () => {
|
|
24
|
+
// if running in the web-browser, fs.readFile may not have been shimmed.
|
|
25
|
+
throw new errorWithCode_1.ErrorWithCode('use key rather than keyFile.', 'MISSING_CREDENTIALS');
|
|
26
|
+
};
|
|
27
|
+
var ExtensionFiles;
|
|
28
|
+
(function (ExtensionFiles) {
|
|
29
|
+
ExtensionFiles["JSON"] = ".json";
|
|
30
|
+
ExtensionFiles["DER"] = ".der";
|
|
31
|
+
ExtensionFiles["CRT"] = ".crt";
|
|
32
|
+
ExtensionFiles["PEM"] = ".pem";
|
|
33
|
+
ExtensionFiles["P12"] = ".p12";
|
|
34
|
+
ExtensionFiles["PFX"] = ".pfx";
|
|
35
|
+
})(ExtensionFiles || (ExtensionFiles = {}));
|
|
36
|
+
/**
|
|
37
|
+
* Provides credentials from a JSON key file.
|
|
38
|
+
*/
|
|
39
|
+
class JsonCredentialsProvider {
|
|
40
|
+
keyFilePath;
|
|
41
|
+
constructor(keyFilePath) {
|
|
42
|
+
this.keyFilePath = keyFilePath;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Reads a JSON key file and extracts the private key and client email.
|
|
46
|
+
* @returns A promise that resolves with the credentials.
|
|
47
|
+
*/
|
|
48
|
+
async getCredentials() {
|
|
49
|
+
const key = await readFile(this.keyFilePath, 'utf8');
|
|
50
|
+
let body;
|
|
51
|
+
try {
|
|
52
|
+
body = JSON.parse(key);
|
|
53
|
+
}
|
|
54
|
+
catch (error) {
|
|
55
|
+
const err = error;
|
|
56
|
+
throw new Error(`Invalid JSON key file: ${err.message}`);
|
|
57
|
+
}
|
|
58
|
+
const privateKey = body.private_key;
|
|
59
|
+
const clientEmail = body.client_email;
|
|
60
|
+
if (!privateKey || !clientEmail) {
|
|
61
|
+
throw new errorWithCode_1.ErrorWithCode('private_key and client_email are required.', 'MISSING_CREDENTIALS');
|
|
62
|
+
}
|
|
63
|
+
return { privateKey, clientEmail };
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Provides credentials from a PEM-like key file.
|
|
68
|
+
*/
|
|
69
|
+
class PemCredentialsProvider {
|
|
70
|
+
keyFilePath;
|
|
71
|
+
constructor(keyFilePath) {
|
|
72
|
+
this.keyFilePath = keyFilePath;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Reads a PEM-like key file.
|
|
76
|
+
* @returns A promise that resolves with the private key.
|
|
77
|
+
*/
|
|
78
|
+
async getCredentials() {
|
|
79
|
+
const privateKey = await readFile(this.keyFilePath, 'utf8');
|
|
80
|
+
return { privateKey };
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Handles unsupported P12/PFX certificate types.
|
|
85
|
+
*/
|
|
86
|
+
class P12CredentialsProvider {
|
|
87
|
+
/**
|
|
88
|
+
* Throws an error as P12/PFX certificates are not supported.
|
|
89
|
+
* @returns A promise that rejects with an error.
|
|
90
|
+
*/
|
|
91
|
+
async getCredentials() {
|
|
92
|
+
throw new errorWithCode_1.ErrorWithCode('*.p12 certificates are not supported after v6.1.2. ' +
|
|
93
|
+
'Consider utilizing *.json format or converting *.p12 to *.pem using the OpenSSL CLI.', 'UNKNOWN_CERTIFICATE_TYPE');
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Factory class to create the appropriate credentials provider.
|
|
98
|
+
*/
|
|
99
|
+
class CredentialsProviderFactory {
|
|
100
|
+
/**
|
|
101
|
+
* Creates a credential provider based on the key file extension.
|
|
102
|
+
* @param keyFilePath The path to the key file.
|
|
103
|
+
* @returns An instance of a class that implements ICredentialsProvider.
|
|
104
|
+
*/
|
|
105
|
+
static create(keyFilePath) {
|
|
106
|
+
const keyFileExtension = path.extname(keyFilePath);
|
|
107
|
+
switch (keyFileExtension) {
|
|
108
|
+
case ExtensionFiles.JSON:
|
|
109
|
+
return new JsonCredentialsProvider(keyFilePath);
|
|
110
|
+
case ExtensionFiles.DER:
|
|
111
|
+
case ExtensionFiles.CRT:
|
|
112
|
+
case ExtensionFiles.PEM:
|
|
113
|
+
return new PemCredentialsProvider(keyFilePath);
|
|
114
|
+
case ExtensionFiles.P12:
|
|
115
|
+
case ExtensionFiles.PFX:
|
|
116
|
+
return new P12CredentialsProvider();
|
|
117
|
+
default:
|
|
118
|
+
throw new errorWithCode_1.ErrorWithCode('Unknown certificate type. Type is determined based on file extension. ' +
|
|
119
|
+
'Current supported extensions are *.json, and *.pem.', 'UNKNOWN_CERTIFICATE_TYPE');
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Given a keyFile, extract the key and client email if available
|
|
125
|
+
* @param keyFile Path to a json, pem, or p12 file that contains the key.
|
|
126
|
+
* @returns an object with privateKey and clientEmail properties
|
|
127
|
+
*/
|
|
128
|
+
async function getCredentials(keyFilePath) {
|
|
129
|
+
const provider = CredentialsProviderFactory.create(keyFilePath);
|
|
130
|
+
return provider.getCredentials();
|
|
131
|
+
}
|
|
132
|
+
//# sourceMappingURL=getCredentials.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { TokenOptions } from './tokenOptions';
|
|
2
|
+
/**
|
|
3
|
+
* Interface for the data returned from the token endpoint.
|
|
4
|
+
*/
|
|
5
|
+
interface TokenData {
|
|
6
|
+
/** An optional refresh token. */
|
|
7
|
+
refresh_token?: string;
|
|
8
|
+
/** The duration of the token in seconds. */
|
|
9
|
+
expires_in?: number;
|
|
10
|
+
/** The access token. */
|
|
11
|
+
access_token?: string;
|
|
12
|
+
/** The type of token, e.g., "Bearer". */
|
|
13
|
+
token_type?: string;
|
|
14
|
+
/** An optional ID token. */
|
|
15
|
+
id_token?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Fetches an access token.
|
|
19
|
+
* @param tokenOptions The options for the token.
|
|
20
|
+
* @returns A promise that resolves with the token data.
|
|
21
|
+
*/
|
|
22
|
+
declare function getToken(tokenOptions: TokenOptions): Promise<TokenData>;
|
|
23
|
+
export { getToken, TokenData };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2025 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.getToken = getToken;
|
|
17
|
+
const jwsSign_1 = require("./jwsSign");
|
|
18
|
+
/** The URL for Google's OAuth 2.0 token endpoint. */
|
|
19
|
+
const GOOGLE_TOKEN_URL = 'https://oauth2.googleapis.com/token';
|
|
20
|
+
/** The grant type for JWT-based authorization. */
|
|
21
|
+
const GOOGLE_GRANT_TYPE = 'urn:ietf:params:oauth:grant-type:jwt-bearer';
|
|
22
|
+
/**
|
|
23
|
+
* Generates the request options for fetching a token.
|
|
24
|
+
* @param tokenOptions The options for the token.
|
|
25
|
+
* @returns The Gaxios options for the request.
|
|
26
|
+
*/
|
|
27
|
+
const generateRequestOptions = (tokenOptions) => {
|
|
28
|
+
return {
|
|
29
|
+
method: 'POST',
|
|
30
|
+
url: GOOGLE_TOKEN_URL,
|
|
31
|
+
data: new URLSearchParams({
|
|
32
|
+
grant_type: GOOGLE_GRANT_TYPE, // Grant type for JWT
|
|
33
|
+
assertion: (0, jwsSign_1.getJwsSign)(tokenOptions),
|
|
34
|
+
}),
|
|
35
|
+
responseType: 'json',
|
|
36
|
+
retryConfig: {
|
|
37
|
+
httpMethodsToRetry: ['POST'],
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Fetches an access token.
|
|
43
|
+
* @param tokenOptions The options for the token.
|
|
44
|
+
* @returns A promise that resolves with the token data.
|
|
45
|
+
*/
|
|
46
|
+
async function getToken(tokenOptions) {
|
|
47
|
+
if (!tokenOptions.transporter) {
|
|
48
|
+
throw new Error('No transporter set.');
|
|
49
|
+
}
|
|
50
|
+
try {
|
|
51
|
+
const gaxiosOptions = generateRequestOptions(tokenOptions);
|
|
52
|
+
const response = await tokenOptions.transporter.request(gaxiosOptions);
|
|
53
|
+
return response.data;
|
|
54
|
+
}
|
|
55
|
+
catch (e) {
|
|
56
|
+
// The error is re-thrown, but we want to format it to be more
|
|
57
|
+
// informative.
|
|
58
|
+
const err = e;
|
|
59
|
+
const errorData = err.response?.data;
|
|
60
|
+
if (errorData?.error) {
|
|
61
|
+
err.message = `${errorData.error}: ${errorData.error_description}`;
|
|
62
|
+
}
|
|
63
|
+
throw err;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=getToken.js.map
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { TokenOptions, Transporter } from './tokenOptions';
|
|
2
|
+
import { TokenData } from './getToken';
|
|
3
|
+
/**
|
|
4
|
+
* Options for fetching an access token.
|
|
5
|
+
*/
|
|
6
|
+
export interface GetTokenOptions {
|
|
7
|
+
/**
|
|
8
|
+
* If true, a new token will be fetched, ignoring any cached token.
|
|
9
|
+
*/
|
|
10
|
+
forceRefresh?: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Callback type for the `getToken` method.
|
|
14
|
+
*/
|
|
15
|
+
export type GetTokenCallback = (err: Error | null, token?: TokenData) => void;
|
|
16
|
+
/**
|
|
17
|
+
* The GoogleToken class is used to manage authentication with Google's OAuth 2.0 authorization server.
|
|
18
|
+
* It handles fetching, caching, and refreshing of access tokens.
|
|
19
|
+
*/
|
|
20
|
+
declare class GoogleToken {
|
|
21
|
+
/** The configuration options for this token instance. */
|
|
22
|
+
private tokenOptions;
|
|
23
|
+
/** The handler for token fetching and caching logic. */
|
|
24
|
+
private tokenHandler;
|
|
25
|
+
/**
|
|
26
|
+
* Create a GoogleToken.
|
|
27
|
+
*
|
|
28
|
+
* @param options Configuration object.
|
|
29
|
+
*/
|
|
30
|
+
constructor(options?: TokenOptions);
|
|
31
|
+
get expiresAt(): number | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* The most recent access token obtained by this client.
|
|
34
|
+
*/
|
|
35
|
+
get accessToken(): string | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* The most recent ID token obtained by this client.
|
|
38
|
+
*/
|
|
39
|
+
get idToken(): string | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* The token type of the most recent access token.
|
|
42
|
+
*/
|
|
43
|
+
get tokenType(): string | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* The refresh token for the current credentials.
|
|
46
|
+
*/
|
|
47
|
+
get refreshToken(): string | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* A boolean indicating if the current token has expired.
|
|
50
|
+
*/
|
|
51
|
+
hasExpired(): boolean;
|
|
52
|
+
/**
|
|
53
|
+
* A boolean indicating if the current token is expiring soon,
|
|
54
|
+
* based on the `eagerRefreshThresholdMillis` option.
|
|
55
|
+
*/
|
|
56
|
+
isTokenExpiring(): boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Fetches a new access token and returns it.
|
|
59
|
+
* @param opts Options for fetching the token.
|
|
60
|
+
*/
|
|
61
|
+
getToken(opts?: GetTokenOptions): Promise<TokenData>;
|
|
62
|
+
getToken(callback: GetTokenCallback, opts?: GetTokenOptions): void;
|
|
63
|
+
/**
|
|
64
|
+
* Revokes the current access token and resets the token handler.
|
|
65
|
+
*/
|
|
66
|
+
revokeToken(): Promise<void>;
|
|
67
|
+
revokeToken(callback: (err?: Error) => void): void;
|
|
68
|
+
/**
|
|
69
|
+
* Returns the configuration options for this token instance.
|
|
70
|
+
*/
|
|
71
|
+
get googleTokenOptions(): TokenOptions;
|
|
72
|
+
}
|
|
73
|
+
export { GoogleToken, Transporter, TokenOptions, TokenData };
|