@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,23 @@
|
|
|
1
|
+
export interface RequestMetadata {
|
|
2
|
+
'x-goog-iam-authority-selector': string;
|
|
3
|
+
'x-goog-iam-authorization-token': string;
|
|
4
|
+
}
|
|
5
|
+
export declare class IAMAuth {
|
|
6
|
+
selector: string;
|
|
7
|
+
token: string;
|
|
8
|
+
/**
|
|
9
|
+
* IAM credentials.
|
|
10
|
+
*
|
|
11
|
+
* @param selector the iam authority selector
|
|
12
|
+
* @param token the token
|
|
13
|
+
* @constructor
|
|
14
|
+
*/
|
|
15
|
+
constructor(selector: string, token: string);
|
|
16
|
+
/**
|
|
17
|
+
* Acquire the HTTP headers required to make an authenticated request.
|
|
18
|
+
*/
|
|
19
|
+
getRequestHeaders(): {
|
|
20
|
+
'x-goog-iam-authority-selector': string;
|
|
21
|
+
'x-goog-iam-authorization-token': string;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2014 Google LLC
|
|
3
|
+
//
|
|
4
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
// you may not use this file except in compliance with the License.
|
|
6
|
+
// You may obtain a copy of the License at
|
|
7
|
+
//
|
|
8
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
//
|
|
10
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
// See the License for the specific language governing permissions and
|
|
14
|
+
// limitations under the License.
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.IAMAuth = void 0;
|
|
17
|
+
class IAMAuth {
|
|
18
|
+
selector;
|
|
19
|
+
token;
|
|
20
|
+
/**
|
|
21
|
+
* IAM credentials.
|
|
22
|
+
*
|
|
23
|
+
* @param selector the iam authority selector
|
|
24
|
+
* @param token the token
|
|
25
|
+
* @constructor
|
|
26
|
+
*/
|
|
27
|
+
constructor(selector, token) {
|
|
28
|
+
this.selector = selector;
|
|
29
|
+
this.token = token;
|
|
30
|
+
this.selector = selector;
|
|
31
|
+
this.token = token;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Acquire the HTTP headers required to make an authenticated request.
|
|
35
|
+
*/
|
|
36
|
+
getRequestHeaders() {
|
|
37
|
+
return {
|
|
38
|
+
'x-goog-iam-authority-selector': this.selector,
|
|
39
|
+
'x-goog-iam-authorization-token': this.token,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.IAMAuth = IAMAuth;
|
|
44
|
+
//# sourceMappingURL=iam.js.map
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { BaseExternalAccountClient, BaseExternalAccountClientOptions, ExternalAccountSupplierContext } from './baseexternalclient';
|
|
2
|
+
import { SnakeToCamelObject } from '../util';
|
|
3
|
+
export type SubjectTokenFormatType = 'json' | 'text';
|
|
4
|
+
export interface SubjectTokenJsonResponse {
|
|
5
|
+
[key: string]: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Supplier interface for subject tokens. This can be implemented to
|
|
9
|
+
* return a subject token which can then be exchanged for a GCP token by an
|
|
10
|
+
* {@link IdentityPoolClient}.
|
|
11
|
+
*/
|
|
12
|
+
export interface SubjectTokenSupplier {
|
|
13
|
+
/**
|
|
14
|
+
* Gets a valid subject token for the requested external account identity.
|
|
15
|
+
* Note that these are not cached by the calling {@link IdentityPoolClient},
|
|
16
|
+
* so caching should be including in the implementation.
|
|
17
|
+
* @param context {@link ExternalAccountSupplierContext} from the calling
|
|
18
|
+
* {@link IdentityPoolClient}, contains the requested audience and subject token type
|
|
19
|
+
* for the external account identity as well as the transport from the
|
|
20
|
+
* calling client to use for requests.
|
|
21
|
+
* @return A promise that resolves with the requested subject token string.
|
|
22
|
+
*/
|
|
23
|
+
getSubjectToken: (context: ExternalAccountSupplierContext) => Promise<string>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Url-sourced/file-sourced credentials json interface.
|
|
27
|
+
* This is used for K8s and Azure workloads.
|
|
28
|
+
*/
|
|
29
|
+
export interface IdentityPoolClientOptions extends BaseExternalAccountClientOptions {
|
|
30
|
+
/**
|
|
31
|
+
* Object containing options to retrieve identity pool credentials. A valid credential
|
|
32
|
+
* source or a subject token supplier must be specified.
|
|
33
|
+
*/
|
|
34
|
+
credential_source?: {
|
|
35
|
+
/**
|
|
36
|
+
* The file location to read the subject token from. Either this, a URL
|
|
37
|
+
* or a certificate location should be specified.
|
|
38
|
+
*/
|
|
39
|
+
file?: string;
|
|
40
|
+
/**
|
|
41
|
+
* The URL to call to retrieve the subject token. Either this, a file
|
|
42
|
+
* location or a certificate location should be specified.
|
|
43
|
+
*/
|
|
44
|
+
url?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Optional headers to send on the request to the specified URL.
|
|
47
|
+
*/
|
|
48
|
+
headers?: {
|
|
49
|
+
[key: string]: string;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* The format that the subject token is in the file or the URL response.
|
|
53
|
+
* If not provided, will default to reading the text string directly.
|
|
54
|
+
*/
|
|
55
|
+
format?: {
|
|
56
|
+
/**
|
|
57
|
+
* The format type. Can either be 'text' or 'json'.
|
|
58
|
+
*/
|
|
59
|
+
type: SubjectTokenFormatType;
|
|
60
|
+
/**
|
|
61
|
+
* The field name containing the subject token value if the type is 'json'.
|
|
62
|
+
*/
|
|
63
|
+
subject_token_field_name?: string;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* The certificate location to call to retrieve the subject token. Either this, a file
|
|
67
|
+
* location, or an url should be specified.
|
|
68
|
+
* @example
|
|
69
|
+
* File Format:
|
|
70
|
+
* ```json
|
|
71
|
+
* {
|
|
72
|
+
* "cert_configs": {
|
|
73
|
+
* "workload": {
|
|
74
|
+
* "key_path": "$PATH_TO_LEAF_KEY",
|
|
75
|
+
* "cert_path": "$PATH_TO_LEAF_CERT"
|
|
76
|
+
* }
|
|
77
|
+
* }
|
|
78
|
+
* }
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
certificate?: {
|
|
82
|
+
/**
|
|
83
|
+
* Specify whether the certificate config should be used from the default location.
|
|
84
|
+
* Either this or the certificate_config_location must be provided.
|
|
85
|
+
* The certificate config file must be in the following JSON format:
|
|
86
|
+
*/
|
|
87
|
+
use_default_certificate_config?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Location to fetch certificate config from in case default config is not to be used.
|
|
90
|
+
* Either this or use_default_certificate_config=true should be provided.
|
|
91
|
+
*/
|
|
92
|
+
certificate_config_location?: string;
|
|
93
|
+
/**
|
|
94
|
+
* TrustChainPath specifies the path to a PEM-formatted file containing the X.509 certificate trust chain.
|
|
95
|
+
* The file should contain any intermediate certificates needed to connect
|
|
96
|
+
* the mTLS leaf certificate to a root certificate in the trust store.
|
|
97
|
+
*/
|
|
98
|
+
trust_chain_path?: string;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* The subject token supplier to call to retrieve the subject token to exchange
|
|
103
|
+
* for a GCP access token. Either this or a valid credential source should
|
|
104
|
+
* be specified.
|
|
105
|
+
*/
|
|
106
|
+
subject_token_supplier?: SubjectTokenSupplier;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Defines the Url-sourced and file-sourced external account clients mainly
|
|
110
|
+
* used for K8s and Azure workloads.
|
|
111
|
+
*/
|
|
112
|
+
export declare class IdentityPoolClient extends BaseExternalAccountClient {
|
|
113
|
+
private readonly subjectTokenSupplier;
|
|
114
|
+
/**
|
|
115
|
+
* Instantiate an IdentityPoolClient instance using the provided JSON
|
|
116
|
+
* object loaded from an external account credentials file.
|
|
117
|
+
* An error is thrown if the credential is not a valid file-sourced or
|
|
118
|
+
* url-sourced credential or a workforce pool user project is provided
|
|
119
|
+
* with a non workforce audience.
|
|
120
|
+
* @param options The external account options object typically loaded
|
|
121
|
+
* from the external account JSON credential file. The camelCased options
|
|
122
|
+
* are aliases for the snake_cased options.
|
|
123
|
+
*/
|
|
124
|
+
constructor(options: IdentityPoolClientOptions | SnakeToCamelObject<IdentityPoolClientOptions>);
|
|
125
|
+
/**
|
|
126
|
+
* Triggered when a external subject token is needed to be exchanged for a GCP
|
|
127
|
+
* access token via GCP STS endpoint. Gets a subject token by calling
|
|
128
|
+
* the configured {@link SubjectTokenSupplier}
|
|
129
|
+
* @return A promise that resolves with the external subject token.
|
|
130
|
+
*/
|
|
131
|
+
retrieveSubjectToken(): Promise<string>;
|
|
132
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2021 Google LLC
|
|
3
|
+
//
|
|
4
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
// you may not use this file except in compliance with the License.
|
|
6
|
+
// You may obtain a copy of the License at
|
|
7
|
+
//
|
|
8
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
//
|
|
10
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
// See the License for the specific language governing permissions and
|
|
14
|
+
// limitations under the License.
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.IdentityPoolClient = void 0;
|
|
17
|
+
const baseexternalclient_1 = require("./baseexternalclient");
|
|
18
|
+
const util_1 = require("../util");
|
|
19
|
+
const filesubjecttokensupplier_1 = require("./filesubjecttokensupplier");
|
|
20
|
+
const urlsubjecttokensupplier_1 = require("./urlsubjecttokensupplier");
|
|
21
|
+
const certificatesubjecttokensupplier_1 = require("./certificatesubjecttokensupplier");
|
|
22
|
+
const stscredentials_1 = require("./stscredentials");
|
|
23
|
+
const gaxios_1 = require("gaxios");
|
|
24
|
+
/**
|
|
25
|
+
* Defines the Url-sourced and file-sourced external account clients mainly
|
|
26
|
+
* used for K8s and Azure workloads.
|
|
27
|
+
*/
|
|
28
|
+
class IdentityPoolClient extends baseexternalclient_1.BaseExternalAccountClient {
|
|
29
|
+
subjectTokenSupplier;
|
|
30
|
+
/**
|
|
31
|
+
* Instantiate an IdentityPoolClient instance using the provided JSON
|
|
32
|
+
* object loaded from an external account credentials file.
|
|
33
|
+
* An error is thrown if the credential is not a valid file-sourced or
|
|
34
|
+
* url-sourced credential or a workforce pool user project is provided
|
|
35
|
+
* with a non workforce audience.
|
|
36
|
+
* @param options The external account options object typically loaded
|
|
37
|
+
* from the external account JSON credential file. The camelCased options
|
|
38
|
+
* are aliases for the snake_cased options.
|
|
39
|
+
*/
|
|
40
|
+
constructor(options) {
|
|
41
|
+
super(options);
|
|
42
|
+
const opts = (0, util_1.originalOrCamelOptions)(options);
|
|
43
|
+
const credentialSource = opts.get('credential_source');
|
|
44
|
+
const subjectTokenSupplier = opts.get('subject_token_supplier');
|
|
45
|
+
// Validate credential sourcing configuration.
|
|
46
|
+
if (!credentialSource && !subjectTokenSupplier) {
|
|
47
|
+
throw new Error('A credential source or subject token supplier must be specified.');
|
|
48
|
+
}
|
|
49
|
+
if (credentialSource && subjectTokenSupplier) {
|
|
50
|
+
throw new Error('Only one of credential source or subject token supplier can be specified.');
|
|
51
|
+
}
|
|
52
|
+
if (subjectTokenSupplier) {
|
|
53
|
+
this.subjectTokenSupplier = subjectTokenSupplier;
|
|
54
|
+
this.credentialSourceType = 'programmatic';
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
const credentialSourceOpts = (0, util_1.originalOrCamelOptions)(credentialSource);
|
|
58
|
+
const formatOpts = (0, util_1.originalOrCamelOptions)(credentialSourceOpts.get('format'));
|
|
59
|
+
// Text is the default format type.
|
|
60
|
+
const formatType = formatOpts.get('type') || 'text';
|
|
61
|
+
const formatSubjectTokenFieldName = formatOpts.get('subject_token_field_name');
|
|
62
|
+
if (formatType !== 'json' && formatType !== 'text') {
|
|
63
|
+
throw new Error(`Invalid credential_source format "${formatType}"`);
|
|
64
|
+
}
|
|
65
|
+
if (formatType === 'json' && !formatSubjectTokenFieldName) {
|
|
66
|
+
throw new Error('Missing subject_token_field_name for JSON credential_source format');
|
|
67
|
+
}
|
|
68
|
+
const file = credentialSourceOpts.get('file');
|
|
69
|
+
const url = credentialSourceOpts.get('url');
|
|
70
|
+
const certificate = credentialSourceOpts.get('certificate');
|
|
71
|
+
const headers = credentialSourceOpts.get('headers');
|
|
72
|
+
if ((file && url) || (url && certificate) || (file && certificate)) {
|
|
73
|
+
throw new Error('No valid Identity Pool "credential_source" provided, must be either file, url, or certificate.');
|
|
74
|
+
}
|
|
75
|
+
else if (file) {
|
|
76
|
+
this.credentialSourceType = 'file';
|
|
77
|
+
this.subjectTokenSupplier = new filesubjecttokensupplier_1.FileSubjectTokenSupplier({
|
|
78
|
+
filePath: file,
|
|
79
|
+
formatType: formatType,
|
|
80
|
+
subjectTokenFieldName: formatSubjectTokenFieldName,
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
else if (url) {
|
|
84
|
+
this.credentialSourceType = 'url';
|
|
85
|
+
this.subjectTokenSupplier = new urlsubjecttokensupplier_1.UrlSubjectTokenSupplier({
|
|
86
|
+
url: url,
|
|
87
|
+
formatType: formatType,
|
|
88
|
+
subjectTokenFieldName: formatSubjectTokenFieldName,
|
|
89
|
+
headers: headers,
|
|
90
|
+
additionalGaxiosOptions: IdentityPoolClient.RETRY_CONFIG,
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
else if (certificate) {
|
|
94
|
+
this.credentialSourceType = 'certificate';
|
|
95
|
+
const certificateSubjecttokensupplier = new certificatesubjecttokensupplier_1.CertificateSubjectTokenSupplier({
|
|
96
|
+
useDefaultCertificateConfig: certificate.use_default_certificate_config,
|
|
97
|
+
certificateConfigLocation: certificate.certificate_config_location,
|
|
98
|
+
trustChainPath: certificate.trust_chain_path,
|
|
99
|
+
});
|
|
100
|
+
this.subjectTokenSupplier = certificateSubjecttokensupplier;
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
throw new Error('No valid Identity Pool "credential_source" provided, must be either file, url, or certificate.');
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Triggered when a external subject token is needed to be exchanged for a GCP
|
|
109
|
+
* access token via GCP STS endpoint. Gets a subject token by calling
|
|
110
|
+
* the configured {@link SubjectTokenSupplier}
|
|
111
|
+
* @return A promise that resolves with the external subject token.
|
|
112
|
+
*/
|
|
113
|
+
async retrieveSubjectToken() {
|
|
114
|
+
const subjectToken = await this.subjectTokenSupplier.getSubjectToken(this.supplierContext);
|
|
115
|
+
if (this.subjectTokenSupplier instanceof certificatesubjecttokensupplier_1.CertificateSubjectTokenSupplier) {
|
|
116
|
+
const mtlsAgent = await this.subjectTokenSupplier.createMtlsHttpsAgent();
|
|
117
|
+
this.stsCredential = new stscredentials_1.StsCredentials({
|
|
118
|
+
tokenExchangeEndpoint: this.getTokenUrl(),
|
|
119
|
+
clientAuthentication: this.clientAuth,
|
|
120
|
+
transporter: new gaxios_1.Gaxios({ agent: mtlsAgent }),
|
|
121
|
+
});
|
|
122
|
+
this.transporter = new gaxios_1.Gaxios({
|
|
123
|
+
...(this.transporter.defaults || {}),
|
|
124
|
+
agent: mtlsAgent,
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
return subjectToken;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
exports.IdentityPoolClient = IdentityPoolClient;
|
|
131
|
+
//# sourceMappingURL=identitypoolclient.js.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { OAuth2Client, OAuth2ClientOptions, RequestMetadataResponse } from './oauth2client';
|
|
2
|
+
export interface IdTokenOptions extends OAuth2ClientOptions {
|
|
3
|
+
/**
|
|
4
|
+
* The client to make the request to fetch an ID token.
|
|
5
|
+
*/
|
|
6
|
+
idTokenProvider: IdTokenProvider;
|
|
7
|
+
/**
|
|
8
|
+
* The audience to use when requesting an ID token.
|
|
9
|
+
*/
|
|
10
|
+
targetAudience: string;
|
|
11
|
+
}
|
|
12
|
+
export interface IdTokenProvider {
|
|
13
|
+
fetchIdToken: (targetAudience: string) => Promise<string>;
|
|
14
|
+
}
|
|
15
|
+
export declare class IdTokenClient extends OAuth2Client {
|
|
16
|
+
targetAudience: string;
|
|
17
|
+
idTokenProvider: IdTokenProvider;
|
|
18
|
+
/**
|
|
19
|
+
* Google ID Token client
|
|
20
|
+
*
|
|
21
|
+
* Retrieve ID token from the metadata server.
|
|
22
|
+
* See: https://cloud.google.com/docs/authentication/get-id-token#metadata-server
|
|
23
|
+
*/
|
|
24
|
+
constructor(options: IdTokenOptions);
|
|
25
|
+
protected getRequestMetadataAsync(): Promise<RequestMetadataResponse>;
|
|
26
|
+
private getIdTokenExpiryDate;
|
|
27
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2020 Google LLC
|
|
3
|
+
//
|
|
4
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
// you may not use this file except in compliance with the License.
|
|
6
|
+
// You may obtain a copy of the License at
|
|
7
|
+
//
|
|
8
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
//
|
|
10
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
// See the License for the specific language governing permissions and
|
|
14
|
+
// limitations under the License.
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.IdTokenClient = void 0;
|
|
17
|
+
const oauth2client_1 = require("./oauth2client");
|
|
18
|
+
class IdTokenClient extends oauth2client_1.OAuth2Client {
|
|
19
|
+
targetAudience;
|
|
20
|
+
idTokenProvider;
|
|
21
|
+
/**
|
|
22
|
+
* Google ID Token client
|
|
23
|
+
*
|
|
24
|
+
* Retrieve ID token from the metadata server.
|
|
25
|
+
* See: https://cloud.google.com/docs/authentication/get-id-token#metadata-server
|
|
26
|
+
*/
|
|
27
|
+
constructor(options) {
|
|
28
|
+
super(options);
|
|
29
|
+
this.targetAudience = options.targetAudience;
|
|
30
|
+
this.idTokenProvider = options.idTokenProvider;
|
|
31
|
+
}
|
|
32
|
+
async getRequestMetadataAsync() {
|
|
33
|
+
if (!this.credentials.id_token ||
|
|
34
|
+
!this.credentials.expiry_date ||
|
|
35
|
+
this.isTokenExpiring()) {
|
|
36
|
+
const idToken = await this.idTokenProvider.fetchIdToken(this.targetAudience);
|
|
37
|
+
this.credentials = {
|
|
38
|
+
id_token: idToken,
|
|
39
|
+
expiry_date: this.getIdTokenExpiryDate(idToken),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
const headers = new Headers({
|
|
43
|
+
authorization: 'Bearer ' + this.credentials.id_token,
|
|
44
|
+
});
|
|
45
|
+
return { headers };
|
|
46
|
+
}
|
|
47
|
+
getIdTokenExpiryDate(idToken) {
|
|
48
|
+
const payloadB64 = idToken.split('.')[1];
|
|
49
|
+
if (payloadB64) {
|
|
50
|
+
const payload = JSON.parse(Buffer.from(payloadB64, 'base64').toString('ascii'));
|
|
51
|
+
return payload.exp * 1000;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
exports.IdTokenClient = IdTokenClient;
|
|
56
|
+
//# sourceMappingURL=idtokenclient.js.map
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2021 Google LLC
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { GetTokenResponse, OAuth2Client, OAuth2ClientOptions } from './oauth2client';
|
|
17
|
+
import { AuthClient } from './authclient';
|
|
18
|
+
import { IdTokenProvider } from './idtokenclient';
|
|
19
|
+
import { SignBlobResponse } from './googleauth';
|
|
20
|
+
export interface ImpersonatedOptions extends OAuth2ClientOptions {
|
|
21
|
+
/**
|
|
22
|
+
* Client used to perform exchange for impersonated client.
|
|
23
|
+
*/
|
|
24
|
+
sourceClient?: AuthClient;
|
|
25
|
+
/**
|
|
26
|
+
* The service account to impersonate.
|
|
27
|
+
*/
|
|
28
|
+
targetPrincipal?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Scopes to request during the authorization grant.
|
|
31
|
+
*/
|
|
32
|
+
targetScopes?: string[];
|
|
33
|
+
/**
|
|
34
|
+
* The chained list of delegates required to grant the final access_token.
|
|
35
|
+
*/
|
|
36
|
+
delegates?: string[];
|
|
37
|
+
/**
|
|
38
|
+
* Number of seconds the delegated credential should be valid.
|
|
39
|
+
*/
|
|
40
|
+
lifetime?: number | 3600;
|
|
41
|
+
/**
|
|
42
|
+
* API endpoint to fetch token from.
|
|
43
|
+
*/
|
|
44
|
+
endpoint?: string;
|
|
45
|
+
}
|
|
46
|
+
export declare const IMPERSONATED_ACCOUNT_TYPE = "impersonated_service_account";
|
|
47
|
+
export interface TokenResponse {
|
|
48
|
+
accessToken: string;
|
|
49
|
+
expireTime: string;
|
|
50
|
+
}
|
|
51
|
+
export interface FetchIdTokenOptions {
|
|
52
|
+
/**
|
|
53
|
+
* Include the service account email in the token.
|
|
54
|
+
* If set to `true`, the token will contain `email` and `email_verified` claims.
|
|
55
|
+
*/
|
|
56
|
+
includeEmail: boolean;
|
|
57
|
+
}
|
|
58
|
+
export interface FetchIdTokenResponse {
|
|
59
|
+
/** The OpenId Connect ID token. */
|
|
60
|
+
token: string;
|
|
61
|
+
}
|
|
62
|
+
export declare class Impersonated extends OAuth2Client implements IdTokenProvider {
|
|
63
|
+
private sourceClient;
|
|
64
|
+
private targetPrincipal;
|
|
65
|
+
private targetScopes;
|
|
66
|
+
private delegates;
|
|
67
|
+
private lifetime;
|
|
68
|
+
private endpoint;
|
|
69
|
+
/**
|
|
70
|
+
* Impersonated service account credentials.
|
|
71
|
+
*
|
|
72
|
+
* Create a new access token by impersonating another service account.
|
|
73
|
+
*
|
|
74
|
+
* Impersonated Credentials allowing credentials issued to a user or
|
|
75
|
+
* service account to impersonate another. The source project using
|
|
76
|
+
* Impersonated Credentials must enable the "IAMCredentials" API.
|
|
77
|
+
* Also, the target service account must grant the orginating principal
|
|
78
|
+
* the "Service Account Token Creator" IAM role.
|
|
79
|
+
*
|
|
80
|
+
* **IMPORTANT**: This method does not validate the credential configuration.
|
|
81
|
+
* A security risk occurs when a credential configuration configured with
|
|
82
|
+
* malicious URLs is used. When the credential configuration is accepted from
|
|
83
|
+
* an untrusted source, you should validate it before using it with this
|
|
84
|
+
* method. For more details, see
|
|
85
|
+
* https://cloud.google.com/docs/authentication/external/externally-sourced-credentials.
|
|
86
|
+
*
|
|
87
|
+
* @param {object} options - The configuration object.
|
|
88
|
+
* @param {object} [options.sourceClient] the source credential used as to
|
|
89
|
+
* acquire the impersonated credentials.
|
|
90
|
+
* @param {string} [options.targetPrincipal] the service account to
|
|
91
|
+
* impersonate.
|
|
92
|
+
* @param {string[]} [options.delegates] the chained list of delegates
|
|
93
|
+
* required to grant the final access_token. If set, the sequence of
|
|
94
|
+
* identities must have "Service Account Token Creator" capability granted to
|
|
95
|
+
* the preceding identity. For example, if set to [serviceAccountB,
|
|
96
|
+
* serviceAccountC], the sourceCredential must have the Token Creator role on
|
|
97
|
+
* serviceAccountB. serviceAccountB must have the Token Creator on
|
|
98
|
+
* serviceAccountC. Finally, C must have Token Creator on target_principal.
|
|
99
|
+
* If left unset, sourceCredential must have that role on targetPrincipal.
|
|
100
|
+
* @param {string[]} [options.targetScopes] scopes to request during the
|
|
101
|
+
* authorization grant.
|
|
102
|
+
* @param {number} [options.lifetime] number of seconds the delegated
|
|
103
|
+
* credential should be valid for up to 3600 seconds by default, or 43,200
|
|
104
|
+
* seconds by extending the token's lifetime, see:
|
|
105
|
+
* https://cloud.google.com/iam/docs/creating-short-lived-service-account-credentials#sa-credentials-oauth
|
|
106
|
+
* @param {string} [options.endpoint] api endpoint override.
|
|
107
|
+
*/
|
|
108
|
+
constructor(options?: ImpersonatedOptions);
|
|
109
|
+
/**
|
|
110
|
+
* Signs some bytes.
|
|
111
|
+
*
|
|
112
|
+
* {@link https://cloud.google.com/iam/docs/reference/credentials/rest/v1/projects.serviceAccounts/signBlob Reference Documentation}
|
|
113
|
+
* @param blobToSign String to sign.
|
|
114
|
+
*
|
|
115
|
+
* @returns A {@link SignBlobResponse} denoting the keyID and signedBlob in base64 string
|
|
116
|
+
*/
|
|
117
|
+
sign(blobToSign: string): Promise<SignBlobResponse>;
|
|
118
|
+
/** The service account email to be impersonated. */
|
|
119
|
+
getTargetPrincipal(): string;
|
|
120
|
+
/**
|
|
121
|
+
* Refreshes the access token.
|
|
122
|
+
*/
|
|
123
|
+
protected refreshToken(): Promise<GetTokenResponse>;
|
|
124
|
+
/**
|
|
125
|
+
* Generates an OpenID Connect ID token for a service account.
|
|
126
|
+
*
|
|
127
|
+
* {@link https://cloud.google.com/iam/docs/reference/credentials/rest/v1/projects.serviceAccounts/generateIdToken Reference Documentation}
|
|
128
|
+
*
|
|
129
|
+
* @param targetAudience the audience for the fetched ID token.
|
|
130
|
+
* @param options the for the request
|
|
131
|
+
* @return an OpenID Connect ID token
|
|
132
|
+
*/
|
|
133
|
+
fetchIdToken(targetAudience: string, options?: FetchIdTokenOptions): Promise<string>;
|
|
134
|
+
}
|