@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,266 @@
|
|
|
1
|
+
var Buffer = require('safe-buffer').Buffer;
|
|
2
|
+
var crypto = require('crypto');
|
|
3
|
+
var formatEcdsa = require('ecdsa-sig-formatter');
|
|
4
|
+
var util = require('util');
|
|
5
|
+
|
|
6
|
+
var MSG_INVALID_ALGORITHM = '"%s" is not a valid algorithm.\n Supported algorithms are:\n "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".'
|
|
7
|
+
var MSG_INVALID_SECRET = 'secret must be a string or buffer';
|
|
8
|
+
var MSG_INVALID_VERIFIER_KEY = 'key must be a string or a buffer';
|
|
9
|
+
var MSG_INVALID_SIGNER_KEY = 'key must be a string, a buffer or an object';
|
|
10
|
+
|
|
11
|
+
var supportsKeyObjects = typeof crypto.createPublicKey === 'function';
|
|
12
|
+
if (supportsKeyObjects) {
|
|
13
|
+
MSG_INVALID_VERIFIER_KEY += ' or a KeyObject';
|
|
14
|
+
MSG_INVALID_SECRET += 'or a KeyObject';
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function checkIsPublicKey(key) {
|
|
18
|
+
if (Buffer.isBuffer(key)) {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
if (typeof key === 'string') {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
if (!supportsKeyObjects) {
|
|
27
|
+
throw typeError(MSG_INVALID_VERIFIER_KEY);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
if (typeof key !== 'object') {
|
|
31
|
+
throw typeError(MSG_INVALID_VERIFIER_KEY);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
if (typeof key.type !== 'string') {
|
|
35
|
+
throw typeError(MSG_INVALID_VERIFIER_KEY);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
if (typeof key.asymmetricKeyType !== 'string') {
|
|
39
|
+
throw typeError(MSG_INVALID_VERIFIER_KEY);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
if (typeof key.export !== 'function') {
|
|
43
|
+
throw typeError(MSG_INVALID_VERIFIER_KEY);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
function checkIsPrivateKey(key) {
|
|
48
|
+
if (Buffer.isBuffer(key)) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
if (typeof key === 'string') {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
if (typeof key === 'object') {
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
throw typeError(MSG_INVALID_SIGNER_KEY);
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
function checkIsSecretKey(key) {
|
|
64
|
+
if (Buffer.isBuffer(key)) {
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if (typeof key === 'string') {
|
|
69
|
+
return key;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
if (!supportsKeyObjects) {
|
|
73
|
+
throw typeError(MSG_INVALID_SECRET);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if (typeof key !== 'object') {
|
|
77
|
+
throw typeError(MSG_INVALID_SECRET);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
if (key.type !== 'secret') {
|
|
81
|
+
throw typeError(MSG_INVALID_SECRET);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if (typeof key.export !== 'function') {
|
|
85
|
+
throw typeError(MSG_INVALID_SECRET);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
function fromBase64(base64) {
|
|
90
|
+
return base64
|
|
91
|
+
.replace(/=/g, '')
|
|
92
|
+
.replace(/\+/g, '-')
|
|
93
|
+
.replace(/\//g, '_');
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
function toBase64(base64url) {
|
|
97
|
+
base64url = base64url.toString();
|
|
98
|
+
|
|
99
|
+
var padding = 4 - base64url.length % 4;
|
|
100
|
+
if (padding !== 4) {
|
|
101
|
+
for (var i = 0; i < padding; ++i) {
|
|
102
|
+
base64url += '=';
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
return base64url
|
|
107
|
+
.replace(/\-/g, '+')
|
|
108
|
+
.replace(/_/g, '/');
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
function typeError(template) {
|
|
112
|
+
var args = [].slice.call(arguments, 1);
|
|
113
|
+
var errMsg = util.format.bind(util, template).apply(null, args);
|
|
114
|
+
return new TypeError(errMsg);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
function bufferOrString(obj) {
|
|
118
|
+
return Buffer.isBuffer(obj) || typeof obj === 'string';
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
function normalizeInput(thing) {
|
|
122
|
+
if (!bufferOrString(thing))
|
|
123
|
+
thing = JSON.stringify(thing);
|
|
124
|
+
return thing;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
function createHmacSigner(bits) {
|
|
128
|
+
return function sign(thing, secret) {
|
|
129
|
+
checkIsSecretKey(secret);
|
|
130
|
+
thing = normalizeInput(thing);
|
|
131
|
+
var hmac = crypto.createHmac('sha' + bits, secret);
|
|
132
|
+
var sig = (hmac.update(thing), hmac.digest('base64'))
|
|
133
|
+
return fromBase64(sig);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
var bufferEqual;
|
|
138
|
+
var timingSafeEqual = 'timingSafeEqual' in crypto ? function timingSafeEqual(a, b) {
|
|
139
|
+
if (a.byteLength !== b.byteLength) {
|
|
140
|
+
return false;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
return crypto.timingSafeEqual(a, b)
|
|
144
|
+
} : function timingSafeEqual(a, b) {
|
|
145
|
+
if (!bufferEqual) {
|
|
146
|
+
bufferEqual = require('buffer-equal-constant-time');
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
return bufferEqual(a, b)
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
function createHmacVerifier(bits) {
|
|
153
|
+
return function verify(thing, signature, secret) {
|
|
154
|
+
var computedSig = createHmacSigner(bits)(thing, secret);
|
|
155
|
+
return timingSafeEqual(Buffer.from(signature), Buffer.from(computedSig));
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
function createKeySigner(bits) {
|
|
160
|
+
return function sign(thing, privateKey) {
|
|
161
|
+
checkIsPrivateKey(privateKey);
|
|
162
|
+
thing = normalizeInput(thing);
|
|
163
|
+
// Even though we are specifying "RSA" here, this works with ECDSA
|
|
164
|
+
// keys as well.
|
|
165
|
+
var signer = crypto.createSign('RSA-SHA' + bits);
|
|
166
|
+
var sig = (signer.update(thing), signer.sign(privateKey, 'base64'));
|
|
167
|
+
return fromBase64(sig);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
function createKeyVerifier(bits) {
|
|
172
|
+
return function verify(thing, signature, publicKey) {
|
|
173
|
+
checkIsPublicKey(publicKey);
|
|
174
|
+
thing = normalizeInput(thing);
|
|
175
|
+
signature = toBase64(signature);
|
|
176
|
+
var verifier = crypto.createVerify('RSA-SHA' + bits);
|
|
177
|
+
verifier.update(thing);
|
|
178
|
+
return verifier.verify(publicKey, signature, 'base64');
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
function createPSSKeySigner(bits) {
|
|
183
|
+
return function sign(thing, privateKey) {
|
|
184
|
+
checkIsPrivateKey(privateKey);
|
|
185
|
+
thing = normalizeInput(thing);
|
|
186
|
+
var signer = crypto.createSign('RSA-SHA' + bits);
|
|
187
|
+
var sig = (signer.update(thing), signer.sign({
|
|
188
|
+
key: privateKey,
|
|
189
|
+
padding: crypto.constants.RSA_PKCS1_PSS_PADDING,
|
|
190
|
+
saltLength: crypto.constants.RSA_PSS_SALTLEN_DIGEST
|
|
191
|
+
}, 'base64'));
|
|
192
|
+
return fromBase64(sig);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
function createPSSKeyVerifier(bits) {
|
|
197
|
+
return function verify(thing, signature, publicKey) {
|
|
198
|
+
checkIsPublicKey(publicKey);
|
|
199
|
+
thing = normalizeInput(thing);
|
|
200
|
+
signature = toBase64(signature);
|
|
201
|
+
var verifier = crypto.createVerify('RSA-SHA' + bits);
|
|
202
|
+
verifier.update(thing);
|
|
203
|
+
return verifier.verify({
|
|
204
|
+
key: publicKey,
|
|
205
|
+
padding: crypto.constants.RSA_PKCS1_PSS_PADDING,
|
|
206
|
+
saltLength: crypto.constants.RSA_PSS_SALTLEN_DIGEST
|
|
207
|
+
}, signature, 'base64');
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
function createECDSASigner(bits) {
|
|
212
|
+
var inner = createKeySigner(bits);
|
|
213
|
+
return function sign() {
|
|
214
|
+
var signature = inner.apply(null, arguments);
|
|
215
|
+
signature = formatEcdsa.derToJose(signature, 'ES' + bits);
|
|
216
|
+
return signature;
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
function createECDSAVerifer(bits) {
|
|
221
|
+
var inner = createKeyVerifier(bits);
|
|
222
|
+
return function verify(thing, signature, publicKey) {
|
|
223
|
+
signature = formatEcdsa.joseToDer(signature, 'ES' + bits).toString('base64');
|
|
224
|
+
var result = inner(thing, signature, publicKey);
|
|
225
|
+
return result;
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
function createNoneSigner() {
|
|
230
|
+
return function sign() {
|
|
231
|
+
return '';
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
function createNoneVerifier() {
|
|
236
|
+
return function verify(thing, signature) {
|
|
237
|
+
return signature === '';
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
module.exports = function jwa(algorithm) {
|
|
242
|
+
var signerFactories = {
|
|
243
|
+
hs: createHmacSigner,
|
|
244
|
+
rs: createKeySigner,
|
|
245
|
+
ps: createPSSKeySigner,
|
|
246
|
+
es: createECDSASigner,
|
|
247
|
+
none: createNoneSigner,
|
|
248
|
+
}
|
|
249
|
+
var verifierFactories = {
|
|
250
|
+
hs: createHmacVerifier,
|
|
251
|
+
rs: createKeyVerifier,
|
|
252
|
+
ps: createPSSKeyVerifier,
|
|
253
|
+
es: createECDSAVerifer,
|
|
254
|
+
none: createNoneVerifier,
|
|
255
|
+
}
|
|
256
|
+
var match = algorithm.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/);
|
|
257
|
+
if (!match)
|
|
258
|
+
throw typeError(MSG_INVALID_ALGORITHM, algorithm);
|
|
259
|
+
var algo = (match[1] || match[3]).toLowerCase();
|
|
260
|
+
var bits = match[2];
|
|
261
|
+
|
|
262
|
+
return {
|
|
263
|
+
sign: signerFactories[algo](bits),
|
|
264
|
+
verify: verifierFactories[algo](bits),
|
|
265
|
+
}
|
|
266
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "jwa",
|
|
3
|
+
"version": "2.0.1",
|
|
4
|
+
"description": "JWA implementation (supports all JWS algorithms)",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"directories": {
|
|
7
|
+
"test": "test"
|
|
8
|
+
},
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"buffer-equal-constant-time": "^1.0.1",
|
|
11
|
+
"ecdsa-sig-formatter": "1.0.11",
|
|
12
|
+
"safe-buffer": "^5.0.1"
|
|
13
|
+
},
|
|
14
|
+
"devDependencies": {
|
|
15
|
+
"base64url": "^2.0.0",
|
|
16
|
+
"jwk-to-pem": "^2.0.1",
|
|
17
|
+
"semver": "4.3.6",
|
|
18
|
+
"tap": "6.2.0"
|
|
19
|
+
},
|
|
20
|
+
"scripts": {
|
|
21
|
+
"test": "make test"
|
|
22
|
+
},
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "git://github.com/brianloveswords/node-jwa.git"
|
|
26
|
+
},
|
|
27
|
+
"keywords": [
|
|
28
|
+
"jwa",
|
|
29
|
+
"jws",
|
|
30
|
+
"jwt",
|
|
31
|
+
"rsa",
|
|
32
|
+
"ecdsa",
|
|
33
|
+
"hmac"
|
|
34
|
+
],
|
|
35
|
+
"author": "Brian J. Brennan <brianloveswords@gmail.com>",
|
|
36
|
+
"license": "MIT"
|
|
37
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
## [4.0.1]
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Fix advisory GHSA-869p-cjfg-cm3x: createSign and createVerify now require
|
|
10
|
+
that a non empty secret is provided (via opts.secret, opts.privateKey or opts.key)
|
|
11
|
+
when using HMAC algorithms.
|
|
12
|
+
- Upgrading JWA version to 2.0.1, adressing a compatibility issue for Node >= 25.
|
|
13
|
+
|
|
14
|
+
## [3.2.3]
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- Fix advisory GHSA-869p-cjfg-cm3x: createSign and createVerify now require
|
|
19
|
+
that a non empty secret is provided (via opts.secret, opts.privateKey or opts.key)
|
|
20
|
+
when using HMAC algorithms.
|
|
21
|
+
- Upgrading JWA version to 1.4.2, adressing a compatibility issue for Node >= 25.
|
|
22
|
+
|
|
23
|
+
## [3.0.0]
|
|
24
|
+
|
|
25
|
+
### Changed
|
|
26
|
+
|
|
27
|
+
- **BREAKING**: `jwt.verify` now requires an `algorithm` parameter, and
|
|
28
|
+
`jws.createVerify` requires an `algorithm` option. The `"alg"` field
|
|
29
|
+
signature headers is ignored. This mitigates a critical security flaw
|
|
30
|
+
in the library which would allow an attacker to generate signatures with
|
|
31
|
+
arbitrary contents that would be accepted by `jwt.verify`. See
|
|
32
|
+
https://auth0.com/blog/2015/03/31/critical-vulnerabilities-in-json-web-token-libraries/
|
|
33
|
+
for details.
|
|
34
|
+
|
|
35
|
+
## [2.0.0] - 2015-01-30
|
|
36
|
+
|
|
37
|
+
### Changed
|
|
38
|
+
|
|
39
|
+
- **BREAKING**: Default payload encoding changed from `binary` to
|
|
40
|
+
`utf8`. `utf8` is a is a more sensible default than `binary` because
|
|
41
|
+
many payloads, as far as I can tell, will contain user-facing
|
|
42
|
+
strings that could be in any language. (<code>[6b6de48]</code>)
|
|
43
|
+
|
|
44
|
+
- Code reorganization, thanks [@fearphage]! (<code>[7880050]</code>)
|
|
45
|
+
|
|
46
|
+
### Added
|
|
47
|
+
|
|
48
|
+
- Option in all relevant methods for `encoding`. For those few users
|
|
49
|
+
that might be depending on a `binary` encoding of the messages, this
|
|
50
|
+
is for them. (<code>[6b6de48]</code>)
|
|
51
|
+
|
|
52
|
+
[unreleased]: https://github.com/brianloveswords/node-jws/compare/v2.0.0...HEAD
|
|
53
|
+
[2.0.0]: https://github.com/brianloveswords/node-jws/compare/v1.0.1...v2.0.0
|
|
54
|
+
[7880050]: https://github.com/brianloveswords/node-jws/commit/7880050
|
|
55
|
+
[6b6de48]: https://github.com/brianloveswords/node-jws/commit/6b6de48
|
|
56
|
+
[@fearphage]: https://github.com/fearphage
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
Copyright (c) 2013 Brian J. Brennan
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
of this software and associated documentation files (the "Software"), to deal in
|
|
5
|
+
the Software without restriction, including without limitation the rights to use,
|
|
6
|
+
copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
|
|
7
|
+
Software, and to permit persons to whom the Software is furnished to do so,
|
|
8
|
+
subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
|
11
|
+
copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
|
14
|
+
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
|
15
|
+
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
|
|
16
|
+
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
17
|
+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*global exports*/
|
|
2
|
+
var SignStream = require('./lib/sign-stream');
|
|
3
|
+
var VerifyStream = require('./lib/verify-stream');
|
|
4
|
+
|
|
5
|
+
var ALGORITHMS = [
|
|
6
|
+
'HS256', 'HS384', 'HS512',
|
|
7
|
+
'RS256', 'RS384', 'RS512',
|
|
8
|
+
'PS256', 'PS384', 'PS512',
|
|
9
|
+
'ES256', 'ES384', 'ES512'
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
exports.ALGORITHMS = ALGORITHMS;
|
|
13
|
+
exports.sign = SignStream.sign;
|
|
14
|
+
exports.verify = VerifyStream.verify;
|
|
15
|
+
exports.decode = VerifyStream.decode;
|
|
16
|
+
exports.isValid = VerifyStream.isValid;
|
|
17
|
+
exports.createSign = function createSign(opts) {
|
|
18
|
+
return new SignStream(opts);
|
|
19
|
+
};
|
|
20
|
+
exports.createVerify = function createVerify(opts) {
|
|
21
|
+
return new VerifyStream(opts);
|
|
22
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/*global module, process*/
|
|
2
|
+
var Buffer = require('safe-buffer').Buffer;
|
|
3
|
+
var Stream = require('stream');
|
|
4
|
+
var util = require('util');
|
|
5
|
+
|
|
6
|
+
function DataStream(data) {
|
|
7
|
+
this.buffer = null;
|
|
8
|
+
this.writable = true;
|
|
9
|
+
this.readable = true;
|
|
10
|
+
|
|
11
|
+
// No input
|
|
12
|
+
if (!data) {
|
|
13
|
+
this.buffer = Buffer.alloc(0);
|
|
14
|
+
return this;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// Stream
|
|
18
|
+
if (typeof data.pipe === 'function') {
|
|
19
|
+
this.buffer = Buffer.alloc(0);
|
|
20
|
+
data.pipe(this);
|
|
21
|
+
return this;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// Buffer or String
|
|
25
|
+
// or Object (assumedly a passworded key)
|
|
26
|
+
if (data.length || typeof data === 'object') {
|
|
27
|
+
this.buffer = data;
|
|
28
|
+
this.writable = false;
|
|
29
|
+
process.nextTick(function () {
|
|
30
|
+
this.emit('end', data);
|
|
31
|
+
this.readable = false;
|
|
32
|
+
this.emit('close');
|
|
33
|
+
}.bind(this));
|
|
34
|
+
return this;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
throw new TypeError('Unexpected data type ('+ typeof data + ')');
|
|
38
|
+
}
|
|
39
|
+
util.inherits(DataStream, Stream);
|
|
40
|
+
|
|
41
|
+
DataStream.prototype.write = function write(data) {
|
|
42
|
+
this.buffer = Buffer.concat([this.buffer, Buffer.from(data)]);
|
|
43
|
+
this.emit('data', data);
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
DataStream.prototype.end = function end(data) {
|
|
47
|
+
if (data)
|
|
48
|
+
this.write(data);
|
|
49
|
+
this.emit('end', data);
|
|
50
|
+
this.emit('close');
|
|
51
|
+
this.writable = false;
|
|
52
|
+
this.readable = false;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
module.exports = DataStream;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/*global module*/
|
|
2
|
+
var Buffer = require('safe-buffer').Buffer;
|
|
3
|
+
var DataStream = require('./data-stream');
|
|
4
|
+
var jwa = require('jwa');
|
|
5
|
+
var Stream = require('stream');
|
|
6
|
+
var toString = require('./tostring');
|
|
7
|
+
var util = require('util');
|
|
8
|
+
|
|
9
|
+
function base64url(string, encoding) {
|
|
10
|
+
return Buffer
|
|
11
|
+
.from(string, encoding)
|
|
12
|
+
.toString('base64')
|
|
13
|
+
.replace(/=/g, '')
|
|
14
|
+
.replace(/\+/g, '-')
|
|
15
|
+
.replace(/\//g, '_');
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function jwsSecuredInput(header, payload, encoding) {
|
|
19
|
+
encoding = encoding || 'utf8';
|
|
20
|
+
var encodedHeader = base64url(toString(header), 'binary');
|
|
21
|
+
var encodedPayload = base64url(toString(payload), encoding);
|
|
22
|
+
return util.format('%s.%s', encodedHeader, encodedPayload);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function jwsSign(opts) {
|
|
26
|
+
var header = opts.header;
|
|
27
|
+
var payload = opts.payload;
|
|
28
|
+
var secretOrKey = opts.secret || opts.privateKey;
|
|
29
|
+
var encoding = opts.encoding;
|
|
30
|
+
var algo = jwa(header.alg);
|
|
31
|
+
var securedInput = jwsSecuredInput(header, payload, encoding);
|
|
32
|
+
var signature = algo.sign(securedInput, secretOrKey);
|
|
33
|
+
return util.format('%s.%s', securedInput, signature);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function SignStream(opts) {
|
|
37
|
+
var secret = opts.secret;
|
|
38
|
+
secret = secret == null ? opts.privateKey : secret;
|
|
39
|
+
secret = secret == null ? opts.key : secret;
|
|
40
|
+
if (/^hs/i.test(opts.header.alg) === true && secret == null) {
|
|
41
|
+
throw new TypeError('secret must be a string or buffer or a KeyObject')
|
|
42
|
+
}
|
|
43
|
+
var secretStream = new DataStream(secret);
|
|
44
|
+
this.readable = true;
|
|
45
|
+
this.header = opts.header;
|
|
46
|
+
this.encoding = opts.encoding;
|
|
47
|
+
this.secret = this.privateKey = this.key = secretStream;
|
|
48
|
+
this.payload = new DataStream(opts.payload);
|
|
49
|
+
this.secret.once('close', function () {
|
|
50
|
+
if (!this.payload.writable && this.readable)
|
|
51
|
+
this.sign();
|
|
52
|
+
}.bind(this));
|
|
53
|
+
|
|
54
|
+
this.payload.once('close', function () {
|
|
55
|
+
if (!this.secret.writable && this.readable)
|
|
56
|
+
this.sign();
|
|
57
|
+
}.bind(this));
|
|
58
|
+
}
|
|
59
|
+
util.inherits(SignStream, Stream);
|
|
60
|
+
|
|
61
|
+
SignStream.prototype.sign = function sign() {
|
|
62
|
+
try {
|
|
63
|
+
var signature = jwsSign({
|
|
64
|
+
header: this.header,
|
|
65
|
+
payload: this.payload.buffer,
|
|
66
|
+
secret: this.secret.buffer,
|
|
67
|
+
encoding: this.encoding
|
|
68
|
+
});
|
|
69
|
+
this.emit('done', signature);
|
|
70
|
+
this.emit('data', signature);
|
|
71
|
+
this.emit('end');
|
|
72
|
+
this.readable = false;
|
|
73
|
+
return signature;
|
|
74
|
+
} catch (e) {
|
|
75
|
+
this.readable = false;
|
|
76
|
+
this.emit('error', e);
|
|
77
|
+
this.emit('close');
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
SignStream.sign = jwsSign;
|
|
82
|
+
|
|
83
|
+
module.exports = SignStream;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*global module*/
|
|
2
|
+
var Buffer = require('buffer').Buffer;
|
|
3
|
+
|
|
4
|
+
module.exports = function toString(obj) {
|
|
5
|
+
if (typeof obj === 'string')
|
|
6
|
+
return obj;
|
|
7
|
+
if (typeof obj === 'number' || Buffer.isBuffer(obj))
|
|
8
|
+
return obj.toString();
|
|
9
|
+
return JSON.stringify(obj);
|
|
10
|
+
};
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/*global module*/
|
|
2
|
+
var Buffer = require('safe-buffer').Buffer;
|
|
3
|
+
var DataStream = require('./data-stream');
|
|
4
|
+
var jwa = require('jwa');
|
|
5
|
+
var Stream = require('stream');
|
|
6
|
+
var toString = require('./tostring');
|
|
7
|
+
var util = require('util');
|
|
8
|
+
var JWS_REGEX = /^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;
|
|
9
|
+
|
|
10
|
+
function isObject(thing) {
|
|
11
|
+
return Object.prototype.toString.call(thing) === '[object Object]';
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function safeJsonParse(thing) {
|
|
15
|
+
if (isObject(thing))
|
|
16
|
+
return thing;
|
|
17
|
+
try { return JSON.parse(thing); }
|
|
18
|
+
catch (e) { return undefined; }
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function headerFromJWS(jwsSig) {
|
|
22
|
+
var encodedHeader = jwsSig.split('.', 1)[0];
|
|
23
|
+
return safeJsonParse(Buffer.from(encodedHeader, 'base64').toString('binary'));
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function securedInputFromJWS(jwsSig) {
|
|
27
|
+
return jwsSig.split('.', 2).join('.');
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function signatureFromJWS(jwsSig) {
|
|
31
|
+
return jwsSig.split('.')[2];
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function payloadFromJWS(jwsSig, encoding) {
|
|
35
|
+
encoding = encoding || 'utf8';
|
|
36
|
+
var payload = jwsSig.split('.')[1];
|
|
37
|
+
return Buffer.from(payload, 'base64').toString(encoding);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function isValidJws(string) {
|
|
41
|
+
return JWS_REGEX.test(string) && !!headerFromJWS(string);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function jwsVerify(jwsSig, algorithm, secretOrKey) {
|
|
45
|
+
if (!algorithm) {
|
|
46
|
+
var err = new Error("Missing algorithm parameter for jws.verify");
|
|
47
|
+
err.code = "MISSING_ALGORITHM";
|
|
48
|
+
throw err;
|
|
49
|
+
}
|
|
50
|
+
jwsSig = toString(jwsSig);
|
|
51
|
+
var signature = signatureFromJWS(jwsSig);
|
|
52
|
+
var securedInput = securedInputFromJWS(jwsSig);
|
|
53
|
+
var algo = jwa(algorithm);
|
|
54
|
+
return algo.verify(securedInput, signature, secretOrKey);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function jwsDecode(jwsSig, opts) {
|
|
58
|
+
opts = opts || {};
|
|
59
|
+
jwsSig = toString(jwsSig);
|
|
60
|
+
|
|
61
|
+
if (!isValidJws(jwsSig))
|
|
62
|
+
return null;
|
|
63
|
+
|
|
64
|
+
var header = headerFromJWS(jwsSig);
|
|
65
|
+
|
|
66
|
+
if (!header)
|
|
67
|
+
return null;
|
|
68
|
+
|
|
69
|
+
var payload = payloadFromJWS(jwsSig);
|
|
70
|
+
if (header.typ === 'JWT' || opts.json)
|
|
71
|
+
payload = JSON.parse(payload, opts.encoding);
|
|
72
|
+
|
|
73
|
+
return {
|
|
74
|
+
header: header,
|
|
75
|
+
payload: payload,
|
|
76
|
+
signature: signatureFromJWS(jwsSig)
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
function VerifyStream(opts) {
|
|
81
|
+
opts = opts || {};
|
|
82
|
+
var secretOrKey = opts.secret;
|
|
83
|
+
secretOrKey = secretOrKey == null ? opts.publicKey : secretOrKey;
|
|
84
|
+
secretOrKey = secretOrKey == null ? opts.key : secretOrKey;
|
|
85
|
+
if (/^hs/i.test(opts.algorithm) === true && secretOrKey == null) {
|
|
86
|
+
throw new TypeError('secret must be a string or buffer or a KeyObject')
|
|
87
|
+
}
|
|
88
|
+
var secretStream = new DataStream(secretOrKey);
|
|
89
|
+
this.readable = true;
|
|
90
|
+
this.algorithm = opts.algorithm;
|
|
91
|
+
this.encoding = opts.encoding;
|
|
92
|
+
this.secret = this.publicKey = this.key = secretStream;
|
|
93
|
+
this.signature = new DataStream(opts.signature);
|
|
94
|
+
this.secret.once('close', function () {
|
|
95
|
+
if (!this.signature.writable && this.readable)
|
|
96
|
+
this.verify();
|
|
97
|
+
}.bind(this));
|
|
98
|
+
|
|
99
|
+
this.signature.once('close', function () {
|
|
100
|
+
if (!this.secret.writable && this.readable)
|
|
101
|
+
this.verify();
|
|
102
|
+
}.bind(this));
|
|
103
|
+
}
|
|
104
|
+
util.inherits(VerifyStream, Stream);
|
|
105
|
+
VerifyStream.prototype.verify = function verify() {
|
|
106
|
+
try {
|
|
107
|
+
var valid = jwsVerify(this.signature.buffer, this.algorithm, this.key.buffer);
|
|
108
|
+
var obj = jwsDecode(this.signature.buffer, this.encoding);
|
|
109
|
+
this.emit('done', valid, obj);
|
|
110
|
+
this.emit('data', valid);
|
|
111
|
+
this.emit('end');
|
|
112
|
+
this.readable = false;
|
|
113
|
+
return valid;
|
|
114
|
+
} catch (e) {
|
|
115
|
+
this.readable = false;
|
|
116
|
+
this.emit('error', e);
|
|
117
|
+
this.emit('close');
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
VerifyStream.decode = jwsDecode;
|
|
122
|
+
VerifyStream.isValid = isValidJws;
|
|
123
|
+
VerifyStream.verify = jwsVerify;
|
|
124
|
+
|
|
125
|
+
module.exports = VerifyStream;
|